Inherits: Container < Control < CanvasItem < Node < Object
Inherited By: GraphNode
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.
| ||
| ||
| ||
| ||
|
Emitted when removing the GraphElement is requested.
Emitted when the GraphElement is dragged.
Emitted when the GraphElement is deselected.
Emitted when the GraphElement is selected.
Emitted when the GraphElement is moved.
Emitted when displaying the GraphElement over other ones is requested. Happens on focusing (clicking into) the GraphElement.
Emitted when resizing the GraphElement is requested. Happens on dragging the resizer handle (see resizable).
true
If true, the user can drag the GraphElement.
Vector2(0, 0)
The offset of the GraphElement, relative to the scroll offset of the GraphEdit.
false
If true, the user can resize the GraphElement.
Note: Dragging the handle will only emit the resize_request signal, the GraphElement needs to be resized manually.
true
If true, the user can select the GraphElement.
false
If true, the GraphElement is selected.
The icon used for the resizer, visible when resizable is enabled.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_graphelement.html