Struct PixelClipRect2D

Struct Documentation

struct PixelClipRect2D

Integer framebuffer edges with top-left origin and exclusive right/bottom edges.

Public Functions

inline bool empty() const

Declaration: [[nodiscard]]

Returns:

True when either dimension is zero; this predicate does not validate inverted manually constructed rectangles.

bool operator==(const PixelClipRect2D&) const = default

Compare all stored fields exactly without validating dimensions or resolving coordinates.

Floating-point fields retain ordinary C++ equality semantics where present.

Public Members

int left = 0

Inclusive left framebuffer edge, in pixels.

int top = 0

Inclusive top framebuffer edge, in pixels.

int right = 0

Exclusive right framebuffer edge, in pixels.

int bottom = 0

Exclusive bottom framebuffer edge, in pixels.