Documentation
¶
Overview ¶
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.
Index ¶
- type Advanced
- type Any
- type DraggerVisibility
- type Extension
- func (self *Extension[T]) AsCanvasItem() CanvasItem.Instance
- func (self *Extension[T]) AsContainer() Container.Instance
- func (self *Extension[T]) AsControl() Control.Instance
- func (self *Extension[T]) AsNode() Node.Instance
- func (self *Extension[T]) AsObject() [1]gd.Object
- func (self *Extension[T]) AsSplitContainer() Instance
- type ID
- type Instance
- func (self Instance) AsCanvasItem() CanvasItem.Instance
- func (self Instance) AsContainer() Container.Instance
- func (self Instance) AsControl() Control.Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsSplitContainer() Instance
- func (self Instance) ClampSplitOffset()
- func (self Instance) Collapsed() bool
- func (self Instance) DragAreaHighlightInEditor() bool
- func (self Instance) DragAreaMarginBegin() int
- func (self Instance) DragAreaMarginEnd() int
- func (self Instance) DragAreaOffset() int
- func (self Instance) DraggerVisibility() DraggerVisibility
- func (self Instance) DraggingEnabled() bool
- func (self Instance) GetDragAreaControl() Control.Instance
- func (self Instance) ID() ID
- func (self Instance) OnDragEnded(cb func(), flags ...Signal.Flags)
- func (self Instance) OnDragStarted(cb func(), flags ...Signal.Flags)
- func (self Instance) OnDragged(cb func(offset int), flags ...Signal.Flags)
- func (self Instance) SetCollapsed(value bool)
- func (self Instance) SetDragAreaHighlightInEditor(value bool)
- func (self Instance) SetDragAreaMarginBegin(value int)
- func (self Instance) SetDragAreaMarginEnd(value int)
- func (self Instance) SetDragAreaOffset(value int)
- func (self Instance) SetDraggerVisibility(value DraggerVisibility)
- func (self Instance) SetDraggingEnabled(value bool)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetSplitOffset(value int)
- func (self Instance) SetTouchDraggerEnabled(value bool)
- func (self Instance) SetVertical(value bool)
- func (self Instance) SplitOffset() int
- func (self Instance) TouchDraggerEnabled() bool
- func (self Instance) Vertical() bool
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type DraggerVisibility ¶
type DraggerVisibility int //gd:SplitContainer.DraggerVisibility
const ( // The split dragger icon is always visible when theme's 'autohide' is false, otherwise visible only when the cursor hovers it. // // The size of the grabber icon determines the minimum theme's 'separation'. // // The dragger icon is automatically hidden if the length of the grabber icon is longer than the split bar. DraggerVisible DraggerVisibility = 0 // The split dragger icon is never visible regardless of the value of theme's 'autohide'. // // The size of the grabber icon determines the minimum theme's 'separation'. DraggerHidden DraggerVisibility = 1 // The split dragger icon is not visible, and the split bar is collapsed to zero thickness. DraggerHiddenCollapsed DraggerVisibility = 2 )
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsCanvasItem ¶
func (self *Extension[T]) AsCanvasItem() CanvasItem.Instance
func (*Extension[T]) AsContainer ¶
func (*Extension[T]) AsSplitContainer ¶
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.SplitContainer
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsCanvasItem ¶
func (self Instance) AsCanvasItem() CanvasItem.Instance
func (Instance) AsContainer ¶
func (Instance) AsSplitContainer ¶
func (Instance) ClampSplitOffset ¶
func (self Instance) ClampSplitOffset()
Clamps the SplitOffset value to not go outside the currently possible minimal and maximum values.
func (Instance) DragAreaHighlightInEditor ¶
func (Instance) DragAreaMarginBegin ¶
func (Instance) DragAreaMarginEnd ¶
func (Instance) DragAreaOffset ¶
func (Instance) DraggerVisibility ¶
func (self Instance) DraggerVisibility() DraggerVisibility
func (Instance) DraggingEnabled ¶
func (Instance) GetDragAreaControl ¶
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.
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.MouseFilter of custom children to [Control.MouseFilterIgnore] to prevent blocking the mouse from dragging if desired.
Warning: This is a required internal node, removing and freeing it may cause a crash.
func (Instance) OnDragEnded ¶
func (Instance) OnDragStarted ¶
func (Instance) SetCollapsed ¶
func (Instance) SetDragAreaHighlightInEditor ¶
func (Instance) SetDragAreaMarginBegin ¶
func (Instance) SetDragAreaMarginEnd ¶
func (Instance) SetDragAreaOffset ¶
func (Instance) SetDraggerVisibility ¶
func (self Instance) SetDraggerVisibility(value DraggerVisibility)