![]() |
Cockatrice 2026-06-01-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
|
Parameters describing a vertical card stack's geometry. More...
#include <select_zone.h>
Public Attributes | |
| int | cardCount |
| Number of cards in the stack. | |
| qreal | totalHeight |
| Available height for the stack (zone height). | |
| qreal | cardHeight |
| Height of a single card. | |
| qreal | desiredOffset |
| Preferred vertical offset between card tops. | |
| qreal | minOffset = 0.0 |
| Minimum offset to preserve (0 allows full compression). | |
| bool | allowBottomOverflow = false |
| When false (default), reserves full cardHeight for the bottom card, ensuring all cards remain within zone bounds. When true, allows the bottom card to partially overflow using sqrt-scaled allowance. Use with setupClipContainer() for zones too short to fit a full card. | |
Parameters describing a vertical card stack's geometry.
| bool SelectZone::StackLayoutParams::allowBottomOverflow = false |
When false (default), reserves full cardHeight for the bottom card, ensuring all cards remain within zone bounds. When true, allows the bottom card to partially overflow using sqrt-scaled allowance. Use with setupClipContainer() for zones too short to fit a full card.
| int SelectZone::StackLayoutParams::cardCount |
Number of cards in the stack.
| qreal SelectZone::StackLayoutParams::cardHeight |
Height of a single card.
| qreal SelectZone::StackLayoutParams::desiredOffset |
Preferred vertical offset between card tops.
| qreal SelectZone::StackLayoutParams::minOffset = 0.0 |
Minimum offset to preserve (0 allows full compression).
| qreal SelectZone::StackLayoutParams::totalHeight |
Available height for the stack (zone height).