Add docs for XMLparser, VideoPlayer and most of Tree
This commit is contained in:
parent
d47e1f11fe
commit
7cd64c3c8d
1 changed files with 106 additions and 0 deletions
|
@ -42920,18 +42920,33 @@
|
||||||
</class>
|
</class>
|
||||||
<class name="Tree" inherits="Control" category="Core">
|
<class name="Tree" inherits="Control" category="Core">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
|
Control to show a tree of items.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
|
This shows a tree of items that can be selected, expanded and collapsed. The tree can have multiple columns with custom controls like text editing, buttons and popups. It can be useful for structural displaying and interactions.
|
||||||
|
Trees are built via code, using [TreeItem] objects to create the structure. They have a single root but multiple root can be simulated if a dummy hidden root is added.
|
||||||
|
[codeblock]
|
||||||
|
func _ready():
|
||||||
|
var tree = Tree.new()
|
||||||
|
var root = tree.create_item()
|
||||||
|
tree.set_hide_root(true)
|
||||||
|
var child1 = tree.create_item(root)
|
||||||
|
var child2 = tree.create_item(root)
|
||||||
|
var subchild1 = tree.create_item(child1)
|
||||||
|
subchild1.set_text(0, "Subchild1")
|
||||||
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="are_column_titles_visible" qualifiers="const">
|
<method name="are_column_titles_visible" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get whether the column titles are being shown.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="clear">
|
<method name="clear">
|
||||||
<description>
|
<description>
|
||||||
|
Clear the tree. This erases all of the items.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="create_item">
|
<method name="create_item">
|
||||||
|
@ -42940,16 +42955,19 @@
|
||||||
<argument index="0" name="parent" type="TreeItem" default="NULL">
|
<argument index="0" name="parent" type="TreeItem" default="NULL">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Create an item in the tree and add it as the last child of [code]parent[/code]. If parent is not given, it will be added as the last child of the root, or it'll the be the root itself if the tree is empty.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="ensure_cursor_is_visible">
|
<method name="ensure_cursor_is_visible">
|
||||||
<description>
|
<description>
|
||||||
|
Make the current selected item visible. This will scroll the tree to make sure the selected item is in sight.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_allow_rmb_select" qualifiers="const">
|
<method name="get_allow_rmb_select" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get whether a right click can select items.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_column_at_pos" qualifiers="const">
|
<method name="get_column_at_pos" qualifiers="const">
|
||||||
|
@ -42958,6 +42976,7 @@
|
||||||
<argument index="0" name="pos" type="Vector2">
|
<argument index="0" name="pos" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Get the column index under the given point.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_column_title" qualifiers="const">
|
<method name="get_column_title" qualifiers="const">
|
||||||
|
@ -42966,6 +42985,7 @@
|
||||||
<argument index="0" name="column" type="int">
|
<argument index="0" name="column" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Get the title of the given column.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_column_width" qualifiers="const">
|
<method name="get_column_width" qualifiers="const">
|
||||||
|
@ -42974,36 +42994,42 @@
|
||||||
<argument index="0" name="column" type="int">
|
<argument index="0" name="column" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Get the width of the given column in pixels.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_columns" qualifiers="const">
|
<method name="get_columns" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the amount of columns.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_custom_popup_rect" qualifiers="const">
|
<method name="get_custom_popup_rect" qualifiers="const">
|
||||||
<return type="Rect2">
|
<return type="Rect2">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the rectangle for custom popups. Helper to create custom cell controls that display a popup. See [method TreeItem.set_cell_mode].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_drop_mode_flags" qualifiers="const">
|
<method name="get_drop_mode_flags" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the flags of the current drop mode.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_edited" qualifiers="const">
|
<method name="get_edited" qualifiers="const">
|
||||||
<return type="TreeItem">
|
<return type="TreeItem">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the current edited item. This is only available for custom cell mode.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_edited_column" qualifiers="const">
|
<method name="get_edited_column" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the column of the cell for the current edited icon. This is only available for custom cell mode.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_item_area_rect" qualifiers="const">
|
<method name="get_item_area_rect" qualifiers="const">
|
||||||
|
@ -43014,6 +43040,7 @@
|
||||||
<argument index="1" name="column" type="int" default="-1">
|
<argument index="1" name="column" type="int" default="-1">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Get the rectangle area of the the specified item. If column is specified, only get the position and size of that column, otherwise get the rectangle containing all columns.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_item_at_pos" qualifiers="const">
|
<method name="get_item_at_pos" qualifiers="const">
|
||||||
|
@ -43022,6 +43049,7 @@
|
||||||
<argument index="0" name="pos" type="Vector2">
|
<argument index="0" name="pos" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Get the tree item at the specified position (relative to the tree origin position).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_next_selected">
|
<method name="get_next_selected">
|
||||||
|
@ -43030,42 +43058,49 @@
|
||||||
<argument index="0" name="from" type="TreeItem">
|
<argument index="0" name="from" type="TreeItem">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Get the next selected item after the given one.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_pressed_button" qualifiers="const">
|
<method name="get_pressed_button" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the index of the last pressed button.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_root">
|
<method name="get_root">
|
||||||
<return type="TreeItem">
|
<return type="TreeItem">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the root item of the tree.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_scroll" qualifiers="const">
|
<method name="get_scroll" qualifiers="const">
|
||||||
<return type="Vector2">
|
<return type="Vector2">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the current scrolling position.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_selected" qualifiers="const">
|
<method name="get_selected" qualifiers="const">
|
||||||
<return type="TreeItem">
|
<return type="TreeItem">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the currently selected item.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_selected_column" qualifiers="const">
|
<method name="get_selected_column" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the column number of the current selection.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_single_select_cell_editing_only_when_already_selected" qualifiers="const">
|
<method name="get_single_select_cell_editing_only_when_already_selected" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get whether the editing of a cell should only happen when it is already selected.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_delayed_text_editor_enabled" qualifiers="const">
|
<method name="is_delayed_text_editor_enabled" qualifiers="const">
|
||||||
|
@ -43078,12 +43113,14 @@
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get whether the folding arrow is hidden.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_allow_rmb_select">
|
<method name="set_allow_rmb_select">
|
||||||
<argument index="0" name="allow" type="bool">
|
<argument index="0" name="allow" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set whether or not a right mouse button click can select items.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_column_expand">
|
<method name="set_column_expand">
|
||||||
|
@ -43092,6 +43129,7 @@
|
||||||
<argument index="1" name="expand" type="bool">
|
<argument index="1" name="expand" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set whether a column will have the "Expand" flag of [Control].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_column_min_width">
|
<method name="set_column_min_width">
|
||||||
|
@ -43100,6 +43138,7 @@
|
||||||
<argument index="1" name="min_width" type="int">
|
<argument index="1" name="min_width" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the minimum width of a column.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_column_title">
|
<method name="set_column_title">
|
||||||
|
@ -43108,18 +43147,21 @@
|
||||||
<argument index="1" name="title" type="String">
|
<argument index="1" name="title" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the title of a column.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_column_titles_visible">
|
<method name="set_column_titles_visible">
|
||||||
<argument index="0" name="visible" type="bool">
|
<argument index="0" name="visible" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set whether the column titles visibility.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_columns">
|
<method name="set_columns">
|
||||||
<argument index="0" name="amount" type="int">
|
<argument index="0" name="amount" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the amount of columns.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_delayed_text_editor">
|
<method name="set_delayed_text_editor">
|
||||||
|
@ -43132,30 +43174,35 @@
|
||||||
<argument index="0" name="flags" type="int">
|
<argument index="0" name="flags" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the drop mode as an OR combination of flags. See [code]DROP_MODE_*[/code] constants.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_hide_folding">
|
<method name="set_hide_folding">
|
||||||
<argument index="0" name="hide" type="bool">
|
<argument index="0" name="hide" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set whether the folding arrow should be hidden.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_hide_root">
|
<method name="set_hide_root">
|
||||||
<argument index="0" name="enable" type="bool">
|
<argument index="0" name="enable" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set whether the root of the tree should be hidden.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_select_mode">
|
<method name="set_select_mode">
|
||||||
<argument index="0" name="mode" type="int">
|
<argument index="0" name="mode" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the selection mode. Use one of the [code]SELECT_*[/code] constants.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_single_select_cell_editing_only_when_already_selected">
|
<method name="set_single_select_cell_editing_only_when_already_selected">
|
||||||
<argument index="0" name="enable" type="bool">
|
<argument index="0" name="enable" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set whether the editing of a cell should only happen when it is already selected.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
@ -43168,32 +43215,38 @@
|
||||||
<argument index="2" name="id" type="int">
|
<argument index="2" name="id" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Emitted when a button on the tree was pressed (see [method TreeItem.add_button]).
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="cell_selected">
|
<signal name="cell_selected">
|
||||||
<description>
|
<description>
|
||||||
|
Emitted when a cell is selected.
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="custom_popup_edited">
|
<signal name="custom_popup_edited">
|
||||||
<argument index="0" name="arrow_clicked" type="bool">
|
<argument index="0" name="arrow_clicked" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Emitted when a cell with the [code]CELL_MODE_CUSTOM[/code] is clicked to be edited.
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="empty_tree_rmb_selected">
|
<signal name="empty_tree_rmb_selected">
|
||||||
<argument index="0" name="pos" type="Vector2">
|
<argument index="0" name="pos" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Emitted when the right mouse button is pressed if RMB selection is active and the tree is empty.
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="item_activated">
|
<signal name="item_activated">
|
||||||
<description>
|
<description>
|
||||||
|
Emitted when an item is activated (double-clicked).
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="item_collapsed">
|
<signal name="item_collapsed">
|
||||||
<argument index="0" name="item" type="Object">
|
<argument index="0" name="item" type="Object">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Emitted when an item is collapsed by a click on the folding arrow.
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="item_double_clicked">
|
<signal name="item_double_clicked">
|
||||||
|
@ -43202,16 +43255,19 @@
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="item_edited">
|
<signal name="item_edited">
|
||||||
<description>
|
<description>
|
||||||
|
Emitted when an item is editted.
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="item_rmb_selected">
|
<signal name="item_rmb_selected">
|
||||||
<argument index="0" name="pos" type="Vector2">
|
<argument index="0" name="pos" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Emitted when an item is selected with right mouse button.
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="item_selected">
|
<signal name="item_selected">
|
||||||
<description>
|
<description>
|
||||||
|
Emitted when an item is selected with right mouse button.
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="multi_selected">
|
<signal name="multi_selected">
|
||||||
|
@ -45238,136 +45294,160 @@ do_property].
|
||||||
</class>
|
</class>
|
||||||
<class name="VideoPlayer" inherits="Control" category="Core">
|
<class name="VideoPlayer" inherits="Control" category="Core">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
|
Control to play video files.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
|
This control has the ability to play video streams. The only format accepted is the OGV Theora, so any other format must be converted before using in a project.
|
||||||
</description>
|
</description>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="get_audio_track" qualifiers="const">
|
<method name="get_audio_track" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the selected audio track (for multitrack videos).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_buffering_msec" qualifiers="const">
|
<method name="get_buffering_msec" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the amount of miliseconds to store in buffer while playing.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_stream" qualifiers="const">
|
<method name="get_stream" qualifiers="const">
|
||||||
<return type="VideoStream">
|
<return type="VideoStream">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the video stream.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_stream_name" qualifiers="const">
|
<method name="get_stream_name" qualifiers="const">
|
||||||
<return type="String">
|
<return type="String">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the name of the video stream.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_stream_pos" qualifiers="const">
|
<method name="get_stream_pos" qualifiers="const">
|
||||||
<return type="float">
|
<return type="float">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the current position of the stream, in seconds.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_video_texture">
|
<method name="get_video_texture">
|
||||||
<return type="Texture">
|
<return type="Texture">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the current frame of the video as a [Texture].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_volume" qualifiers="const">
|
<method name="get_volume" qualifiers="const">
|
||||||
<return type="float">
|
<return type="float">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the volume of the audio track as a linear value.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_volume_db" qualifiers="const">
|
<method name="get_volume_db" qualifiers="const">
|
||||||
<return type="float">
|
<return type="float">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the volume of the audio track in decibels.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="has_autoplay" qualifiers="const">
|
<method name="has_autoplay" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get whether or not the video is set as autoplay.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="has_expand" qualifiers="const">
|
<method name="has_expand" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get whether or not the expand property is set.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_paused" qualifiers="const">
|
<method name="is_paused" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get whether or not the video is paused.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_playing" qualifiers="const">
|
<method name="is_playing" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get whether or not the video is playing.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="play">
|
<method name="play">
|
||||||
<description>
|
<description>
|
||||||
|
Start the video playback.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_audio_track">
|
<method name="set_audio_track">
|
||||||
<argument index="0" name="track" type="int">
|
<argument index="0" name="track" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the audio track (for multitrack videos).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_autoplay">
|
<method name="set_autoplay">
|
||||||
<argument index="0" name="enabled" type="bool">
|
<argument index="0" name="enabled" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set whether this node should start playing automatically.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_buffering_msec">
|
<method name="set_buffering_msec">
|
||||||
<argument index="0" name="msec" type="int">
|
<argument index="0" name="msec" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the amount of miliseconds to buffer during playback.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_expand">
|
<method name="set_expand">
|
||||||
<argument index="0" name="enable" type="bool">
|
<argument index="0" name="enable" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the expand property. If enabled, the video will grow or shrink to fit the player size, otherwise it will play at the stream resolution.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_paused">
|
<method name="set_paused">
|
||||||
<argument index="0" name="paused" type="bool">
|
<argument index="0" name="paused" type="bool">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set whether the video should pause the playback.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_stream">
|
<method name="set_stream">
|
||||||
<argument index="0" name="stream" type="VideoStream">
|
<argument index="0" name="stream" type="VideoStream">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the video stream for this player.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_volume">
|
<method name="set_volume">
|
||||||
<argument index="0" name="volume" type="float">
|
<argument index="0" name="volume" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the audio volume as a linear value.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_volume_db">
|
<method name="set_volume_db">
|
||||||
<argument index="0" name="db" type="float">
|
<argument index="0" name="db" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the audio volume in decibels.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="stop">
|
<method name="stop">
|
||||||
<description>
|
<description>
|
||||||
|
Stop the video playback.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
@ -49767,14 +49847,17 @@ do_property].
|
||||||
</class>
|
</class>
|
||||||
<class name="XMLParser" inherits="Reference" category="Core">
|
<class name="XMLParser" inherits="Reference" category="Core">
|
||||||
<brief_description>
|
<brief_description>
|
||||||
|
Low-level class for creating parsers for XML files.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
|
This class can serve as base to make custom XML parsers. Since XML is a very flexible standard, this interface is low level so it can be applied to any possible schema.
|
||||||
</description>
|
</description>
|
||||||
<methods>
|
<methods>
|
||||||
<method name="get_attribute_count" qualifiers="const">
|
<method name="get_attribute_count" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the amount of attributes in the current element.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_attribute_name" qualifiers="const">
|
<method name="get_attribute_name" qualifiers="const">
|
||||||
|
@ -49783,6 +49866,7 @@ do_property].
|
||||||
<argument index="0" name="idx" type="int">
|
<argument index="0" name="idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Get the name of the attribute specified by the index in [code]idx[/code] argument.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_attribute_value" qualifiers="const">
|
<method name="get_attribute_value" qualifiers="const">
|
||||||
|
@ -49791,12 +49875,14 @@ do_property].
|
||||||
<argument index="0" name="idx" type="int">
|
<argument index="0" name="idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Get the value of the attribute specified by the index in [code]idx[/code] argument.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_current_line" qualifiers="const">
|
<method name="get_current_line" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the current line in the parsed file (currently not implemented).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_named_attribute_value" qualifiers="const">
|
<method name="get_named_attribute_value" qualifiers="const">
|
||||||
|
@ -49805,6 +49891,7 @@ do_property].
|
||||||
<argument index="0" name="name" type="String">
|
<argument index="0" name="name" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Get the value of a certain attribute of the current element by name. This will raise an error if the element has no such attribute.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_named_attribute_value_safe" qualifiers="const">
|
<method name="get_named_attribute_value_safe" qualifiers="const">
|
||||||
|
@ -49813,30 +49900,35 @@ do_property].
|
||||||
<argument index="0" name="name" type="String">
|
<argument index="0" name="name" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Get the value of a certain attribute of the current element by name. This will return an empty [String] if the attribute is not found.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_node_data" qualifiers="const">
|
<method name="get_node_data" qualifiers="const">
|
||||||
<return type="String">
|
<return type="String">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the contents of a text node. This will raise an error in any other type of node.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_node_name" qualifiers="const">
|
<method name="get_node_name" qualifiers="const">
|
||||||
<return type="String">
|
<return type="String">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the name of the current element node. This will raise an error if the current node type is not [code]NODE_ELEMENT[/code] nor [code]NODE_ELEMENT_END[/code]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_node_offset" qualifiers="const">
|
<method name="get_node_offset" qualifiers="const">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the byte offset of the current node since the beginning of the file or buffer.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_node_type">
|
<method name="get_node_type">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Get the type of the current node. Compare with [code]NODE_*[/code] constants.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="has_attribute" qualifiers="const">
|
<method name="has_attribute" qualifiers="const">
|
||||||
|
@ -49845,12 +49937,14 @@ do_property].
|
||||||
<argument index="0" name="name" type="String">
|
<argument index="0" name="name" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Check whether or not the current element has a certain attribute.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_empty" qualifiers="const">
|
<method name="is_empty" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Check whether the current element is empty (this only works for completely empty tags, e.g. <element \>).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="open">
|
<method name="open">
|
||||||
|
@ -49859,6 +49953,7 @@ do_property].
|
||||||
<argument index="0" name="file" type="String">
|
<argument index="0" name="file" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Open a XML file for parsing. This returns an error code.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="open_buffer">
|
<method name="open_buffer">
|
||||||
|
@ -49867,12 +49962,14 @@ do_property].
|
||||||
<argument index="0" name="buffer" type="RawArray">
|
<argument index="0" name="buffer" type="RawArray">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Open a XML raw buffer for parsing. This returns an error code.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="read">
|
<method name="read">
|
||||||
<return type="int">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
Read the next node of the file. This returns an error code.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="seek">
|
<method name="seek">
|
||||||
|
@ -49881,27 +49978,36 @@ do_property].
|
||||||
<argument index="0" name="pos" type="int">
|
<argument index="0" name="pos" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Move the buffer cursor to a certain offset (since the beginning) and read the next node there. This returns an error code.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="skip_section">
|
<method name="skip_section">
|
||||||
<description>
|
<description>
|
||||||
|
Skips the current section. If the node contains other elements, they will be ignored and the cursor will go to the closing of the current element.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
<constants>
|
<constants>
|
||||||
<constant name="NODE_NONE" value="0">
|
<constant name="NODE_NONE" value="0">
|
||||||
|
There's no node (no file or buffer opened)
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="NODE_ELEMENT" value="1">
|
<constant name="NODE_ELEMENT" value="1">
|
||||||
|
Element (tag)
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="NODE_ELEMENT_END" value="2">
|
<constant name="NODE_ELEMENT_END" value="2">
|
||||||
|
End of element
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="NODE_TEXT" value="3">
|
<constant name="NODE_TEXT" value="3">
|
||||||
|
Text node
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="NODE_COMMENT" value="4">
|
<constant name="NODE_COMMENT" value="4">
|
||||||
|
Comment node
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="NODE_CDATA" value="5">
|
<constant name="NODE_CDATA" value="5">
|
||||||
|
CDATA content
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="NODE_UNKNOWN" value="6">
|
<constant name="NODE_UNKNOWN" value="6">
|
||||||
|
Unknown node
|
||||||
</constant>
|
</constant>
|
||||||
</constants>
|
</constants>
|
||||||
</class>
|
</class>
|
||||||
|
|
Loading…
Reference in a new issue