mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-18 18:06:56 +01:00
019b8f009b
Users happening across any of the Container pages may not already know the intent of Containers, or which others are available. This commit adds a link to the existing "GUI containers" page in their tutorials sections. (cherry picked from commit 3b941ed98cfb1f72c35684f1d4d458dacd482c63)
51 lines
2.1 KiB
XML
51 lines
2.1 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="SplitContainer" inherits="Container" version="3.5">
|
|
<brief_description>
|
|
Container for splitting and adjusting.
|
|
</brief_description>
|
|
<description>
|
|
Container for splitting two [Control]s vertically or horizontally, with a grabber that allows adjusting the split offset or ratio.
|
|
</description>
|
|
<tutorials>
|
|
<link title="GUI containers">$DOCS_URL/tutorials/ui/gui_containers.html</link>
|
|
</tutorials>
|
|
<methods>
|
|
<method name="clamp_split_offset">
|
|
<return type="void" />
|
|
<description>
|
|
Clamps the [member split_offset] value to not go outside the currently possible minimal and maximum values.
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<members>
|
|
<member name="collapsed" type="bool" setter="set_collapsed" getter="is_collapsed" default="false">
|
|
If [code]true[/code], the area of the first [Control] will be collapsed and the dragger will be disabled.
|
|
</member>
|
|
<member name="dragger_visibility" type="int" setter="set_dragger_visibility" getter="get_dragger_visibility" enum="SplitContainer.DraggerVisibility" default="0">
|
|
Determines the dragger's visibility. See [enum DraggerVisibility] for details.
|
|
</member>
|
|
<member name="split_offset" type="int" setter="set_split_offset" getter="get_split_offset" default="0">
|
|
The initial offset of the splitting between the two [Control]s, with [code]0[/code] being at the end of the first [Control].
|
|
</member>
|
|
</members>
|
|
<signals>
|
|
<signal name="dragged">
|
|
<argument index="0" name="offset" type="int" />
|
|
<description>
|
|
Emitted when the dragger is dragged by user.
|
|
</description>
|
|
</signal>
|
|
</signals>
|
|
<constants>
|
|
<constant name="DRAGGER_VISIBLE" value="0" enum="DraggerVisibility">
|
|
The split dragger is visible when the cursor hovers it.
|
|
</constant>
|
|
<constant name="DRAGGER_HIDDEN" value="1" enum="DraggerVisibility">
|
|
The split dragger is never visible.
|
|
</constant>
|
|
<constant name="DRAGGER_HIDDEN_COLLAPSED" value="2" enum="DraggerVisibility">
|
|
The split dragger is never visible and its space collapsed.
|
|
</constant>
|
|
</constants>
|
|
</class>
|