summaryrefslogtreecommitdiff
path: root/scene/gui/reference_rect.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/reference_rect.h')
-rw-r--r--scene/gui/reference_rect.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/scene/gui/reference_rect.h b/scene/gui/reference_rect.h
index c25c54f271..becbbf47c5 100644
--- a/scene/gui/reference_rect.h
+++ b/scene/gui/reference_rect.h
@@ -34,21 +34,23 @@
#include "scene/gui/control.h"
class ReferenceRect : public Control {
-
GDCLASS(ReferenceRect, Control);
- Color border_color;
- bool editor_only;
+
+ Color border_color = Color(1, 0, 0);
+ float border_width = 1.0;
+ bool editor_only = true;
protected:
void _notification(int p_what);
static void _bind_methods();
public:
- ReferenceRect();
-
void set_border_color(const Color &p_color);
Color get_border_color() const;
+ void set_border_width(float p_width);
+ float get_border_width() const;
+
void set_editor_only(const bool &p_enabled);
bool get_editor_only() const;
};