Index · Object → RefCounted → TextServer → TextServerExtension

TextServerExtension

Base class for custom TextServer implementations (plugins).

Inherited by (3): TextServerAdvancedTextServerDummyTextServerFallback
Class Description

External TextServer implementations should inherit from this class.

Methods

func _cleanup() -> void

This method is called before text server is unregistered.

func _create_font() -> RID

Creates a new, empty font cache entry resource.

func _create_font_linked_variation(font_rid: RID) -> RID

Optional, implement if font supports extra spacing or baseline offset.

Creates a new variation existing font which is reusing the same glyph cache and font data.

func _create_shaped_text(direction: TextServer.Direction, orientation: TextServer.Orientation) -> RID

Creates a new buffer for complex text layout, with the given direction and orientation.

func _draw_hex_code_box(canvas: RID, size: int, pos: Vector2, index: int, color: Color) -> void

Draws box displaying character hexadecimal code.

func _font_clear_glyphs(font_rid: RID, size: Vector2i) -> void

Removes all rendered glyph information from the cache entry.

func _font_clear_kerning_map(font_rid: RID, size: int) -> void

Removes all kerning overrides.

func _font_clear_size_cache(font_rid: RID) -> void

Removes all font sizes from the cache entry.

func _font_clear_system_fallback_cache() -> void

Frees all automatically loaded system fonts.

func _font_clear_textures(font_rid: RID, size: Vector2i) -> void

Removes all textures from font cache entry.

func _font_draw_glyph(font_rid: RID, canvas: RID, size: int, pos: Vector2, index: int, color: Color, oversampling: float) -> void

Draws single glyph into a canvas item at the position, using font_rid at the size size. If oversampling is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.

func _font_draw_glyph_outline(font_rid: RID, canvas: RID, size: int, outline_size: int, pos: Vector2, index: int, color: Color, oversampling: float) -> void

Draws single glyph outline of size outline_size into a canvas item at the position, using font_rid at the size size. If oversampling is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.

func _font_get_antialiasing(font_rid: RID) -> TextServer.FontAntialiasing

Returns font anti-aliasing mode.

func _font_get_ascent(font_rid: RID, size: int) -> float

Returns the font ascent (number of pixels above the baseline).

func _font_get_baseline_offset(font_rid: RID) -> float

Returns extra baseline offset (as a fraction of font height).

func _font_get_char_from_glyph_index(font_rid: RID, size: int, glyph_index: int) -> int

Returns character code associated with glyph_index, or 0 if glyph_index is invalid.

func _font_get_descent(font_rid: RID, size: int) -> float

Returns the font descent (number of pixels below the baseline).

func _font_get_disable_embedded_bitmaps(font_rid: RID) -> bool

Returns whether the font's embedded bitmap loading is disabled.

func _font_get_embolden(font_rid: RID) -> float

Returns font embolden strength.

func _font_get_face_count(font_rid: RID) -> int

Returns number of faces in the TrueType / OpenType collection.

func _font_get_face_index(font_rid: RID) -> int

Returns an active face index in the TrueType / OpenType collection.

func _font_get_fixed_size(font_rid: RID) -> int

Returns bitmap font fixed size.

func _font_get_fixed_size_scale_mode(font_rid: RID) -> TextServer.FixedSizeScaleMode

Returns bitmap font scaling mode.

func _font_get_generate_mipmaps(font_rid: RID) -> bool

Returns true if font texture mipmap generation is enabled.

func _font_get_global_oversampling() -> float

Returns the font oversampling factor, shared by all fonts in the TextServer.

func _font_get_glyph_advance(font_rid: RID, size: int, glyph: int) -> Vector2

Returns glyph advance (offset of the next glyph).

func _font_get_glyph_contours(font_rid: RID, size: int, index: int) -> Dictionary

Returns outline contours of the glyph.

func _font_get_glyph_index(font_rid: RID, size: int, char: int, variation_selector: int) -> int

Returns the glyph index of a char, optionally modified by the variation_selector.

func _font_get_glyph_list(font_rid: RID, size: Vector2i) -> PackedInt32Array

Returns list of rendered glyphs in the cache entry.

func _font_get_glyph_offset(font_rid: RID, size: Vector2i, glyph: int) -> Vector2

Returns glyph offset from the baseline.

func _font_get_glyph_size(font_rid: RID, size: Vector2i, glyph: int) -> Vector2

Returns size of the glyph.

func _font_get_glyph_texture_idx(font_rid: RID, size: Vector2i, glyph: int) -> int

Returns index of the cache texture containing the glyph.

func _font_get_glyph_texture_rid(font_rid: RID, size: Vector2i, glyph: int) -> RID

Returns resource ID of the cache texture containing the glyph.

func _font_get_glyph_texture_size(font_rid: RID, size: Vector2i, glyph: int) -> Vector2

Returns size of the cache texture containing the glyph.

func _font_get_glyph_uv_rect(font_rid: RID, size: Vector2i, glyph: int) -> Rect2

Returns rectangle in the cache texture containing the glyph.

func _font_get_hinting(font_rid: RID) -> TextServer.Hinting

Returns the font hinting mode. Used by dynamic fonts only.

func _font_get_keep_rounding_remainders(font_rid: RID) -> bool

Returns glyph position rounding behavior. If set to true, when aligning glyphs to the pixel boundaries rounding remainders are accumulated to ensure more uniform glyph distribution. This setting has no effect if subpixel positioning is enabled.

func _font_get_kerning(font_rid: RID, size: int, glyph_pair: Vector2i) -> Vector2

Returns kerning for the pair of glyphs.

func _font_get_kerning_list(font_rid: RID, size: int) -> Vector2i[]

Returns list of the kerning overrides.

func _font_get_language_support_override(font_rid: RID, language: String) -> bool

Returns true if support override is enabled for the language.

func _font_get_language_support_overrides(font_rid: RID) -> PackedStringArray

Returns list of language support overrides.

func _font_get_msdf_pixel_range(font_rid: RID) -> int

Returns the width of the range around the shape between the minimum and maximum representable signed distance.

func _font_get_msdf_size(font_rid: RID) -> int

Returns source font size used to generate MSDF textures.

func _font_get_name(font_rid: RID) -> String

Returns font family name.

func _font_get_opentype_feature_overrides(font_rid: RID) -> Dictionary

Returns font OpenType feature set override.

func _font_get_ot_name_strings(font_rid: RID) -> Dictionary

Returns Dictionary with OpenType font name strings (localized font names, version, description, license information, sample text, etc.).

func _font_get_oversampling(font_rid: RID) -> float

Returns oversampling factor override. If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See Viewport.oversampling. This value doesn't override the [code skip-lint]oversampling[/code] parameter of [code skip-lint]draw_*[/code] methods. Used by dynamic fonts only.

func _font_get_palette_colors(font_rid: RID, index: int) -> PackedColorArray

Returns the array in the predefined color palette at index. Palette contains all colors used to render font glyphs. Each palette has the same number of colors. Colors can be overridden using _font_set_palette_custom_colors().

func _font_get_palette_count(font_rid: RID) -> int

Returns the number of predefined color palettes. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.

func _font_get_palette_custom_colors(font_rid: RID) -> PackedColorArray

Returns array of custom colors to override predefined palette.

func _font_get_palette_name(font_rid: RID, index: int) -> String

Returns the name of the predefined color palette at index. Palette contains all colors used to render font glyphs. Each palette has the same number of colors.

func _font_get_scale(font_rid: RID, size: int) -> float

Returns scaling factor of the color bitmap font.

func _font_get_script_support_override(font_rid: RID, script: String) -> bool

Returns true if support override is enabled for the script.

func _font_get_script_support_overrides(font_rid: RID) -> PackedStringArray

Returns list of script support overrides.

func _font_get_size_cache_info(font_rid: RID) -> Dictionary[]

Returns font cache information, each entry contains the following fields: Vector2i size_px - font size in pixels, float viewport_oversampling - viewport oversampling factor, int glyphs - number of rendered glyphs, int textures - number of used textures, int textures_size - size of texture data in bytes.

func _font_get_size_cache_list(font_rid: RID) -> Vector2i[]

Returns list of the font sizes in the cache. Each size is Vector2i with font size and outline size.

func _font_get_spacing(font_rid: RID, spacing: TextServer.SpacingType) -> int

Returns the spacing for spacing in pixels (not relative to the font size).

func _font_get_stretch(font_rid: RID) -> int

Returns font stretch amount, compared to a normal width. A percentage value between 50% and 200%.

func _font_get_style(font_rid: RID) -> TextServer.FontStyle

Returns font style flags.

func _font_get_style_name(font_rid: RID) -> String

Returns font style name.

func _font_get_subpixel_positioning(font_rid: RID) -> TextServer.SubpixelPositioning

Returns font subpixel glyph positioning mode.

func _font_get_supported_chars(font_rid: RID) -> String

Returns a string containing all the characters available in the font.

func _font_get_supported_glyphs(font_rid: RID) -> PackedInt32Array

Returns an array containing all glyph indices in the font.

func _font_get_texture_count(font_rid: RID, size: Vector2i) -> int

Returns number of textures used by font cache entry.

func _font_get_texture_image(font_rid: RID, size: Vector2i, texture_index: int) -> Image

Returns font cache texture image data.

func _font_get_texture_offsets(font_rid: RID, size: Vector2i, texture_index: int) -> PackedInt32Array

Returns array containing glyph packing data.

func _font_get_transform(font_rid: RID) -> Transform2D

Returns 2D transform applied to the font outlines.

func _font_get_underline_position(font_rid: RID, size: int) -> float

Returns pixel offset of the underline below the baseline.

func _font_get_underline_thickness(font_rid: RID, size: int) -> float

Returns thickness of the underline in pixels.

func _font_get_used_palette(font_rid: RID) -> int

Returns used palette index.

func _font_get_variation_coordinates(font_rid: RID) -> Dictionary

Returns variation coordinates for the specified font cache entry.

func _font_get_weight(font_rid: RID) -> int

Returns weight (boldness) of the font. A value in the 100...999 range, normal font weight is 400, bold font weight is 700.

func _font_has_char(font_rid: RID, char: int) -> bool

Returns true if a Unicode char is available in the font.

func _font_is_allow_system_fallback(font_rid: RID) -> bool

Returns true if system fonts can be automatically used as fallbacks.

func _font_is_force_autohinter(font_rid: RID) -> bool

Returns true if auto-hinting is supported and preferred over font built-in hinting.

func _font_is_language_supported(font_rid: RID, language: String) -> bool

Returns true if the font supports the given language (as a ISO 639 code).

func _font_is_modulate_color_glyphs(font_rid: RID) -> bool

Returns true if color modulation is applied when drawing the font's colored glyphs.

func _font_is_multichannel_signed_distance_field(font_rid: RID) -> bool

Returns true if glyphs of all sizes are rendered using single multichannel signed distance field generated from the dynamic font vector data.

func _font_is_script_supported(font_rid: RID, script: String) -> bool

Returns true if the font supports the given script (as a ISO 15924 code).

func _font_remove_glyph(font_rid: RID, size: Vector2i, glyph: int) -> void

Removes specified rendered glyph information from the cache entry.

func _font_remove_kerning(font_rid: RID, size: int, glyph_pair: Vector2i) -> void

Removes kerning override for the pair of glyphs.

func _font_remove_language_support_override(font_rid: RID, language: String) -> void

Remove language support override.

func _font_remove_script_support_override(font_rid: RID, script: String) -> void

Removes script support override.

func _font_remove_size_cache(font_rid: RID, size: Vector2i) -> void

Removes specified font size from the cache entry.

func _font_remove_texture(font_rid: RID, size: Vector2i, texture_index: int) -> void

Removes specified texture from the cache entry.

func _font_render_glyph(font_rid: RID, size: Vector2i, index: int) -> void

Renders specified glyph to the font cache texture.

func _font_render_range(font_rid: RID, size: Vector2i, start: int, end: int) -> void

Renders the range of characters to the font cache texture.

func _font_set_allow_system_fallback(font_rid: RID, allow_system_fallback: bool) -> void

If set to true, system fonts can be automatically used as fallbacks.

func _font_set_antialiasing(font_rid: RID, antialiasing: TextServer.FontAntialiasing) -> void

Sets font anti-aliasing mode.

func _font_set_ascent(font_rid: RID, size: int, ascent: float) -> void

Sets the font ascent (number of pixels above the baseline).

func _font_set_baseline_offset(font_rid: RID, baseline_offset: float) -> void

Sets extra baseline offset (as a fraction of font height).

func _font_set_data(font_rid: RID, data: PackedByteArray) -> void

Sets font source data, e.g contents of the dynamic font source file.

func _font_set_data_ptr(font_rid: RID, data_ptr: const uint8_t*, data_size: int) -> void

Sets pointer to the font source data, e.g contents of the dynamic font source file.

func _font_set_descent(font_rid: RID, size: int, descent: float) -> void

Sets the font descent (number of pixels below the baseline).

func _font_set_disable_embedded_bitmaps(font_rid: RID, disable_embedded_bitmaps: bool) -> void

If set to true, embedded font bitmap loading is disabled.

func _font_set_embolden(font_rid: RID, strength: float) -> void

Sets font embolden strength. If strength is not equal to zero, emboldens the font outlines. Negative values reduce the outline thickness.

func _font_set_face_index(font_rid: RID, face_index: int) -> void

Sets an active face index in the TrueType / OpenType collection.

func _font_set_fixed_size(font_rid: RID, fixed_size: int) -> void

Sets bitmap font fixed size. If set to value greater than zero, same cache entry will be used for all font sizes.

func _font_set_fixed_size_scale_mode(font_rid: RID, fixed_size_scale_mode: TextServer.FixedSizeScaleMode) -> void

Sets bitmap font scaling mode. This property is used only if fixed_size is greater than zero.

func _font_set_force_autohinter(font_rid: RID, force_autohinter: bool) -> void

If set to true auto-hinting is preferred over font built-in hinting.

func _font_set_generate_mipmaps(font_rid: RID, generate_mipmaps: bool) -> void

If set to true font texture mipmap generation is enabled.

func _font_set_global_oversampling(oversampling: float) -> void

Sets oversampling factor, shared by all font in the TextServer.

func _font_set_glyph_advance(font_rid: RID, size: int, glyph: int, advance: Vector2) -> void

Sets glyph advance (offset of the next glyph).

func _font_set_glyph_offset(font_rid: RID, size: Vector2i, glyph: int, offset: Vector2) -> void

Sets glyph offset from the baseline.

func _font_set_glyph_size(font_rid: RID, size: Vector2i, glyph: int, gl_size: Vector2) -> void

Sets size of the glyph.

func _font_set_glyph_texture_idx(font_rid: RID, size: Vector2i, glyph: int, texture_idx: int) -> void

Sets index of the cache texture containing the glyph.

func _font_set_glyph_uv_rect(font_rid: RID, size: Vector2i, glyph: int, uv_rect: Rect2) -> void

Sets rectangle in the cache texture containing the glyph.

func _font_set_hinting(font_rid: RID, hinting: TextServer.Hinting) -> void

Sets font hinting mode. Used by dynamic fonts only.

func _font_set_keep_rounding_remainders(font_rid: RID, keep_rounding_remainders: bool) -> void

Sets glyph position rounding behavior. If set to true, when aligning glyphs to the pixel boundaries rounding remainders are accumulated to ensure more uniform glyph distribution. This setting has no effect if subpixel positioning is enabled.

func _font_set_kerning(font_rid: RID, size: int, glyph_pair: Vector2i, kerning: Vector2) -> void

Sets kerning for the pair of glyphs.

func _font_set_language_support_override(font_rid: RID, language: String, supported: bool) -> void

Adds override for _font_is_language_supported().

func _font_set_modulate_color_glyphs(font_rid: RID, modulate: bool) -> void

If set to true, color modulation is applied when drawing colored glyphs, otherwise it's applied to the monochrome glyphs only.

func _font_set_msdf_pixel_range(font_rid: RID, msdf_pixel_range: int) -> void

Sets the width of the range around the shape between the minimum and maximum representable signed distance.

func _font_set_msdf_size(font_rid: RID, msdf_size: int) -> void

Sets source font size used to generate MSDF textures.

func _font_set_multichannel_signed_distance_field(font_rid: RID, msdf: bool) -> void

If set to true, glyphs of all sizes are rendered using single multichannel signed distance field generated from the dynamic font vector data. MSDF rendering allows displaying the font at any scaling factor without blurriness, and without incurring a CPU cost when the font size changes (since the font no longer needs to be rasterized on the CPU). As a downside, font hinting is not available with MSDF. The lack of font hinting may result in less crisp and less readable fonts at small sizes.

func _font_set_name(font_rid: RID, name: String) -> void

Sets the font family name.

func _font_set_opentype_feature_overrides(font_rid: RID, overrides: Dictionary) -> void

Sets font OpenType feature set override.

func _font_set_oversampling(font_rid: RID, oversampling: float) -> void

If set to a positive value, overrides the oversampling factor of the viewport this font is used in. See Viewport.oversampling. This value doesn't override the [code skip-lint]oversampling[/code] parameter of [code skip-lint]draw_*[/code] methods. Used by dynamic fonts only.

func _font_set_palette_custom_colors(font_rid: RID, colors: PackedColorArray) -> void

Sets array of custom colors to override predefined palette. Set to empty array to reset overrides. Use Color(0, 0, 0, 0), to keep predefined palette color at specific position.

func _font_set_scale(font_rid: RID, size: int, scale: float) -> void

Sets scaling factor of the color bitmap font.

func _font_set_script_support_override(font_rid: RID, script: String, supported: bool) -> void

Adds override for _font_is_script_supported().

func _font_set_spacing(font_rid: RID, spacing: TextServer.SpacingType, value: int) -> void

Sets the spacing for spacing to value in pixels (not relative to the font size).

func _font_set_stretch(font_rid: RID, stretch: int) -> void

Sets font stretch amount, compared to a normal width. A percentage value between 50% and 200%.

func _font_set_style(font_rid: RID, style: TextServer.FontStyle) -> void

Sets the font style flags.

func _font_set_style_name(font_rid: RID, name_style: String) -> void

Sets the font style name.

func _font_set_subpixel_positioning(font_rid: RID, subpixel_positioning: TextServer.SubpixelPositioning) -> void

Sets font subpixel glyph positioning mode.

func _font_set_texture_image(font_rid: RID, size: Vector2i, texture_index: int, image: Image) -> void

Sets font cache texture image data.

func _font_set_texture_offsets(font_rid: RID, size: Vector2i, texture_index: int, offset: PackedInt32Array) -> void

Sets array containing glyph packing data.

func _font_set_transform(font_rid: RID, transform: Transform2D) -> void

Sets 2D transform, applied to the font outlines, can be used for slanting, flipping, and rotating glyphs.

func _font_set_underline_position(font_rid: RID, size: int, underline_position: float) -> void

Sets pixel offset of the underline below the baseline.

func _font_set_underline_thickness(font_rid: RID, size: int, underline_thickness: float) -> void

Sets thickness of the underline in pixels.

func _font_set_used_palette(font_rid: RID, index: int) -> void

Sets used palette index.

func _font_set_variation_coordinates(font_rid: RID, variation_coordinates: Dictionary) -> void

Sets variation coordinates for the specified font cache entry.

func _font_set_weight(font_rid: RID, weight: int) -> void

Sets weight (boldness) of the font. A value in the 100...999 range, normal font weight is 400, bold font weight is 700.

func _font_supported_feature_list(font_rid: RID) -> Dictionary

Returns the dictionary of the supported OpenType features.

func _font_supported_variation_list(font_rid: RID) -> Dictionary

Returns the dictionary of the supported OpenType variation coordinates.

func _format_number(number: String, language: String) -> String

Converts a number from Western Arabic (0..9) to the numeral system used in the given language.

If language is an empty string, the active locale will be used.

func _free_rid(rid: RID) -> void

Frees an object created by this TextServer.

func _get_features() -> int

Returns text server features, see TextServer.Feature.

func _get_hex_code_box_size(size: int, index: int) -> Vector2

Returns size of the replacement character (box with character hexadecimal code that is drawn in place of invalid characters).

func _get_name() -> String

Returns the name of the server interface.

func _get_support_data() -> PackedByteArray

Returns default TextServer database (e.g. ICU break iterators and dictionaries).

func _get_support_data_filename() -> String

Returns default TextServer database (e.g. ICU break iterators and dictionaries) filename.

func _get_support_data_info() -> String

Returns TextServer database (e.g. ICU break iterators and dictionaries) description.

func _has(rid: RID) -> bool

Returns true if rid is valid resource owned by this text server.

func _has_feature(feature: TextServer.Feature) -> bool

Returns true if the server supports a feature.

func _is_confusable(string: String, dict: PackedStringArray) -> int

Returns index of the first string in dict which is visually confusable with the string, or -1 if none is found.

func _is_locale_right_to_left(locale: String) -> bool

Returns true if locale is right-to-left.

func _is_locale_using_support_data(locale: String) -> bool

Returns true if the locale requires text server support data for line/word breaking.

func _is_valid_identifier(string: String) -> bool

Returns true if string is a valid identifier.

func _is_valid_letter(unicode: int) -> bool
func _load_support_data(filename: String) -> bool

Loads optional TextServer database (e.g. ICU break iterators and dictionaries).

func _name_to_tag(name: String) -> int

Converts the given readable name of a feature, variation, script, or language to an OpenType tag.

func _parse_number(number: String, language: String) -> String

Converts number from the numeral system used in the given language to Western Arabic (0..9).

If language is an empty string, the active locale will be used.

func _parse_structured_text(parser_type: TextServer.StructuredTextParser, args: Array, text: String) -> Vector3i[]

Default implementation of the BiDi algorithm override function.

func _percent_sign(language: String) -> String

Returns percent sign used in the given language.

func _reference_oversampling_level(oversampling: float) -> void

Increases the reference count of the specified oversampling level. This method is called by Viewport, and should not be used directly.

func _save_support_data(filename: String) -> bool

Saves optional TextServer database (e.g. ICU break iterators and dictionaries) to the file.

func _shaped_get_run_count(shaped: RID) -> int

Returns the number of uniform text runs in the buffer.

func _shaped_get_run_direction(shaped: RID, index: int) -> TextServer.Direction

Returns the direction of the index text run (in visual order).

func _shaped_get_run_font_rid(shaped: RID, index: int) -> RID

Returns the font RID of the index text run (in visual order).

func _shaped_get_run_font_size(shaped: RID, index: int) -> int

Returns the font size of the index text run (in visual order).

func _shaped_get_run_glyph_range(shaped: RID, index: int) -> Vector2i

Returns the glyph range of the index text run (in visual order).

func _shaped_get_run_language(shaped: RID, index: int) -> String

Returns the language of the index text run (in visual order).

func _shaped_get_run_object(shaped: RID, index: int) -> Variant

Returns the embedded object of the index text run (in visual order).

func _shaped_get_run_range(shaped: RID, index: int) -> Vector2i

Returns the source text range of the index text run (in visual order).

func _shaped_get_run_text(shaped: RID, index: int) -> String

Returns the source text of the index text run (in visual order).

func _shaped_get_span_count(shaped: RID) -> int

Returns number of text spans added using _shaped_text_add_string() or _shaped_text_add_object().

func _shaped_get_span_embedded_object(shaped: RID, index: int) -> Variant

Returns text embedded object key.

func _shaped_get_span_meta(shaped: RID, index: int) -> Variant

Returns text span metadata.

func _shaped_get_span_object(shaped: RID, index: int) -> Variant

Returns the text span embedded object key.

func _shaped_get_span_text(shaped: RID, index: int) -> String

Returns the text span source text.

func _shaped_get_text(shaped: RID) -> String

Returns the text buffer source text, including object replacement characters.

func _shaped_set_span_update_font(shaped: RID, index: int, fonts: RID[], size: int, opentype_features: Dictionary) -> void

Changes text span font, font size, and OpenType features, without changing the text.

func _shaped_text_add_object(shaped: RID, key: Variant, size: Vector2, inline_align: InlineAlignment, length: int, baseline: float) -> bool

Adds inline object to the text buffer, key must be unique. In the text, object is represented as length object replacement characters.

func _shaped_text_add_string(shaped: RID, text: String, fonts: RID[], size: int, opentype_features: Dictionary, language: String, meta: Variant) -> bool

Adds text span and font to draw it to the text buffer.

func _shaped_text_clear(shaped: RID) -> void

Clears text buffer (removes text and inline objects).

func _shaped_text_closest_character_pos(shaped: RID, pos: int) -> int

Returns composite character position closest to the pos.

func _shaped_text_draw(shaped: RID, canvas: RID, pos: Vector2, clip_l: float, clip_r: float, color: Color, oversampling: float) -> void

Draw shaped text into a canvas item at a given position, with color. pos specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout). If oversampling is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.

func _shaped_text_draw_outline(shaped: RID, canvas: RID, pos: Vector2, clip_l: float, clip_r: float, outline_size: int, color: Color, oversampling: float) -> void

Draw the outline of the shaped text into a canvas item at a given position, with color. pos specifies the leftmost point of the baseline (for horizontal layout) or topmost point of the baseline (for vertical layout). If oversampling is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.

func _shaped_text_duplicate(shaped: RID) -> RID

Duplicates shaped text buffer.

func _shaped_text_fit_to_width(shaped: RID, width: float, justification_flags: TextServer.JustificationFlag) -> float

Adjusts text width to fit to specified width, returns new text width.

func _shaped_text_get_ascent(shaped: RID) -> float

Returns the text ascent (number of pixels above the baseline for horizontal layout or to the left of baseline for vertical).

func _shaped_text_get_carets(shaped: RID, position: int, r_caret: CaretInfo*) -> void

Returns shapes of the carets corresponding to the character offset position in the text. Returned caret shape is 1 pixel wide rectangle.

func _shaped_text_get_character_breaks(shaped: RID) -> PackedInt32Array

Returns array of the composite character boundaries.

func _shaped_text_get_custom_ellipsis(shaped: RID) -> int

Returns ellipsis character used for text clipping.

func _shaped_text_get_custom_punctuation(shaped: RID) -> String

Returns custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.

func _shaped_text_get_descent(shaped: RID) -> float

Returns the text descent (number of pixels below the baseline for horizontal layout or to the right of baseline for vertical).

func _shaped_text_get_direction(shaped: RID) -> TextServer.Direction

Returns direction of the text.

func _shaped_text_get_dominant_direction_in_range(shaped: RID, start: int, end: int) -> int

Returns dominant direction of in the range of text.

func _shaped_text_get_ellipsis_glyph_count(shaped: RID) -> int

Returns number of glyphs in the ellipsis.

func _shaped_text_get_ellipsis_glyphs(shaped: RID) -> const Glyph*

Returns array of the glyphs in the ellipsis.

func _shaped_text_get_ellipsis_pos(shaped: RID) -> int

Returns position of the ellipsis.

func _shaped_text_get_glyph_count(shaped: RID) -> int

Returns number of glyphs in the buffer.

func _shaped_text_get_glyphs(shaped: RID) -> const Glyph*

Returns an array of glyphs in the visual order.

func _shaped_text_get_grapheme_bounds(shaped: RID, pos: int) -> Vector2

Returns composite character's bounds as offsets from the start of the line.

func _shaped_text_get_inferred_direction(shaped: RID) -> TextServer.Direction

Returns direction of the text, inferred by the BiDi algorithm.

func _shaped_text_get_line_breaks(shaped: RID, width: float, start: int, break_flags: TextServer.LineBreakFlag) -> PackedInt32Array

Breaks text to the lines and returns character ranges for each line.

func _shaped_text_get_line_breaks_adv(shaped: RID, width: PackedFloat32Array, start: int, once: bool, break_flags: TextServer.LineBreakFlag) -> PackedInt32Array

Breaks text to the lines and columns. Returns character ranges for each segment.

func _shaped_text_get_object_glyph(shaped: RID, key: Variant) -> int

Returns the glyph index of the inline object.

func _shaped_text_get_object_range(shaped: RID, key: Variant) -> Vector2i

Returns the character range of the inline object.

func _shaped_text_get_object_rect(shaped: RID, key: Variant) -> Rect2

Returns bounding rectangle of the inline object.

func _shaped_text_get_objects(shaped: RID) -> Array

Returns array of inline objects.

func _shaped_text_get_orientation(shaped: RID) -> TextServer.Orientation

Returns text orientation.

func _shaped_text_get_parent(shaped: RID) -> RID

Returns the parent buffer from which the substring originates.

func _shaped_text_get_preserve_control(shaped: RID) -> bool

Returns true if text buffer is configured to display control characters.

func _shaped_text_get_preserve_invalid(shaped: RID) -> bool

Returns true if text buffer is configured to display hexadecimal codes in place of invalid characters.

func _shaped_text_get_range(shaped: RID) -> Vector2i

Returns substring buffer character range in the parent buffer.

func _shaped_text_get_selection(shaped: RID, start: int, end: int) -> PackedVector2Array

Returns selection rectangles for the specified character range.

func _shaped_text_get_size(shaped: RID) -> Vector2

Returns size of the text.

func _shaped_text_get_spacing(shaped: RID, spacing: TextServer.SpacingType) -> int

Returns extra spacing added between glyphs or lines in pixels.

func _shaped_text_get_trim_pos(shaped: RID) -> int

Returns the position of the overrun trim.

func _shaped_text_get_underline_position(shaped: RID) -> float

Returns pixel offset of the underline below the baseline.

func _shaped_text_get_underline_thickness(shaped: RID) -> float

Returns thickness of the underline.

func _shaped_text_get_width(shaped: RID) -> float

Returns width (for horizontal layout) or height (for vertical) of the text.

func _shaped_text_get_word_breaks(shaped: RID, grapheme_flags: TextServer.GraphemeFlag, skip_grapheme_flags: TextServer.GraphemeFlag) -> PackedInt32Array

Breaks text into words and returns array of character ranges. Use grapheme_flags to set what characters are used for breaking.

func _shaped_text_has_object(shaped: RID, key: Variant) -> bool

Returns true if an object with key is embedded in this shaped text buffer.

func _shaped_text_hit_test_grapheme(shaped: RID, coord: float) -> int

Returns grapheme index at the specified pixel offset at the baseline, or -1 if none is found.

func _shaped_text_hit_test_position(shaped: RID, coord: float) -> int

Returns caret character offset at the specified pixel offset at the baseline. This function always returns a valid position.

func _shaped_text_is_ready(shaped: RID) -> bool

Returns true if buffer is successfully shaped.

func _shaped_text_next_character_pos(shaped: RID, pos: int) -> int

Returns composite character end position closest to the pos.

func _shaped_text_next_grapheme_pos(shaped: RID, pos: int) -> int

Returns grapheme end position closest to the pos.

func _shaped_text_overrun_trim_to_width(shaped: RID, width: float, trim_flags: TextServer.TextOverrunFlag) -> void

Trims text if it exceeds the given width.

func _shaped_text_prev_character_pos(shaped: RID, pos: int) -> int

Returns composite character start position closest to the pos.

func _shaped_text_prev_grapheme_pos(shaped: RID, pos: int) -> int

Returns grapheme start position closest to the pos.

func _shaped_text_resize_object(shaped: RID, key: Variant, size: Vector2, inline_align: InlineAlignment, baseline: float) -> bool

Sets new size and alignment of embedded object.

func _shaped_text_set_bidi_override(shaped: RID, override: Array) -> void

Overrides BiDi for the structured text.

func _shaped_text_set_custom_ellipsis(shaped: RID, char: int) -> void

Sets ellipsis character used for text clipping.

func _shaped_text_set_custom_punctuation(shaped: RID, punct: String) -> void

Sets custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.

func _shaped_text_set_direction(shaped: RID, direction: TextServer.Direction) -> void

Sets desired text direction. If set to TextServer.DIRECTION_AUTO, direction will be detected based on the buffer contents and current locale.

func _shaped_text_set_orientation(shaped: RID, orientation: TextServer.Orientation) -> void

Sets desired text orientation.

func _shaped_text_set_preserve_control(shaped: RID, enabled: bool) -> void

If set to true text buffer will display control characters.

func _shaped_text_set_preserve_invalid(shaped: RID, enabled: bool) -> void

If set to true text buffer will display invalid characters as hexadecimal codes, otherwise nothing is displayed.

func _shaped_text_set_spacing(shaped: RID, spacing: TextServer.SpacingType, value: int) -> void

Sets extra spacing added between glyphs or lines in pixels.

func _shaped_text_shape(shaped: RID) -> bool

Shapes buffer if it's not shaped. Returns true if the string is shaped successfully.

func _shaped_text_sort_logical(shaped: RID) -> const Glyph*

Returns text glyphs in the logical order.

func _shaped_text_substr(shaped: RID, start: int, length: int) -> RID

Returns text buffer for the substring of the text in the shaped text buffer (including inline objects).

func _shaped_text_tab_align(shaped: RID, tab_stops: PackedFloat32Array) -> float

Aligns shaped text to the given tab-stops.

func _shaped_text_update_breaks(shaped: RID) -> bool

Updates break points in the shaped text. This method is called by default implementation of text breaking functions.

func _shaped_text_update_justification_ops(shaped: RID) -> bool

Updates justification points in the shaped text. This method is called by default implementation of text justification functions.

func _spoof_check(string: String) -> bool

Returns true if string is likely to be an attempt at confusing the reader.

func _string_get_character_breaks(string: String, language: String) -> PackedInt32Array

Returns array of the composite character boundaries.

func _string_get_word_breaks(string: String, language: String, chars_per_line: int) -> PackedInt32Array

Returns an array of the word break boundaries. Elements in the returned array are the offsets of the start and end of words. Therefore the length of the array is always even.

func _string_to_lower(string: String, language: String) -> String

Returns the string converted to lowercase.

func _string_to_title(string: String, language: String) -> String

Returns the string converted to Title Case.

func _string_to_upper(string: String, language: String) -> String

Returns the string converted to UPPERCASE.

func _strip_diacritics(string: String) -> String

Strips diacritics from the string.

func _tag_to_name(tag: int) -> String

Converts the given OpenType tag to the readable name of a feature, variation, script, or language.

func _unreference_oversampling_level(oversampling: float) -> void

Decreases the reference count of the specified oversampling level, and frees the font cache for oversampling level when the reference count reaches zero. This method is called by Viewport, and should not be used directly.

Inherited from TextServer (244)
func create_font() -> RID
func create_shaped_text(direction: TextServer.Direction = 0, orientation: TextServer.Orientation = 0) -> RID
func draw_hex_code_box(canvas: RID, size: int, pos: Vector2, index: int, color: Color) -> void
func font_clear_glyphs(font_rid: RID, size: Vector2i) -> void
func font_clear_kerning_map(font_rid: RID, size: int) -> void
func font_clear_size_cache(font_rid: RID) -> void
func font_clear_textures(font_rid: RID, size: Vector2i) -> void
func font_draw_glyph(font_rid: RID, canvas: RID, size: int, pos: Vector2, index: int, color: Color = Color(1, 1, 1, 1), oversampling: float = 0.0) -> void
func font_draw_glyph_outline(font_rid: RID, canvas: RID, size: int, outline_size: int, pos: Vector2, index: int, color: Color = Color(1, 1, 1, 1), oversampling: float = 0.0) -> void
func font_get_ascent(font_rid: RID, size: int) -> float
func font_get_char_from_glyph_index(font_rid: RID, size: int, glyph_index: int) -> int
func font_get_descent(font_rid: RID, size: int) -> float
func font_get_embolden(font_rid: RID) -> float
func font_get_face_count(font_rid: RID) -> int
func font_get_face_index(font_rid: RID) -> int
func font_get_fixed_size(font_rid: RID) -> int
func font_get_glyph_advance(font_rid: RID, size: int, glyph: int) -> Vector2
func font_get_glyph_contours(font: RID, size: int, index: int) -> Dictionary
func font_get_glyph_index(font_rid: RID, size: int, char: int, variation_selector: int) -> int
func font_get_glyph_offset(font_rid: RID, size: Vector2i, glyph: int) -> Vector2
func font_get_glyph_size(font_rid: RID, size: Vector2i, glyph: int) -> Vector2
func font_get_glyph_texture_idx(font_rid: RID, size: Vector2i, glyph: int) -> int
func font_get_glyph_texture_rid(font_rid: RID, size: Vector2i, glyph: int) -> RID
func font_get_glyph_texture_size(font_rid: RID, size: Vector2i, glyph: int) -> Vector2
func font_get_glyph_uv_rect(font_rid: RID, size: Vector2i, glyph: int) -> Rect2
func font_get_kerning(font_rid: RID, size: int, glyph_pair: Vector2i) -> Vector2
func font_get_kerning_list(font_rid: RID, size: int) -> Vector2i[]
func font_get_language_support_override(font_rid: RID, language: String) -> bool
func font_get_msdf_pixel_range(font_rid: RID) -> int
func font_get_msdf_size(font_rid: RID) -> int
func font_get_name(font_rid: RID) -> String
func font_get_oversampling(font_rid: RID) -> float
func font_get_palette_colors(font_rid: RID, index: int) -> PackedColorArray
func font_get_palette_count(font_rid: RID) -> int
func font_get_palette_name(font_rid: RID, index: int) -> String
func font_get_scale(font_rid: RID, size: int) -> float
func font_get_script_support_override(font_rid: RID, script: String) -> bool
func font_get_size_cache_info(font_rid: RID) -> Dictionary[]
func font_get_size_cache_list(font_rid: RID) -> Vector2i[]
func font_get_spacing(font_rid: RID, spacing: TextServer.SpacingType) -> int
func font_get_stretch(font_rid: RID) -> int
func font_get_style_name(font_rid: RID) -> String
func font_get_texture_count(font_rid: RID, size: Vector2i) -> int
func font_get_texture_image(font_rid: RID, size: Vector2i, texture_index: int) -> Image
func font_get_texture_offsets(font_rid: RID, size: Vector2i, texture_index: int) -> PackedInt32Array
func font_get_underline_position(font_rid: RID, size: int) -> float
func font_get_underline_thickness(font_rid: RID, size: int) -> float
func font_get_used_palette(font_rid: RID) -> int
func font_get_weight(font_rid: RID) -> int
func font_has_char(font_rid: RID, char: int) -> bool
func font_is_force_autohinter(font_rid: RID) -> bool
func font_is_language_supported(font_rid: RID, language: String) -> bool
func font_is_script_supported(font_rid: RID, script: String) -> bool
func font_remove_glyph(font_rid: RID, size: Vector2i, glyph: int) -> void
func font_remove_kerning(font_rid: RID, size: int, glyph_pair: Vector2i) -> void
func font_remove_language_support_override(font_rid: RID, language: String) -> void
func font_remove_script_support_override(font_rid: RID, script: String) -> void
func font_remove_size_cache(font_rid: RID, size: Vector2i) -> void
func font_remove_texture(font_rid: RID, size: Vector2i, texture_index: int) -> void
func font_render_glyph(font_rid: RID, size: Vector2i, index: int) -> void
func font_render_range(font_rid: RID, size: Vector2i, start: int, end: int) -> void
func font_set_allow_system_fallback(font_rid: RID, allow_system_fallback: bool) -> void
func font_set_antialiasing(font_rid: RID, antialiasing: TextServer.FontAntialiasing) -> void
func font_set_ascent(font_rid: RID, size: int, ascent: float) -> void
func font_set_baseline_offset(font_rid: RID, baseline_offset: float) -> void
func font_set_data(font_rid: RID, data: PackedByteArray) -> void
func font_set_descent(font_rid: RID, size: int, descent: float) -> void
func font_set_disable_embedded_bitmaps(font_rid: RID, disable_embedded_bitmaps: bool) -> void
func font_set_embolden(font_rid: RID, strength: float) -> void
func font_set_face_index(font_rid: RID, face_index: int) -> void
func font_set_fixed_size(font_rid: RID, fixed_size: int) -> void
func font_set_fixed_size_scale_mode(font_rid: RID, fixed_size_scale_mode: TextServer.FixedSizeScaleMode) -> void
func font_set_force_autohinter(font_rid: RID, force_autohinter: bool) -> void
func font_set_generate_mipmaps(font_rid: RID, generate_mipmaps: bool) -> void
func font_set_global_oversampling(oversampling: float) -> void
func font_set_glyph_advance(font_rid: RID, size: int, glyph: int, advance: Vector2) -> void
func font_set_glyph_offset(font_rid: RID, size: Vector2i, glyph: int, offset: Vector2) -> void
func font_set_glyph_size(font_rid: RID, size: Vector2i, glyph: int, gl_size: Vector2) -> void
func font_set_glyph_texture_idx(font_rid: RID, size: Vector2i, glyph: int, texture_idx: int) -> void
func font_set_glyph_uv_rect(font_rid: RID, size: Vector2i, glyph: int, uv_rect: Rect2) -> void
func font_set_hinting(font_rid: RID, hinting: TextServer.Hinting) -> void
func font_set_keep_rounding_remainders(font_rid: RID, keep_rounding_remainders: bool) -> void
func font_set_kerning(font_rid: RID, size: int, glyph_pair: Vector2i, kerning: Vector2) -> void
func font_set_language_support_override(font_rid: RID, language: String, supported: bool) -> void
func font_set_modulate_color_glyphs(font_rid: RID, modulate: bool) -> void
func font_set_msdf_pixel_range(font_rid: RID, msdf_pixel_range: int) -> void
func font_set_msdf_size(font_rid: RID, msdf_size: int) -> void
func font_set_name(font_rid: RID, name: String) -> void
func font_set_opentype_feature_overrides(font_rid: RID, overrides: Dictionary) -> void
func font_set_oversampling(font_rid: RID, oversampling: float) -> void
func font_set_palette_custom_colors(font_rid: RID, colors: PackedColorArray) -> void
func font_set_scale(font_rid: RID, size: int, scale: float) -> void
func font_set_script_support_override(font_rid: RID, script: String, supported: bool) -> void
func font_set_spacing(font_rid: RID, spacing: TextServer.SpacingType, value: int) -> void
func font_set_stretch(font_rid: RID, weight: int) -> void
func font_set_style(font_rid: RID, style: TextServer.FontStyle) -> void
func font_set_style_name(font_rid: RID, name: String) -> void
func font_set_subpixel_positioning(font_rid: RID, subpixel_positioning: TextServer.SubpixelPositioning) -> void
func font_set_texture_image(font_rid: RID, size: Vector2i, texture_index: int, image: Image) -> void
func font_set_texture_offsets(font_rid: RID, size: Vector2i, texture_index: int, offset: PackedInt32Array) -> void
func font_set_transform(font_rid: RID, transform: Transform2D) -> void
func font_set_underline_position(font_rid: RID, size: int, underline_position: float) -> void
func font_set_underline_thickness(font_rid: RID, size: int, underline_thickness: float) -> void
func font_set_used_palette(font_rid: RID, index: int) -> void
func font_set_variation_coordinates(font_rid: RID, variation_coordinates: Dictionary) -> void
func font_set_weight(font_rid: RID, weight: int) -> void
func format_number(number: String, language: String = "") -> String
func free_rid(rid: RID) -> void
func get_features() -> int
func get_hex_code_box_size(size: int, index: int) -> Vector2
func get_name() -> String
func has(rid: RID) -> bool
func is_confusable(string: String, dict: PackedStringArray) -> int
func is_valid_letter(unicode: int) -> bool
func load_support_data(filename: String) -> bool
func name_to_tag(name: String) -> int
func parse_number(number: String, language: String = "") -> String
func parse_structured_text(parser_type: TextServer.StructuredTextParser, args: Array, text: String) -> Vector3i[]
func percent_sign(language: String = "") -> String
func save_support_data(filename: String) -> bool
func shaped_get_run_count(shaped: RID) -> int
func shaped_get_run_font_rid(shaped: RID, index: int) -> RID
func shaped_get_run_font_size(shaped: RID, index: int) -> int
func shaped_get_run_glyph_range(shaped: RID, index: int) -> Vector2i
func shaped_get_run_language(shaped: RID, index: int) -> String
func shaped_get_run_object(shaped: RID, index: int) -> Variant
func shaped_get_run_range(shaped: RID, index: int) -> Vector2i
func shaped_get_run_text(shaped: RID, index: int) -> String
func shaped_get_span_count(shaped: RID) -> int
func shaped_get_span_meta(shaped: RID, index: int) -> Variant
func shaped_get_span_object(shaped: RID, index: int) -> Variant
func shaped_get_span_text(shaped: RID, index: int) -> String
func shaped_get_text(shaped: RID) -> String
func shaped_set_span_update_font(shaped: RID, index: int, fonts: RID[], size: int, opentype_features: Dictionary = {}) -> void
func shaped_text_add_object(shaped: RID, key: Variant, size: Vector2, inline_align: InlineAlignment = 5, length: int = 1, baseline: float = 0.0) -> bool
func shaped_text_add_string(shaped: RID, text: String, fonts: RID[], size: int, opentype_features: Dictionary = {}, language: String = "", meta: Variant = null) -> bool
func shaped_text_clear(rid: RID) -> void
func shaped_text_draw(shaped: RID, canvas: RID, pos: Vector2, clip_l: float = -1, clip_r: float = -1, color: Color = Color(1, 1, 1, 1), oversampling: float = 0.0) -> void
func shaped_text_draw_outline(shaped: RID, canvas: RID, pos: Vector2, clip_l: float = -1, clip_r: float = -1, outline_size: int = 1, color: Color = Color(1, 1, 1, 1), oversampling: float = 0.0) -> void
func shaped_text_fit_to_width(shaped: RID, width: float, justification_flags: TextServer.JustificationFlag = 3) -> float
func shaped_text_get_carets(shaped: RID, position: int) -> Dictionary
func shaped_text_get_ellipsis_glyphs(shaped: RID) -> Dictionary[]
func shaped_text_get_glyphs(shaped: RID) -> Dictionary[]
func shaped_text_get_line_breaks(shaped: RID, width: float, start: int = 0, break_flags: TextServer.LineBreakFlag = 3) -> PackedInt32Array
func shaped_text_get_line_breaks_adv(shaped: RID, width: PackedFloat32Array, start: int = 0, once: bool = true, break_flags: TextServer.LineBreakFlag = 3) -> PackedInt32Array
func shaped_text_get_parent(shaped: RID) -> RID
func shaped_text_get_selection(shaped: RID, start: int, end: int) -> PackedVector2Array
func shaped_text_get_word_breaks(shaped: RID, grapheme_flags: TextServer.GraphemeFlag = 264, skip_grapheme_flags: TextServer.GraphemeFlag = 4) -> PackedInt32Array
func shaped_text_has_object(shaped: RID, key: Variant) -> bool
func shaped_text_hit_test_grapheme(shaped: RID, coords: float) -> int
func shaped_text_hit_test_position(shaped: RID, coords: float) -> int
func shaped_text_is_ready(shaped: RID) -> bool
func shaped_text_next_character_pos(shaped: RID, pos: int) -> int
func shaped_text_next_grapheme_pos(shaped: RID, pos: int) -> int
func shaped_text_overrun_trim_to_width(shaped: RID, width: float = 0, overrun_trim_flags: TextServer.TextOverrunFlag = 0) -> void
func shaped_text_prev_character_pos(shaped: RID, pos: int) -> int
func shaped_text_prev_grapheme_pos(shaped: RID, pos: int) -> int
func shaped_text_resize_object(shaped: RID, key: Variant, size: Vector2, inline_align: InlineAlignment = 5, baseline: float = 0.0) -> bool
func shaped_text_set_bidi_override(shaped: RID, override: Array) -> void
func shaped_text_set_custom_ellipsis(shaped: RID, char: int) -> void
func shaped_text_set_custom_punctuation(shaped: RID, punct: String) -> void
func shaped_text_set_direction(shaped: RID, direction: TextServer.Direction = 0) -> void
func shaped_text_set_orientation(shaped: RID, orientation: TextServer.Orientation = 0) -> void
func shaped_text_set_preserve_control(shaped: RID, enabled: bool) -> void
func shaped_text_set_preserve_invalid(shaped: RID, enabled: bool) -> void
func shaped_text_set_spacing(shaped: RID, spacing: TextServer.SpacingType, value: int) -> void
func shaped_text_shape(shaped: RID) -> bool
func shaped_text_sort_logical(shaped: RID) -> Dictionary[]
func shaped_text_substr(shaped: RID, start: int, length: int) -> RID
func shaped_text_tab_align(shaped: RID, tab_stops: PackedFloat32Array) -> float
func spoof_check(string: String) -> bool
func string_get_word_breaks(string: String, language: String = "", chars_per_line: int = 0) -> PackedInt32Array
func string_to_lower(string: String, language: String = "") -> String
func string_to_title(string: String, language: String = "") -> String
func string_to_upper(string: String, language: String = "") -> String
func strip_diacritics(string: String) -> String
func tag_to_name(tag: int) -> String
Inherited from RefCounted (4)
func init_ref() -> bool
func reference() -> bool
func unreference() -> bool
Inherited from Object (62)
func _get(property: StringName) -> Variant
func _get_property_list() -> Dictionary[]
func _init() -> void
func _iter_get(iter: Variant) -> Variant
func _iter_init(iter: Array) -> bool
func _iter_next(iter: Array) -> bool
func _notification(what: int) -> void
func _set(property: StringName, value: Variant) -> bool
func _to_string() -> String
func _validate_property(property: Dictionary) -> void
func add_user_signal(signal: String, arguments: Array = []) -> void
func call(method: StringName) -> Variant
func callv(method: StringName, arg_array: Array) -> Variant
func cancel_free() -> void
func connect(signal: StringName, callable: Callable, flags: int = 0) -> Error
func disconnect(signal: StringName, callable: Callable) -> void
func emit_signal(signal: StringName) -> Error
func free() -> void
func get(property: StringName) -> Variant
func get_class() -> String
func get_incoming_connections() -> Dictionary[]
func get_indexed(property_path: NodePath) -> Variant
func get_meta(name: StringName, default: Variant = null) -> Variant
func get_meta_list() -> StringName[]
func get_method_list() -> Dictionary[]
func get_property_list() -> Dictionary[]
func get_signal_connection_list(signal: StringName) -> Dictionary[]
func get_signal_list() -> Dictionary[]
func has_meta(name: StringName) -> bool
func has_method(method: StringName) -> bool
func has_signal(signal: StringName) -> bool
func is_class(class: StringName) -> bool
func is_connected(signal: StringName, callable: Callable) -> bool
func notification(what: int, reversed: bool = false) -> void
func remove_meta(name: StringName) -> void
func remove_user_signal(signal: StringName) -> void
func set(property: StringName, value: Variant) -> void
func set_block_signals(enable: bool) -> void
func set_deferred(property: StringName, value: Variant) -> void
func set_indexed(property_path: NodePath, value: Variant) -> void
func set_message_translation(enable: bool) -> void
func set_meta(name: StringName, value: Variant) -> void
func set_script(script: Variant) -> void
func set_translation_domain(domain: StringName) -> void
func to_string() -> String
func tr(message: StringName, context: StringName = &"") -> String
func tr_n(message: StringName, plural_message: StringName, n: int, context: StringName = &"") -> String

Signals

Inherited from Object (2)