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.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/scene/gui/panel.h b/scene/gui/panel.h
index 3538126d22..75e266b6a6 100644
--- a/scene/gui/panel.h
+++ b/scene/gui/panel.h
@@ -37,12 +37,27 @@ 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