Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
HSplitContainer¶
Inherits: SplitContainer < Container < Control < CanvasItem < Node < Object
A container that splits two child controls horizontally and provides a grabber for adjusting the split ratio.
描述¶
A container that accepts only two child controls, then arranges them horizontally and creates a divisor between them. The divisor can be dragged around to change the size relation between the child controls.
教程¶
Theme Properties¶
|
||
|
||
|
||
Theme Property Descriptions¶
int autohide = 1
Boolean value. If 1 (true
), the grabber will hide automatically when it isn't under the cursor. If 0 (false
), it's always visible.
int minimum_grab_thickness = 6
The minimum thickness of the area users can click on to grab the splitting line. If separation or grabber's thickness are too small, this ensure that the splitting line can still be dragged.
int separation = 12
The space between sides of the container.
Texture2D grabber
The icon used for the grabber drawn in the middle area.