class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectNodeCanvasItemControlContainer SplitContainer
A container that splits two child controls horizontally or vertically and provides a grabber for adjusting the split ratio.

A container that accepts only two child controls, then arranges them horizontally or vertically and creates a divisor between them. The divisor can be dragged around to change the size relation between the child controls.

Signal drag_ended<>():Signal

Emitted when the user ends dragging.

Signal drag_started<>():Signal

Emitted when the user starts dragging.

Signal dragged<>( int offset=, offset:int=, ):Signal

Emitted when the dragger is dragged by user.

Enum DraggerVisibility<>():Enum

DRAGGER_VISIBLE = 0

The split dragger icon is always visible when autohide is false, otherwise visible only when the cursor hovers it.


DRAGGER_HIDDEN = 1

The split dragger icon is never visible regardless of the value of autohide.


DRAGGER_HIDDEN_COLLAPSED = 2

The split dragger icon is not visible, and the split bar is collapsed to zero thickness.

bool collapsed<>():bool

If true, the dragger will be disabled and the children will be sized as if the split_offset was 0.

bool drag_area_highlight_in_editor<>():bool

Highlights the drag area Rect2 so you can see where it is during development. The drag area is gold if dragging_enabled is true, and red if false.

int drag_area_margin_begin<>():int

Reduces the size of the drag area and split bar split_bar_background at the beginning of the container.

int drag_area_margin_end<>():int

Reduces the size of the drag area and split bar split_bar_background at the end of the container.

int drag_area_offset<>():int

Shifts the drag area in the axis of the container to prevent the drag area from overlapping the ScrollBar or other selectable Control of a child node.

DraggerVisibility dragger_visibility<>():DraggerVisibility

Determines the dragger's visibility. See DraggerVisibility for details. This property does not determine whether dragging is enabled or not. Use dragging_enabled for that.

bool dragging_enabled<>():bool

Enables or disables split dragging.

int split_offset<>():int

The initial offset of the splitting between the two Controls, with 0 being at the end of the first Control.

bool vertical<>():bool

If true, the SplitContainer will arrange its children vertically, rather than horizontally.

Can't be changed when using HSplitContainer and VSplitContainer.

void clamp_split_offset<>():void

Clamps the split_offset value to not go outside the currently possible minimal and maximum values.

Control get_drag_area_control<>():Control

Returns the drag area Control. For example, you can move a pre-configured button into the drag area Control so that it rides along with the split bar. Try setting the Button anchors to center prior to the reparent() call.

$BarnacleButton.reparent($SplitContainer.get_drag_area_control())

Note: The drag area Control is drawn over the SplitContainer's children, so CanvasItem draw objects called from the Control and children added to the Control will also appear over the SplitContainer's children. Try setting Control.mouse_filter of custom children to Control.MOUSE_FILTER_IGNORE to prevent blocking the mouse from dragging if desired.

Warning: This is a required internal node, removing and freeing it may cause a crash.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...