Template Struct Dimensions

Struct Documentation

template<typename T>
struct Dimensions

Pair of dimensions with caller-selected representation and units.

Template Parameters:

T – Stored width/height type; this value performs no positivity or range validation.

Public Functions

bool operator==(const Dimensions&) const = default
inline Dimensions(T width, T height)

Store the supplied width and height unchanged.

Parameters:
  • width – Initial width; no normalization is applied.

  • height – Initial height; validity belongs to the consuming operation.

Public Members

T width

Width in the coordinate units defined by the containing API.

T height

Height in the same units as width.