The clip rectangle, in the same coordinates as the position of a components::Transform.
More...
#include <headers/guillaume/components/clip.hpp>
|
| bool | operator== (const Rect &other) const |
| | Compare the origin and the size of two rectangles.
|
|
| 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.
|
The clip rectangle, in the same coordinates as the position of a components::Transform.
Definition at line 59 of file clip.hpp.
◆ operator==()
| bool guillaume::components::Clip::Rect::operator== |
( |
const Rect & | other | ) |
const |
|
inline |
Compare the origin and the size of two rectangles.
- Parameters
-
| other | The rectangle to compare with. |
- Returns
- True when the four values are equal.
Definition at line 70 of file clip.hpp.
◆ 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.
| float guillaume::components::Clip::Rect::x { 0.0f } |
Left edge, in dp.
Definition at line 60 of file clip.hpp.
| 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: