![]() |
Cockatrice 2026-04-21-Development-2.11.0-beta.61
A virtual tabletop for multiplayer card games
|
Canonical card dimension constants for layout and Z-value calculations. More...
#include <QtGlobal>Go to the source code of this file.
Namespaces | |
| namespace | CardDimensions |
Variables | |
| constexpr int | CardDimensions::WIDTH = 72 |
| Card width in pixels. | |
| constexpr int | CardDimensions::HEIGHT = 102 |
| Card height in pixels. | |
| constexpr qreal | CardDimensions::WIDTH_F = static_cast<qreal>(WIDTH) |
| Pre-converted for floating-point contexts (Z-value calculations) | |
| constexpr qreal | CardDimensions::HEIGHT_F = static_cast<qreal>(HEIGHT) |
| constexpr qreal | CardDimensions::WIDTH_HALF_F = WIDTH_F / 2 |
| Half-dimensions for centering and rotation transforms. | |
| constexpr qreal | CardDimensions::HEIGHT_HALF_F = HEIGHT_F / 2 |
Canonical card dimension constants for layout and Z-value calculations.
These values represent the logical pixel dimensions of a standard card graphic. They are used throughout the game scene for layout, rendering, and Z-value computation.