![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
Functions | |
| QPixmap | rotateSidewaysLayoutArt (const QPixmap &art, const ExactCard &card) |
| Rotates a card's art upright when its layout shows sideways. | |
| 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.
| art | The card pixmap to orient. |
| card | The card describing the art orientation. |
art rotated 90° clockwise for sideways-layout cards, else art.