add container margin
the margin also counts for resizing allowing for small borders
This commit is contained in:
parent
8dc34e7114
commit
e8c7a65f52
2 changed files with 51 additions and 34 deletions
5
ugui.h
5
ugui.h
|
|
@ -74,6 +74,7 @@ typedef struct {
|
|||
ug_size_t t, b, l, r;
|
||||
ug_color_t color;
|
||||
} border;
|
||||
ug_size_t margin;
|
||||
// titlebar only gets applied to movable containers
|
||||
struct {
|
||||
ug_size_t height;
|
||||
|
|
@ -231,6 +232,10 @@ int ug_container_body(ug_ctx_t *ctx, const char *name);
|
|||
int ug_container_remove(ug_ctx_t *ctx, const char *name);
|
||||
|
||||
|
||||
// layouts
|
||||
|
||||
|
||||
|
||||
// Input functions
|
||||
int ug_input_mousemove(ug_ctx_t *ctx, int x, int y);
|
||||
int ug_input_mousedown(ug_ctx_t *ctx, unsigned int mask);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue