guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
guillaume::components::Clip::Rect Struct Reference

The clip rectangle, in the same coordinates as the position of a components::Transform. More...

#include <headers/guillaume/components/clip.hpp>

Public Member Functions

bool operator== (const Rect &other) const
 Compare the origin and the size of two rectangles.

Public Attributes

float x { 0.0f }
 Left edge, in dp.
float y { 0.0f }
 Top edge, in dp.
float width { 0.0f }
 Width, in dp.
float height { 0.0f }
 Height, in dp.

Detailed Description

The clip rectangle, in the same coordinates as the position of a components::Transform.

Definition at line 59 of file clip.hpp.

Member Function Documentation

◆ operator==()

bool guillaume::components::Clip::Rect::operator== ( const Rect & other) const
inline

Compare the origin and the size of two rectangles.

Parameters
otherThe rectangle to compare with.
Returns
True when the four values are equal.

Definition at line 70 of file clip.hpp.

Member Data Documentation

◆ height

float guillaume::components::Clip::Rect::height { 0.0f }

Height, in dp.

Definition at line 63 of file clip.hpp.

◆ width

float guillaume::components::Clip::Rect::width { 0.0f }

Width, in dp.

Definition at line 62 of file clip.hpp.

◆ x

float guillaume::components::Clip::Rect::x { 0.0f }

Left edge, in dp.

Definition at line 60 of file clip.hpp.

◆ y

float guillaume::components::Clip::Rect::y { 0.0f }

Top edge, in dp.

Definition at line 61 of file clip.hpp.


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