added getter for the minimized state of the panel

This commit is contained in:
vurtun 2015-07-02 13:41:52 +02:00
parent e973545e3b
commit 28323aef51
2 changed files with 8 additions and 0 deletions

6
gui.c
View File

@ -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
View File

@ -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