Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
- AnimationMixer (2)
- AudioStreamPlayer
- CanvasItem (2)
- CanvasLayer (1)
- EditorFileSystem
- EditorPlugin (1)
- EditorResourcePreview
- HTTPRequest
- InstancePlaceholder
- MissingNode
- MultiplayerSpawner
- MultiplayerSynchronizer
- NavigationAgent2D
- NavigationAgent3D
- Node3D (31)
- ResourcePreloader
- ShaderGlobalsOverride
- StatusIndicator
- Timer
- Viewport (2)
- WorldEnvironment
- BaseButton (3)
- ColorRect
- Container (13)
- GraphEdit
- ItemList
- Label
- LineEdit
- MenuBar
- NinePatchRect
- Panel
- Range (6)
- ReferenceRect
- RichTextLabel
- Separator (2)
- TabBar
- TextEdit (1)
- TextureRect
- Tree
- VideoStreamPlayer
- AspectRatioContainer
- BoxContainer (2)
- CenterContainer
- EditorProperty
- FlowContainer (2)
- GraphElement (2)
- GridContainer
- MarginContainer
- PanelContainer (2)
- ScrollContainer (1)
- SplitContainer (2)
- SubViewportContainer
- TabContainer
Table of contents
-
var draggable: bool = true -
var position_offset: Vector2 = Vector2(0, 0) -
var resizable: bool = false -
var selectable: bool = true -
var selected: bool = false -
signal delete_request() -
signal dragged(to: Vector2) -
signal node_deselected() -
signal node_selected() -
signal position_offset_changed() -
signal raise_request() -
signal resize_end(new_size: Vector2) -
signal resize_request(new_size: Vector2) -
self["theme_override_icons/resizer"] = icon as Texture2D
GraphElement #
is_instantiable, Node, core, not_builtin_classes
A container that represents a basic element that can be placed inside a GraphEdit control.
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.
Members #
var draggable: bool = true#
If true, the user can drag the GraphElement.
var position_offset: Vector2 = Vector2(0, 0)#
The offset of the GraphElement, relative to the scroll offset of the GraphEdit.
var resizable: bool = false#
If true, the user can resize the GraphElement.
Note: Dragging the handle will only emit the resize_request and resize_end signals, the GraphElement needs to be resized manually.
var selectable: bool = true#
If true, the user can select the GraphElement.
var selected: bool = false#
If true, the GraphElement is selected.
Methods #
Annotations #
Constants #
Constructors #
Enums #
Operators #
Signals #
signal delete_request()#
Emitted when removing the GraphElement is requested.
signal dragged(to: Vector2)#
Emitted when the GraphElement is dragged.
signal node_deselected()#
Emitted when the GraphElement is deselected.
signal node_selected()#
Emitted when the GraphElement is selected.
signal position_offset_changed()#
Emitted when the GraphElement is moved.
signal raise_request()#
Emitted when displaying the GraphElement over other ones is requested. Happens on focusing (clicking into) the GraphElement.
signal resize_end(new_size: Vector2)#
Emitted when releasing the mouse button after dragging the resizer handle (see resizable).
signal resize_request(new_size: Vector2)#
Emitted when resizing the GraphElement is requested. Happens on dragging the resizer handle (see resizable).
Theme Items #
self["theme_override_icons/resizer"] = icon as Texture2D#
The icon used for the resizer, visible when resizable is enabled.