feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -571,6 +571,13 @@
|
|||
Returns [code]true[/code], if font supports given language ([url=https://en.wikipedia.org/wiki/ISO_639-1]ISO 639[/url] code).
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_is_modulate_color_glyphs" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<description>
|
||||
Returns [code]true[/code], if color modulation is applied when drawing colored glyphs.
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_is_multichannel_signed_distance_field" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
|
|
@ -858,6 +865,14 @@
|
|||
Adds override for [method font_is_language_supported].
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_set_modulate_color_glyphs">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
<param index="1" name="force_autohinter" type="bool" />
|
||||
<description>
|
||||
If set to [code]true[/code], color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.
|
||||
</description>
|
||||
</method>
|
||||
<method name="font_set_msdf_pixel_range">
|
||||
<return type="void" />
|
||||
<param index="0" name="font_rid" type="RID" />
|
||||
|
|
@ -1200,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" />
|
||||
|
|
@ -1223,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" />
|
||||
|
|
@ -1844,7 +1945,7 @@
|
|||
</constant>
|
||||
<constant name="FONT_ANTIALIASING_LCD" value="2" enum="FontAntialiasing">
|
||||
Font glyphs are rasterized for LCD screens.
|
||||
LCD subpixel layout is determined by the value of [code]gui/theme/lcd_subpixel_layout[/code] project settings.
|
||||
LCD subpixel layout is determined by the value of the [member ProjectSettings.gui/theme/lcd_subpixel_layout] setting.
|
||||
LCD subpixel anti-aliasing mode is suitable only for rendering horizontal, unscaled text in 2D.
|
||||
</constant>
|
||||
<constant name="FONT_LCD_SUBPIXEL_LAYOUT_NONE" value="0" enum="FontLCDSubpixelLayout">
|
||||
|
|
@ -1938,12 +2039,20 @@
|
|||
<constant name="BREAK_ADAPTIVE" value="8" enum="LineBreakFlag" is_bitfield="true">
|
||||
Should be used only in conjunction with [constant BREAK_WORD_BOUND], break the line between any unconnected graphemes, if it's impossible to break it between the words.
|
||||
</constant>
|
||||
<constant name="BREAK_TRIM_EDGE_SPACES" value="16" enum="LineBreakFlag" is_bitfield="true">
|
||||
<constant name="BREAK_TRIM_EDGE_SPACES" value="16" enum="LineBreakFlag" is_bitfield="true" deprecated="Use [code]BREAK_TRIM_START_EDGE_SPACES | BREAK_TRIM_END_EDGE_SPACES[/code] instead.">
|
||||
Remove edge spaces from the broken line segments.
|
||||
</constant>
|
||||
<constant name="BREAK_TRIM_INDENT" value="32" enum="LineBreakFlag" is_bitfield="true">
|
||||
Subtract first line indentation width from all lines after the first one.
|
||||
</constant>
|
||||
<constant name="BREAK_TRIM_START_EDGE_SPACES" value="64" enum="LineBreakFlag" is_bitfield="true">
|
||||
Remove spaces and line break characters from the start of broken line segments.
|
||||
E.g, after line breaking, the second segment of the following text [code]test \n next[/code], is [code]next[/code] if the flag is set, and [code] next[/code] if it is not.
|
||||
</constant>
|
||||
<constant name="BREAK_TRIM_END_EDGE_SPACES" value="128" enum="LineBreakFlag" is_bitfield="true">
|
||||
Remove spaces and line break characters from the end of broken line segments.
|
||||
E.g, after line breaking, the first segment of the following text [code]test \n next[/code], is [code]test[/code] if the flag is set, and [code]test \n[/code] if it is not.
|
||||
</constant>
|
||||
<constant name="VC_CHARS_BEFORE_SHAPING" value="0" enum="VisibleCharactersBehavior">
|
||||
Trims text before the shaping. e.g, increasing [member Label.visible_characters] or [member RichTextLabel.visible_characters] value is visually identical to typing the text.
|
||||
[b]Note:[/b] In this mode, trimmed text is not processed at all. It is not accounted for in line breaking and size calculations.
|
||||
|
|
@ -1970,10 +2079,16 @@
|
|||
Trims the text per word.
|
||||
</constant>
|
||||
<constant name="OVERRUN_TRIM_ELLIPSIS" value="3" enum="OverrunBehavior">
|
||||
Trims the text per character and adds an ellipsis to indicate that parts are hidden.
|
||||
Trims the text per character and adds an ellipsis to indicate that parts are hidden if trimmed text is 6 characters or longer.
|
||||
</constant>
|
||||
<constant name="OVERRUN_TRIM_WORD_ELLIPSIS" value="4" enum="OverrunBehavior">
|
||||
Trims the text per word and adds an ellipsis to indicate that parts are hidden.
|
||||
Trims the text per word and adds an ellipsis to indicate that parts are hidden if trimmed text is 6 characters or longer.
|
||||
</constant>
|
||||
<constant name="OVERRUN_TRIM_ELLIPSIS_FORCE" value="5" enum="OverrunBehavior">
|
||||
Trims the text per character and adds an ellipsis to indicate that parts are hidden regardless of trimmed text length.
|
||||
</constant>
|
||||
<constant name="OVERRUN_TRIM_WORD_ELLIPSIS_FORCE" value="6" enum="OverrunBehavior">
|
||||
Trims the text per word and adds an ellipsis to indicate that parts are hidden regardless of trimmed text length.
|
||||
</constant>
|
||||
<constant name="OVERRUN_NO_TRIM" value="0" enum="TextOverrunFlag" is_bitfield="true">
|
||||
No trimming is performed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue