GraphElement

package
v0.0.0-...-546f9d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package GraphElement provides methods for working with GraphElement object instances.

Index

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 Any

type Any interface {
	gd.IsClass
	AsGraphElement() Instance
}

type Instance

type Instance [1]gdclass.GraphElement

[GraphElement] allows to create custom elements for a [GraphEdit] graph. By default such elements can be selected, resized, and repositioned, but they cannot be connected. For a graph element that allows for connections see [GraphNode].

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsCanvasItem

func (self Instance) AsCanvasItem() CanvasItem.Instance

func (Instance) AsContainer

func (self Instance) AsContainer() Container.Instance

func (Instance) AsControl

func (self Instance) AsControl() Control.Instance

func (Instance) AsGraphElement

func (self Instance) AsGraphElement() Instance

func (Instance) AsNode

func (self Instance) AsNode() Node.Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) Draggable

func (self Instance) Draggable() bool

func (Instance) OnDeleteRequest

func (self Instance) OnDeleteRequest(cb func())

func (Instance) OnDragged

func (self Instance) OnDragged(cb func(from Vector2.XY, to Vector2.XY))

func (Instance) OnNodeDeselected

func (self Instance) OnNodeDeselected(cb func())

func (Instance) OnNodeSelected

func (self Instance) OnNodeSelected(cb func())

func (Instance) OnPositionOffsetChanged

func (self Instance) OnPositionOffsetChanged(cb func())

func (Instance) OnRaiseRequest

func (self Instance) OnRaiseRequest(cb func())

func (Instance) OnResizeEnd

func (self Instance) OnResizeEnd(cb func(new_size Vector2.XY))

func (Instance) OnResizeRequest

func (self Instance) OnResizeRequest(cb func(new_size Vector2.XY))

func (Instance) PositionOffset

func (self Instance) PositionOffset() Vector2.XY

func (Instance) Resizable

func (self Instance) Resizable() bool

func (Instance) Selectable

func (self Instance) Selectable() bool

func (Instance) Selected

func (self Instance) Selected() bool

func (Instance) SetDraggable

func (self Instance) SetDraggable(value bool)

func (Instance) SetPositionOffset

func (self Instance) SetPositionOffset(value Vector2.XY)

func (Instance) SetResizable

func (self Instance) SetResizable(value bool)

func (Instance) SetSelectable

func (self Instance) SetSelectable(value bool)

func (Instance) SetSelected

func (self Instance) SetSelected(value bool)

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL