Documentation
¶
Overview ¶
Package GraphFrame provides methods for working with GraphFrame object instances.
Index ¶
- type Advanced
- type Any
- 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]) AsGraphElement() GraphElement.Instance
- func (self *Extension[T]) AsGraphFrame() Instance
- func (self *Extension[T]) AsNode() Node.Instance
- func (self *Extension[T]) AsObject() [1]gd.Object
- 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) AsGraphElement() GraphElement.Instance
- func (self Instance) AsGraphFrame() Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AutoshrinkEnabled() bool
- func (self Instance) AutoshrinkMargin() int
- func (self Instance) DragMargin() int
- func (self Instance) GetTitlebarHbox() HBoxContainer.Instance
- func (self Instance) ID() ID
- func (self Instance) OnAutoshrinkChanged(cb func(), flags ...Signal.Flags)
- func (self Instance) SetAutoshrinkEnabled(value bool)
- func (self Instance) SetAutoshrinkMargin(value int)
- func (self Instance) SetDragMargin(value int)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetTintColor(value Color.RGBA)
- func (self Instance) SetTintColorEnabled(value bool)
- func (self Instance) SetTitle(value string)
- func (self Instance) TintColor() Color.RGBA
- func (self Instance) TintColorEnabled() bool
- func (self Instance) Title() string
- func (self *Instance) UnsafePointer() unsafe.Pointer
- 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 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]) AsGraphElement ¶
func (self *Extension[T]) AsGraphElement() GraphElement.Instance
func (*Extension[T]) AsGraphFrame ¶
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.GraphFrame
GraphFrame is a special [GraphElement] to which other [GraphElement]s can be attached. It can be configured to automatically resize to enclose all attached [GraphElement]s. If the frame is moved, all the attached [GraphElement]s inside it will be moved as well. A GraphFrame is always kept behind the connection layer and other [GraphElement]s inside a [GraphEdit].
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) AsGraphElement ¶
func (self Instance) AsGraphElement() GraphElement.Instance
func (Instance) AsGraphFrame ¶
func (Instance) AutoshrinkEnabled ¶
func (Instance) AutoshrinkMargin ¶
func (Instance) DragMargin ¶
func (Instance) GetTitlebarHbox ¶
func (self Instance) GetTitlebarHbox() HBoxContainer.Instance
Returns the [HBoxContainer] used for the title bar, only containing a [Label] for displaying the title by default. This can be used to add custom controls to the title bar such as option or close buttons.