GraphFrame

package
v0.0.0-...-e10d1cd Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

GraphFrame is a special GraphElement to which other GraphElements can be attached. It can be configured to automatically resize to enclose all attached GraphElements. If the frame is moved, all the attached GraphElements inside it will be moved as well.

A GraphFrame is always kept behind the connection layer and other GraphElements inside a GraphEdit.

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
	AsGraphFrame() Instance
}

type Extension

type Extension[T gdclass.Interface] struct{ gdclass.Extension[T, Instance] }

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 (self *Extension[T]) AsContainer() Container.Instance

func (*Extension[T]) AsControl

func (self *Extension[T]) AsControl() Control.Instance

func (*Extension[T]) AsGraphElement

func (self *Extension[T]) AsGraphElement() GraphElement.Instance

func (*Extension[T]) AsGraphFrame

func (self *Extension[T]) AsGraphFrame() Instance

func (*Extension[T]) AsNode

func (self *Extension[T]) AsNode() Node.Instance

func (*Extension[T]) AsObject

func (self *Extension[T]) AsObject() [1]gd.Object

type ID

type ID Object.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.

func (ID) Instance

func (id ID) Instance() (Instance, bool)

type Instance

type Instance [1]gdclass.GraphFrame

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 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() GraphElement.Instance

func (Instance) AsGraphFrame

func (self Instance) AsGraphFrame() Instance

func (Instance) AsNode

func (self Instance) AsNode() Node.Instance

func (Instance) AsObject

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

func (Instance) AutoshrinkEnabled

func (self Instance) AutoshrinkEnabled() bool

func (Instance) AutoshrinkMargin

func (self Instance) AutoshrinkMargin() int

func (Instance) DragMargin

func (self Instance) DragMargin() int

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.

func (Instance) ID

func (self Instance) ID() ID

func (Instance) OnAutoshrinkChanged

func (self Instance) OnAutoshrinkChanged(cb func(), flags ...Signal.Flags)

func (Instance) SetAutoshrinkEnabled

func (self Instance) SetAutoshrinkEnabled(value bool)

func (Instance) SetAutoshrinkMargin

func (self Instance) SetAutoshrinkMargin(value int)

func (Instance) SetDragMargin

func (self Instance) SetDragMargin(value int)

func (*Instance) SetObject

func (self *Instance) SetObject(obj [1]gd.Object) bool

func (Instance) SetTintColor

func (self Instance) SetTintColor(value Color.RGBA)

func (Instance) SetTintColorEnabled

func (self Instance) SetTintColorEnabled(value bool)

func (Instance) SetTitle

func (self Instance) SetTitle(value string)

func (Instance) TintColor

func (self Instance) TintColor() Color.RGBA

func (Instance) TintColorEnabled

func (self Instance) TintColorEnabled() bool

func (Instance) Title

func (self Instance) Title() string

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