From 28323aef51a8aae37b86da40b64253fb47c8ed63 Mon Sep 17 00:00:00 2001 From: vurtun Date: Thu, 2 Jul 2015 13:41:52 +0200 Subject: [PATCH] added getter for the minimized state of the panel --- gui.c | 6 ++++++ gui.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gui.c b/gui.c index 4c0d37a..df70a41 100644 --- a/gui.c +++ b/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) diff --git a/gui.h b/gui.h index 900e433..a7aec38 100644 --- a/gui.h +++ b/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