reworked layout
This commit is contained in:
parent
0948708050
commit
6fe3ce8787
4 changed files with 231 additions and 170 deletions
12
ugui.h
12
ugui.h
|
|
@ -29,7 +29,8 @@ typedef enum {
|
|||
// element type
|
||||
typedef struct {
|
||||
ug_id_t id;
|
||||
unsigned int type;
|
||||
unsigned short int type;
|
||||
unsigned short int flags;
|
||||
ug_rect_t rect, rca;
|
||||
const char *name;
|
||||
union {
|
||||
|
|
@ -53,6 +54,10 @@ enum {
|
|||
UG_ELEM_SPACE, // takes up space
|
||||
};
|
||||
|
||||
enum {
|
||||
ELEM_CLIPPED = BIT(0),
|
||||
};
|
||||
|
||||
|
||||
// container type, a container is an entity that contains layouts, a container has
|
||||
// a haight a width and their maximum values, in essence a container is a rectangular
|
||||
|
|
@ -92,9 +97,10 @@ enum {
|
|||
CNT_STATE_RESIZE_B = BIT(27),
|
||||
CNT_STATE_RESIZE_L = BIT(26),
|
||||
CNT_STATE_RESIZE_R = BIT(25),
|
||||
CNT_STATE_DELETE = BIT(24), // The container is marked for removal
|
||||
CNT_STATE_RESIZE_D = BIT(24),
|
||||
CNT_STATE_DELETE = BIT(23), // The container is marked for removal
|
||||
// layouting
|
||||
CNT_LAYOUT_COLUMN = BIT(23),
|
||||
CNT_LAYOUT_COLUMN = BIT(22),
|
||||
};
|
||||
|
||||
// style, defines default height, width, color, margins, borders, etc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue