Base accessibility API.

This commit is contained in:
Pāvels Nadtočajevs
2025-03-21 16:42:23 +02:00
parent af2c713971
commit b106dfd4f9
124 changed files with 7631 additions and 181 deletions

View File

@@ -1215,6 +1215,69 @@
[b]Note:[/b] This function is used by during project export, to include TextServer database.
</description>
</method>
<method name="shaped_get_run_count" qualifiers="const">
<return type="int" />
<param index="0" name="shaped" type="RID" />
<description>
Returns the number of uniform text runs in the buffer.
</description>
</method>
<method name="shaped_get_run_direction" qualifiers="const">
<return type="int" enum="TextServer.Direction" />
<param index="0" name="shaped" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the direction of the [param index] text run (in visual order).
</description>
</method>
<method name="shaped_get_run_font_rid" qualifiers="const">
<return type="RID" />
<param index="0" name="shaped" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the font RID of the [param index] text run (in visual order).
</description>
</method>
<method name="shaped_get_run_font_size" qualifiers="const">
<return type="int" />
<param index="0" name="shaped" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the font size of the [param index] text run (in visual order).
</description>
</method>
<method name="shaped_get_run_language" qualifiers="const">
<return type="String" />
<param index="0" name="shaped" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the language of the [param index] text run (in visual order).
</description>
</method>
<method name="shaped_get_run_object" qualifiers="const">
<return type="Variant" />
<param index="0" name="shaped" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the embedded object of the [param index] text run (in visual order).
</description>
</method>
<method name="shaped_get_run_range" qualifiers="const">
<return type="Vector2i" />
<param index="0" name="shaped" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the source text range of the [param index] text run (in visual order).
</description>
</method>
<method name="shaped_get_run_text" qualifiers="const">
<return type="String" />
<param index="0" name="shaped" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the source text of the [param index] text run (in visual order).
</description>
</method>
<method name="shaped_get_span_count" qualifiers="const">
<return type="int" />
<param index="0" name="shaped" type="RID" />
@@ -1238,6 +1301,29 @@
Returns text span metadata.
</description>
</method>
<method name="shaped_get_span_object" qualifiers="const">
<return type="Variant" />
<param index="0" name="shaped" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the text span embedded object key.
</description>
</method>
<method name="shaped_get_span_text" qualifiers="const">
<return type="String" />
<param index="0" name="shaped" type="RID" />
<param index="1" name="index" type="int" />
<description>
Returns the text span source text.
</description>
</method>
<method name="shaped_get_text" qualifiers="const">
<return type="String" />
<param index="0" name="shaped" type="RID" />
<description>
Returns the text buffer source text, including object replacement characters.
</description>
</method>
<method name="shaped_set_span_update_font">
<return type="void" />
<param index="0" name="shaped" type="RID" />