|
24 | 24 | <link title="All GUI Demos">https://github.com/godotengine/godot-demo-projects/tree/master/gui</link> |
25 | 25 | </tutorials> |
26 | 26 | <methods> |
27 | | - <method name="_accessibility_get_contextual_info" qualifiers="virtual const"> |
28 | | - <return type="String" /> |
29 | | - <description> |
30 | | - Return the description of the keyboard shortcuts and other contextual help for this control. |
31 | | - </description> |
32 | | - </method> |
33 | 27 | <method name="_can_drop_data" qualifiers="virtual const"> |
34 | 28 | <return type="bool" /> |
35 | 29 | <param index="0" name="at_position" type="Vector2" /> |
36 | 30 | <param index="1" name="data" type="Variant" /> |
37 | 31 | <description> |
38 | 32 | Godot calls this method to test if [param data] from a control's [method _get_drag_data] can be dropped at [param at_position]. [param at_position] is local to this control. |
39 | 33 | This method should only be used to test the data. Process the data in [method _drop_data]. |
40 | | - [b]Note:[/b] If the drag was initiated by a keyboard shortcut or [method accessibility_drag], [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drop position. |
| 34 | + [b]Note:[/b] If the drag was initiated by a keyboard shortcut, [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drop position. |
41 | 35 | [codeblocks] |
42 | 36 | [gdscript] |
43 | 37 | func _can_drop_data(position, data): |
|
62 | 56 | <param index="1" name="data" type="Variant" /> |
63 | 57 | <description> |
64 | 58 | Godot calls this method to pass you the [param data] from a control's [method _get_drag_data] result. Godot first calls [method _can_drop_data] to test if [param data] is allowed to drop at [param at_position] where [param at_position] is local to this control. |
65 | | - [b]Note:[/b] If the drag was initiated by a keyboard shortcut or [method accessibility_drag], [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drop position. |
| 59 | + [b]Note:[/b] If the drag was initiated by a keyboard shortcut, [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drop position. |
66 | 60 | [codeblocks] |
67 | 61 | [gdscript] |
68 | 62 | func _can_drop_data(position, data): |
|
85 | 79 | [/codeblocks] |
86 | 80 | </description> |
87 | 81 | </method> |
88 | | - <method name="_get_accessibility_container_name" qualifiers="virtual const"> |
89 | | - <return type="String" /> |
90 | | - <param index="0" name="node" type="Node" /> |
91 | | - <description> |
92 | | - Override this method to return a human-readable description of the position of the child [param node] in the custom container, added to the [member accessibility_name]. |
93 | | - </description> |
94 | | - </method> |
95 | 82 | <method name="_get_drag_data" qualifiers="virtual"> |
96 | 83 | <return type="Variant" /> |
97 | 84 | <param index="0" name="at_position" type="Vector2" /> |
98 | 85 | <description> |
99 | 86 | Godot calls this method to get data that can be dragged and dropped onto controls that expect drop data. Returns [code]null[/code] if there is no data to drag. Controls that want to receive drop data should implement [method _can_drop_data] and [method _drop_data]. [param at_position] is local to this control. Drag may be forced with [method force_drag]. |
100 | 87 | A preview that will follow the mouse that should represent the data can be set with [method set_drag_preview]. A good time to set the preview is in this method. |
101 | | - [b]Note:[/b] If the drag was initiated by a keyboard shortcut or [method accessibility_drag], [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drag position. |
| 88 | + [b]Note:[/b] If the drag was initiated by a keyboard shortcut, [param at_position] is set to [constant Vector2.INF], and the currently selected item/text position should be used as the drag position. |
102 | 89 | [codeblocks] |
103 | 90 | [gdscript] |
104 | 91 | func _get_drag_data(position): |
|
239 | 226 | [b]Note:[/b] This does not affect the methods in [Input], only the way events are propagated. |
240 | 227 | </description> |
241 | 228 | </method> |
242 | | - <method name="accessibility_drag"> |
243 | | - <return type="void" /> |
244 | | - <description> |
245 | | - Starts drag-and-drop operation without using a mouse. |
246 | | - </description> |
247 | | - </method> |
248 | | - <method name="accessibility_drop"> |
249 | | - <return type="void" /> |
250 | | - <description> |
251 | | - Ends drag-and-drop operation without using a mouse. |
252 | | - </description> |
253 | | - </method> |
254 | 229 | <method name="add_theme_color_override"> |
255 | 230 | <return type="void" /> |
256 | 231 | <param index="0" name="name" type="StringName" /> |
|
975 | 950 | </method> |
976 | 951 | </methods> |
977 | 952 | <members> |
978 | | - <member name="accessibility_controls_nodes" type="NodePath[]" setter="set_accessibility_controls_nodes" getter="get_accessibility_controls_nodes" default="[]"> |
979 | | - The paths to the nodes which are controlled by this node. |
980 | | - </member> |
981 | | - <member name="accessibility_described_by_nodes" type="NodePath[]" setter="set_accessibility_described_by_nodes" getter="get_accessibility_described_by_nodes" default="[]"> |
982 | | - The paths to the nodes which are describing this node. |
983 | | - </member> |
984 | | - <member name="accessibility_description" type="String" setter="set_accessibility_description" getter="get_accessibility_description" default=""""> |
985 | | - The human-readable node description that is reported to assistive apps. |
986 | | - </member> |
987 | | - <member name="accessibility_flow_to_nodes" type="NodePath[]" setter="set_accessibility_flow_to_nodes" getter="get_accessibility_flow_to_nodes" default="[]"> |
988 | | - The paths to the nodes which this node flows into. |
989 | | - </member> |
990 | | - <member name="accessibility_labeled_by_nodes" type="NodePath[]" setter="set_accessibility_labeled_by_nodes" getter="get_accessibility_labeled_by_nodes" default="[]"> |
991 | | - The paths to the nodes which label this node. |
992 | | - </member> |
993 | | - <member name="accessibility_live" type="int" setter="set_accessibility_live" getter="get_accessibility_live" enum="DisplayServer.AccessibilityLiveMode" default="0"> |
994 | | - The mode with which a live region updates. A live region is a [Node] that is updated as a result of an external event when the user's focus may be elsewhere. |
995 | | - </member> |
996 | | - <member name="accessibility_name" type="String" setter="set_accessibility_name" getter="get_accessibility_name" default=""""> |
997 | | - The human-readable node name that is reported to assistive apps. |
998 | | - </member> |
999 | 953 | <member name="anchor_bottom" type="float" setter="_set_anchor" getter="get_anchor" default="0.0"> |
1000 | 954 | Anchors the bottom edge of the node to the origin, the center, or the end of its parent control. It changes how the bottom offset updates when the node moves or changes size. You can use one of the [enum Anchor] constants for convenience. |
1001 | 955 | </member> |
|
0 commit comments