summaryrefslogtreecommitdiff
path: root/scene/gui/panel.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/panel.h')
-rw-r--r--scene/gui/panel.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/scene/gui/panel.h b/scene/gui/panel.h
index 3538126d22..a68c3d3f0c 100644
--- a/scene/gui/panel.h
+++ b/scene/gui/panel.h
@@ -34,15 +34,29 @@
#include "scene/gui/control.h"
class Panel : public Control {
-
GDCLASS(Panel, Control);
+public:
+ enum Mode {
+ MODE_BACKGROUND,
+ MODE_FOREGROUND,
+ };
+
+private:
+ Mode mode = MODE_BACKGROUND;
+
protected:
void _notification(int p_what);
+ static void _bind_methods();
public:
+ void set_mode(Mode p_mode);
+ Mode get_mode() const;
+
Panel();
~Panel();
};
-#endif
+VARIANT_ENUM_CAST(Panel::Mode)
+
+#endif // PANEL_H