[doc] Use "param" instead of "code" to refer to parameters
This commit is contained in:
+22
-22
@@ -20,7 +20,7 @@
|
||||
<param index="0" name="direction" type="int" enum="TextServer.Direction" default="0" />
|
||||
<param index="1" name="orientation" type="int" enum="TextServer.Orientation" default="0" />
|
||||
<description>
|
||||
Creates new buffer for complex text layout, with the given [code]direction[/code] and [code]orientation[/code]. To free the resulting buffer, use [method free_rid] method.
|
||||
Creates new buffer for complex text layout, with the given [param direction] and [param orientation]. To free the resulting buffer, use [method free_rid] method.
|
||||
[b]Note:[/b] Direction is ignored if server does not support [constant FEATURE_BIDI_LAYOUT] feature (supported by [TextServerAdvanced]).
|
||||
[b]Note:[/b] Orientation is ignored if server does not support [constant FEATURE_VERTICAL_LAYOUT] feature (supported by [TextServerAdvanced]).
|
||||
</description>
|
||||
@@ -78,7 +78,7 @@
|
||||
<param index="4" name="index" type="int" />
|
||||
<param index="5" name="color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<description>
|
||||
Draws single glyph into a canvas item at the position, using [code]font_rid[/code] at the size [code]size[/code].
|
||||
Draws single glyph into a canvas item at the position, using [param font_rid] at the size [param size].
|
||||
[b]Note:[/b] Glyph index is specific to the font, use glyphs indices returned by [method shaped_text_get_glyphs] or [method font_get_glyph_index].
|
||||
[b]Note:[/b] If there are pending glyphs to render, calling this function might trigger the texture cache update.
|
||||
</description>
|
||||
@@ -93,7 +93,7 @@
|
||||
<param index="5" name="index" type="int" />
|
||||
<param index="6" name="color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<description>
|
||||
Draws single glyph outline of size [code]outline_size[/code] into a canvas item at the position, using [code]font_rid[/code] at the size [code]size[/code].
|
||||
Draws single glyph outline of size [param outline_size] into a canvas item at the position, using [param font_rid] at the size [param size].
|
||||
[b]Note:[/b] Glyph index is specific to the font, use glyphs indices returned by [method shaped_text_get_glyphs] or [method font_get_glyph_index].
|
||||
[b]Note:[/b] If there are pending glyphs to render, calling this function might trigger the texture cache update.
|
||||
</description>
|
||||
@@ -184,7 +184,7 @@
|
||||
<param index="2" name="char" type="int" />
|
||||
<param index="3" name="variation_selector" type="int" />
|
||||
<description>
|
||||
Returns the glyph index of a [code]char[/code], optionally modified by the [code]variation_selector[/code].
|
||||
Returns the glyph index of a [param char], optionally modified by the [param variation_selector].
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_get_glyph_list" qualifiers="const">
|
||||
@@ -280,7 +280,7 @@
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<param index="1" name="language" type="String" />
|
||||
<description>
|
||||
Returns [code]true[/code] if support override is enabled for the [code]language[/code].
|
||||
Returns [code]true[/code] if support override is enabled for the [param language].
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_get_language_support_overrides">
|
||||
@@ -338,7 +338,7 @@
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<param index="1" name="script" type="String" />
|
||||
<description>
|
||||
Returns [code]true[/code] if support override is enabled for the [code]script[/code].
|
||||
Returns [code]true[/code] if support override is enabled for the [param script].
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_get_script_support_overrides">
|
||||
@@ -444,7 +444,7 @@
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<param index="1" name="char" type="int" />
|
||||
<description>
|
||||
Returns [code]true[/code] if a Unicode [code]char[/code] is available in the font.
|
||||
Returns [code]true[/code] if a Unicode [param char] is available in the font.
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_is_antialiased" qualifiers="const">
|
||||
@@ -595,7 +595,7 @@
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<param index="1" name="strength" type="float" />
|
||||
<description>
|
||||
Sets font embolden strength. If [code]strength[/code] is not equal to zero, emboldens the font outlines. Negative values reduce the outline thickness.
|
||||
Sets font embolden strength. If [param strength] is not equal to zero, emboldens the font outlines. Negative values reduce the outline thickness.
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_set_face_index">
|
||||
@@ -881,7 +881,7 @@
|
||||
<param index="0" name="number" type="String" />
|
||||
<param index="1" name="language" type="String" default="""" />
|
||||
<description>
|
||||
Converts a number from the Western Arabic (0..9) to the numeral systems used in [code]language[/code].
|
||||
Converts a number from the Western Arabic (0..9) to the numeral systems used in [param language].
|
||||
</description>
|
||||
</method>
|
||||
<method name="free_rid">
|
||||
@@ -927,7 +927,7 @@
|
||||
<return type="bool" />
|
||||
<param index="0" name="rid" type="RID" />
|
||||
<description>
|
||||
Returns [code]true[/code] if [code]rid[/code] is valid resource owned by this text server.
|
||||
Returns [code]true[/code] if [param rid] is valid resource owned by this text server.
|
||||
</description>
|
||||
</method>
|
||||
<method name="has_feature" qualifiers="const">
|
||||
@@ -958,7 +958,7 @@
|
||||
<return type="bool" />
|
||||
<param index="0" name="string" type="String" />
|
||||
<description>
|
||||
Returns [code]true[/code] is [code]string[/code] is a valid identifier.
|
||||
Returns [code]true[/code] is [param string] is a valid identifier.
|
||||
If the text server supports the [constant FEATURE_UNICODE_IDENTIFIERS] feature, a valid identifier must:
|
||||
- Conform to normalization form C.
|
||||
- Begin with a Unicode character of class XID_Start or [code]"_"[/code].
|
||||
@@ -989,7 +989,7 @@
|
||||
<param index="0" name="number" type="String" />
|
||||
<param index="1" name="language" type="String" default="""" />
|
||||
<description>
|
||||
Converts a number from the numeral systems used in [code]language[/code] to Western Arabic (0..9).
|
||||
Converts [param number] from the numeral systems used in [param language] to Western Arabic (0..9).
|
||||
</description>
|
||||
</method>
|
||||
<method name="parse_structured_text" qualifiers="const">
|
||||
@@ -1005,7 +1005,7 @@
|
||||
<return type="String" />
|
||||
<param index="0" name="language" type="String" default="""" />
|
||||
<description>
|
||||
Returns percent sign used in the [code]language[/code].
|
||||
Returns percent sign used in the [param language].
|
||||
</description>
|
||||
</method>
|
||||
<method name="save_support_data" qualifiers="const">
|
||||
@@ -1050,7 +1050,7 @@
|
||||
<param index="3" name="inline_align" type="int" enum="InlineAlignment" default="5" />
|
||||
<param index="4" name="length" type="int" default="1" />
|
||||
<description>
|
||||
Adds inline object to the text buffer, [code]key[/code] must be unique. In the text, object is represented as [code]length[/code] object replacement characters.
|
||||
Adds inline object to the text buffer, [param key] must be unique. In the text, object is represented as [param length] object replacement characters.
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_add_string">
|
||||
@@ -1082,7 +1082,7 @@
|
||||
<param index="4" name="clip_r" type="float" default="-1" />
|
||||
<param index="5" name="color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<description>
|
||||
Draw shaped text into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout).
|
||||
Draw shaped text into a canvas item at a given position, with [param color]. [param pos] specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout).
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_draw_outline" qualifiers="const">
|
||||
@@ -1095,7 +1095,7 @@
|
||||
<param index="5" name="outline_size" type="int" default="1" />
|
||||
<param index="6" name="color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<description>
|
||||
Draw the outline of the shaped text into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout).
|
||||
Draw the outline of the shaped text into a canvas item at a given position, with [param color]. [param pos] specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout).
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_fit_to_width">
|
||||
@@ -1120,7 +1120,7 @@
|
||||
<param index="0" name="shaped" type="RID" />
|
||||
<param index="1" name="position" type="int" />
|
||||
<description>
|
||||
Returns shapes of the carets corresponding to the character offset [code]position[/code] in the text. Returned caret shape is 1 pixel wide rectangle.
|
||||
Returns shapes of the carets corresponding to the character offset [param position] in the text. Returned caret shape is 1 pixel wide rectangle.
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_get_custom_punctuation" qualifiers="const">
|
||||
@@ -1333,7 +1333,7 @@
|
||||
<param index="0" name="shaped" type="RID" />
|
||||
<param index="1" name="grapheme_flags" type="int" enum="TextServer.GraphemeFlag" default="264" />
|
||||
<description>
|
||||
Breaks text into words and returns array of character ranges. Use [code]grapheme_flags[/code] to set what characters are used for breaking (see [enum GraphemeFlag]).
|
||||
Breaks text into words and returns array of character ranges. Use [param grapheme_flags] to set what characters are used for breaking (see [enum GraphemeFlag]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_hit_test_grapheme" qualifiers="const">
|
||||
@@ -1364,7 +1364,7 @@
|
||||
<param index="0" name="shaped" type="RID" />
|
||||
<param index="1" name="pos" type="int" />
|
||||
<description>
|
||||
Returns composite character end position closest to the [code]pos[/code].
|
||||
Returns composite character end position closest to the [param pos].
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_overrun_trim_to_width">
|
||||
@@ -1381,7 +1381,7 @@
|
||||
<param index="0" name="shaped" type="RID" />
|
||||
<param index="1" name="pos" type="int" />
|
||||
<description>
|
||||
Returns composite character start position closest to the [code]pos[/code].
|
||||
Returns composite character start position closest to the [param pos].
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_resize_object">
|
||||
@@ -1475,7 +1475,7 @@
|
||||
<param index="1" name="start" type="int" />
|
||||
<param index="2" name="length" type="int" />
|
||||
<description>
|
||||
Returns text buffer for the substring of the text in the [code]shaped[/code] text buffer (including inline objects).
|
||||
Returns text buffer for the substring of the text in the [param shaped] text buffer (including inline objects).
|
||||
</description>
|
||||
</method>
|
||||
<method name="shaped_text_tab_align">
|
||||
@@ -1490,7 +1490,7 @@
|
||||
<return type="bool" />
|
||||
<param index="0" name="string" type="String" />
|
||||
<description>
|
||||
Returns [code]true[/code] if [code]string[/code] is likely to be an attempt at confusing the reader.
|
||||
Returns [code]true[/code] if [param string] is likely to be an attempt at confusing the reader.
|
||||
[b]Note:[/b] Always returns [code]false[/code] if the server does not support the [constant FEATURE_UNICODE_SECURITY] feature.
|
||||
</description>
|
||||
</method>
|
||||
|
||||
Reference in New Issue
Block a user