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.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/scene/gui/panel.h b/scene/gui/panel.h
index 3538126d22..739c64c0a6 100644
--- a/scene/gui/panel.h
+++ b/scene/gui/panel.h
@@ -37,12 +37,26 @@ 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();
};
+VARIANT_ENUM_CAST(Panel::Mode)
#endif