Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
GraphElement
Hérite de : Container < Control < CanvasItem < Node < Object
Hérité par : GraphFrame, GraphNode
A container that represents a basic element that can be placed inside a GraphEdit control.
Description
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.
Propriétés
|
||
|
||
|
||
|
||
|
||
|
Propriétés du thème
Signaux
delete_request() 🔗
Emitted when removing the GraphElement is requested.
dragged(from: Vector2, to: Vector2) 🔗
Emitted when the GraphElement is dragged.
node_deselected() 🔗
Emitted when the GraphElement is deselected.
node_selected() 🔗
Emitted when the GraphElement is selected.
position_offset_changed() 🔗
Emitted when the GraphElement is moved.
raise_request() 🔗
Emitted when displaying the GraphElement over other ones is requested. Happens on focusing (clicking into) the GraphElement.
resize_end(new_size: Vector2) 🔗
Emitted when releasing the mouse button after dragging the resizer handle (see resizable).
resize_request(new_size: Vector2) 🔗
Emitted when resizing the GraphElement is requested. Happens on dragging the resizer handle (see resizable).
Descriptions des propriétés
If true, the user can drag the GraphElement.
Vector2 position_offset = Vector2(0, 0) 🔗
The offset of the GraphElement, relative to the scroll offset of the GraphEdit.
Si true, l'utilisateur peut redimensionner le GraphElement.
Note : Faire glisser la poignée n'émettra que les signaux resize_request et resize_end, le GraphElement doit être redimensionné manuellement.
If true, PopupMenus that are descendants of the GraphElement are scaled with the GraphEdit zoom.
Si true, l'utilisateur peut sélectionner le GraphElement.
If true, the GraphElement is selected.
Descriptions des propriétés du thème
The icon used for the resizer, visible when resizable is enabled.