added getter for the minimized state of the panel
This commit is contained in:
parent
e973545e3b
commit
28323aef51
6
gui.c
6
gui.c
@ -1811,6 +1811,12 @@ gui_panel_has_flag(struct gui_panel *panel, gui_flags f)
|
|||||||
return (panel->flags & f) ? gui_true: gui_false;
|
return (panel->flags & f) ? gui_true: gui_false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gui_bool
|
||||||
|
gui_panel_is_minimized(struct gui_panel *panel)
|
||||||
|
{
|
||||||
|
return panel->minimized;
|
||||||
|
}
|
||||||
|
|
||||||
gui_bool
|
gui_bool
|
||||||
gui_panel_begin(struct gui_panel_layout *l, struct gui_panel *p,
|
gui_panel_begin(struct gui_panel_layout *l, struct gui_panel *p,
|
||||||
const char *text, const struct gui_input *i)
|
const char *text, const struct gui_input *i)
|
||||||
|
2
gui.h
2
gui.h
@ -1714,6 +1714,8 @@ gui_bool gui_panel_has_flag(struct gui_panel*, gui_flags);
|
|||||||
Input:
|
Input:
|
||||||
- panel flags to check for
|
- panel flags to check for
|
||||||
*/
|
*/
|
||||||
|
gui_bool gui_panel_is_minimized(struct gui_panel*);
|
||||||
|
/* this function checks if the panel is minimized */
|
||||||
gui_bool gui_panel_begin(struct gui_panel_layout *layout, struct gui_panel*,
|
gui_bool gui_panel_begin(struct gui_panel_layout *layout, struct gui_panel*,
|
||||||
const char *title, const struct gui_input*);
|
const char *title, const struct gui_input*);
|
||||||
/* this function begins the panel build up process
|
/* this function begins the panel build up process
|
||||||
|
Loading…
x
Reference in New Issue
Block a user