2017-09-12 17:42:36 -03:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 10:08:05 +02:00
<class name= "ReferenceRect" inherits= "Control" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 17:42:36 -03:00
<brief_description >
2025-06-04 14:17:55 +02:00
A rectangular box for designing UIs.
2017-09-12 17:42:36 -03:00
</brief_description>
<description >
2025-06-04 14:17:55 +02:00
A rectangular box that displays only a colored border around its rectangle (see [method Control.get_rect]). It can be used to visualize the extents of a [Control] node, for testing purposes.
2017-09-12 17:42:36 -03:00
</description>
<tutorials >
</tutorials>
2018-08-11 10:37:03 +03:00
<members >
2019-09-24 14:45:03 -03:00
<member name= "border_color" type= "Color" setter= "set_border_color" getter= "get_border_color" default= "Color(1, 0, 0, 1)" >
2023-04-30 16:26:09 +02:00
Sets the border color of the [ReferenceRect].
2019-06-25 12:00:32 +03:00
</member>
2020-10-19 20:41:25 +03:00
<member name= "border_width" type= "float" setter= "set_border_width" getter= "get_border_width" default= "1.0" >
Sets the border width of the [ReferenceRect]. The border grows both inwards and outwards with respect to the rectangle box.
</member>
2019-06-29 12:38:01 +02:00
<member name= "editor_only" type= "bool" setter= "set_editor_only" getter= "get_editor_only" default= "true" >
2021-11-23 12:20:57 +01:00
If [code]true[/code], the [ReferenceRect] will only be visible while in editor. Otherwise, [ReferenceRect] will be visible in the running project.
2018-08-11 10:37:03 +03:00
</member>
</members>
2017-09-12 17:42:36 -03:00
</class>