Cockatrice 2026-06-01-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
SelectZone::StackLayoutParams Struct Reference

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.

Detailed Description

Parameters describing a vertical card stack's geometry.

Member Data Documentation

◆ allowBottomOverflow

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.

◆ cardCount

int SelectZone::StackLayoutParams::cardCount

Number of cards in the stack.

◆ cardHeight

qreal SelectZone::StackLayoutParams::cardHeight

Height of a single card.

◆ desiredOffset

qreal SelectZone::StackLayoutParams::desiredOffset

Preferred vertical offset between card tops.

◆ minOffset

qreal SelectZone::StackLayoutParams::minOffset = 0.0

Minimum offset to preserve (0 allows full compression).

◆ totalHeight

qreal SelectZone::StackLayoutParams::totalHeight

Available height for the stack (zone height).


The documentation for this struct was generated from the following file: