2017-09-13 04:42:36 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2020-02-01 09:03:48 +08:00
|
|
|
<class name="SplitContainer" inherits="Container" version="4.0">
|
2017-09-13 04:42:36 +08:00
|
|
|
<brief_description>
|
|
|
|
Container for splitting and adjusting.
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
2020-01-06 05:19:08 +08:00
|
|
|
Container for splitting two [Control]s vertically or horizontally, with a grabber that allows adjusting the split offset or ratio.
|
2017-09-13 04:42:36 +08:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
2018-11-23 08:06:24 +08:00
|
|
|
<method name="clamp_split_offset">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<description>
|
2020-01-06 05:19:08 +08:00
|
|
|
Clamps the [member split_offset] value to not go outside the currently possible minimal and maximum values.
|
2018-11-23 08:06:24 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
2017-09-13 04:42:36 +08:00
|
|
|
</methods>
|
|
|
|
<members>
|
2019-06-29 18:38:01 +08:00
|
|
|
<member name="collapsed" type="bool" setter="set_collapsed" getter="is_collapsed" default="false">
|
2020-01-06 05:19:08 +08:00
|
|
|
If [code]true[/code], the area of the first [Control] will be collapsed and the dragger will be disabled.
|
2017-09-13 04:42:36 +08:00
|
|
|
</member>
|
2019-06-29 18:38:01 +08:00
|
|
|
<member name="dragger_visibility" type="int" setter="set_dragger_visibility" getter="get_dragger_visibility" enum="SplitContainer.DraggerVisibility" default="0">
|
2020-01-06 05:19:08 +08:00
|
|
|
Determines the dragger's visibility. See [enum DraggerVisibility] for details.
|
2017-09-13 04:42:36 +08:00
|
|
|
</member>
|
2019-06-29 18:38:01 +08:00
|
|
|
<member name="split_offset" type="int" setter="set_split_offset" getter="get_split_offset" default="0">
|
2020-01-06 05:19:08 +08:00
|
|
|
The initial offset of the splitting between the two [Control]s, with [code]0[/code] being at the end of the first [Control].
|
2017-09-13 04:42:36 +08:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<signals>
|
|
|
|
<signal name="dragged">
|
|
|
|
<argument index="0" name="offset" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
Emitted when the dragger is dragged by user.
|
|
|
|
</description>
|
|
|
|
</signal>
|
|
|
|
</signals>
|
|
|
|
<constants>
|
2017-11-25 06:16:30 +08:00
|
|
|
<constant name="DRAGGER_VISIBLE" value="0" enum="DraggerVisibility">
|
2020-01-06 05:19:08 +08:00
|
|
|
The split dragger is visible when the cursor hovers it.
|
2017-09-13 04:42:36 +08:00
|
|
|
</constant>
|
2017-11-25 06:16:30 +08:00
|
|
|
<constant name="DRAGGER_HIDDEN" value="1" enum="DraggerVisibility">
|
2020-01-06 05:19:08 +08:00
|
|
|
The split dragger is never visible.
|
2017-09-13 04:42:36 +08:00
|
|
|
</constant>
|
2017-11-25 06:16:30 +08:00
|
|
|
<constant name="DRAGGER_HIDDEN_COLLAPSED" value="2" enum="DraggerVisibility">
|
2020-01-06 05:19:08 +08:00
|
|
|
The split dragger is never visible and its space collapsed.
|
2017-09-13 04:42:36 +08:00
|
|
|
</constant>
|
|
|
|
</constants>
|
|
|
|
</class>
|