Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
CardArtUtils Namespace Reference

Functions

QPixmap rotateSidewaysLayoutArt (const QPixmap &art, const ExactCard &card)
 Rotates a card's art upright when its layout shows sideways.

Function Documentation

◆ rotateSidewaysLayoutArt()

QPixmap CardArtUtils::rotateSidewaysLayoutArt ( const QPixmap & art,
const ExactCard & card )

Rotates a card's art upright when its layout shows sideways.

Sideways-layout cards (planes, sieges/battles, split cards) store their landscape artwork rotated 90° inside a portrait frame. Art-crop displays, playmat art, and the card-info picture must show such art upright before sampling or painting. Portrait cards are returned unchanged.

Parameters
artThe card pixmap to orient.
cardThe card describing the art orientation.
Returns
art rotated 90° clockwise for sideways-layout cards, else art.
Here is the call graph for this function:
Here is the caller graph for this function: