Cockatrice 2026-04-21-Development-2.11.0-beta.61
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
CardDimensions Namespace Reference

Variables

constexpr int WIDTH = 72
 Card width in pixels.
constexpr int HEIGHT = 102
 Card height in pixels.
constexpr qreal WIDTH_F = static_cast<qreal>(WIDTH)
 Pre-converted for floating-point contexts (Z-value calculations)
constexpr qreal HEIGHT_F = static_cast<qreal>(HEIGHT)
constexpr qreal WIDTH_HALF_F = WIDTH_F / 2
 Half-dimensions for centering and rotation transforms.
constexpr qreal HEIGHT_HALF_F = HEIGHT_F / 2

Variable Documentation

◆ HEIGHT

int CardDimensions::HEIGHT = 102
constexpr

Card height in pixels.

◆ HEIGHT_F

qreal CardDimensions::HEIGHT_F = static_cast<qreal>(HEIGHT)
constexpr

◆ HEIGHT_HALF_F

qreal CardDimensions::HEIGHT_HALF_F = HEIGHT_F / 2
constexpr

◆ WIDTH

int CardDimensions::WIDTH = 72
constexpr

Card width in pixels.

◆ WIDTH_F

qreal CardDimensions::WIDTH_F = static_cast<qreal>(WIDTH)
constexpr

Pre-converted for floating-point contexts (Z-value calculations)

◆ WIDTH_HALF_F

qreal CardDimensions::WIDTH_HALF_F = WIDTH_F / 2
constexpr

Half-dimensions for centering and rotation transforms.