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;
|
||||
}
|
||||
|
||||
gui_bool
|
||||
gui_panel_is_minimized(struct gui_panel *panel)
|
||||
{
|
||||
return panel->minimized;
|
||||
}
|
||||
|
||||
gui_bool
|
||||
gui_panel_begin(struct gui_panel_layout *l, struct gui_panel *p,
|
||||
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:
|
||||
- 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*,
|
||||
const char *title, const struct gui_input*);
|
||||
/* this function begins the panel build up process
|
||||
|
Loading…
x
Reference in New Issue
Block a user