Skip to content
0.2.0-dev Download ZIP
22 lines ·1.2 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="ReferenceRect" inherits="Control" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A rectangular box for designing UIs.
5 </brief_description>
6 <description>
7 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.
8 </description>
9 <tutorials>
10 </tutorials>
11 <members>
12 <member name="border_color" type="Color" setter="set_border_color" getter="get_border_color" default="Color(1, 0, 0, 1)">
13 Sets the border color of the [ReferenceRect].
14 </member>
15 <member name="border_width" type="float" setter="set_border_width" getter="get_border_width" default="1.0">
16 Sets the border width of the [ReferenceRect]. The border grows both inwards and outwards with respect to the rectangle box.
17 </member>
18 <member name="editor_only" type="bool" setter="set_editor_only" getter="get_editor_only" default="true">
19 If [code]true[/code], the [ReferenceRect] will only be visible while in editor. Otherwise, [ReferenceRect] will be visible in the running project.
20 </member>
21 </members>
22</class>