C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
UiRect Struct Reference

Structure representing a rectangular area in the UI. More...

#include <ui_backend.h>

Collaboration diagram for UiRect:
[legend]

Data Fields

int cols
int rows
int x
int y

Detailed Description

Structure representing a rectangular area in the UI.

The UiRect structure defines a rectangular area within the UI, specified by its top-left corner (y, x) and its dimensions (rows, cols). This structure is commonly used when creating new surfaces or defining areas for drawing operations. The y and x fields represent the position of the rectangle's top-left corner relative to its parent surface, while the rows and cols fields specify the height and width of the rectangle, respectively. By using UiRect, you can easily manage and manipulate different areas of the UI for various purposes such as layout management and drawing.

See also
ui_surface_new

Definition at line 196 of file ui_backend.h.

Field Documentation

◆ cols

int UiRect::cols

Definition at line 200 of file ui_backend.h.

Referenced by ui_rect_set(), and ui_surface_new().

◆ rows

int UiRect::rows

Definition at line 199 of file ui_backend.h.

Referenced by ui_rect_set(), and ui_surface_new().

◆ x

int UiRect::x

Definition at line 198 of file ui_backend.h.

Referenced by ui_rect_set(), and ui_surface_new().

◆ y

int UiRect::y

Definition at line 197 of file ui_backend.h.

Referenced by ui_rect_set(), and ui_surface_new().


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