Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PlaymatParams Struct Reference

Positioning parameters for a playmat card image. More...

#include <playmat_params.h>

Public Member Functions

bool operator== (const PlaymatParams &other) const
bool operator!= (const PlaymatParams &other) const

Public Attributes

double marginPctL = 0.07
 Left margin as fraction of card width (0.0–0.95).
double marginPctR = 0.07
 Right margin as fraction of card width (0.0–0.95).
double verticalOffset = 0.33
 Vertical position within card (0.0=top, 1.0=bottom).
double zoom = 1.0
 Scale factor (0.1–4.0).

Detailed Description

Positioning parameters for a playmat card image.

Controls how the cropped card art is positioned within the combined table+stack play area. The coordinate system is relative to the cropped art source image.

Member Function Documentation

◆ operator!=()

bool PlaymatParams::operator!= ( const PlaymatParams & other) const
inline

◆ operator==()

bool PlaymatParams::operator== ( const PlaymatParams & other) const
inline

Member Data Documentation

◆ marginPctL

double PlaymatParams::marginPctL = 0.07

Left margin as fraction of card width (0.0–0.95).

◆ marginPctR

double PlaymatParams::marginPctR = 0.07

Right margin as fraction of card width (0.0–0.95).

◆ verticalOffset

double PlaymatParams::verticalOffset = 0.33

Vertical position within card (0.0=top, 1.0=bottom).

◆ zoom

double PlaymatParams::zoom = 1.0

Scale factor (0.1–4.0).


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