godot_core::classes

Struct TextServer

Source
#[repr(C)]
pub struct TextServer { /* private fields */ }
Expand description

Godot class TextServer.

Inherits RefCounted.

Related symbols:

See also Godot docs for TextServer.

§Not instantiable

This class cannot be constructed. Obtain Gd<TextServer> instances via Godot APIs.

Implementations§

Source§

impl TextServer

Source

pub fn has_feature(&self, feature: Feature) -> bool

Source

pub fn get_name(&self) -> GString

Source

pub fn get_features(&self) -> i64

Source

pub fn load_support_data(&mut self, filename: impl AsArg<GString>) -> bool

Source

pub fn get_support_data_filename(&self) -> GString

Source

pub fn get_support_data_info(&self) -> GString

Source

pub fn save_support_data(&self, filename: impl AsArg<GString>) -> bool

Source

pub fn is_locale_right_to_left(&self, locale: impl AsArg<GString>) -> bool

Source

pub fn name_to_tag(&self, name: impl AsArg<GString>) -> i64

Source

pub fn tag_to_name(&self, tag: i64) -> GString

Source

pub fn has(&mut self, rid: Rid) -> bool

Source

pub fn free_rid(&mut self, rid: Rid)

Source

pub fn create_font(&mut self) -> Rid

Source

pub fn create_font_linked_variation(&mut self, font_rid: Rid) -> Rid

Source

pub fn font_set_data(&mut self, font_rid: Rid, data: &PackedByteArray)

Source

pub fn font_set_face_index(&mut self, font_rid: Rid, face_index: i64)

Source

pub fn font_get_face_index(&self, font_rid: Rid) -> i64

Source

pub fn font_get_face_count(&self, font_rid: Rid) -> i64

Source

pub fn font_set_style(&mut self, font_rid: Rid, style: FontStyle)

Source

pub fn font_get_style(&self, font_rid: Rid) -> FontStyle

Source

pub fn font_set_name(&mut self, font_rid: Rid, name: impl AsArg<GString>)

Source

pub fn font_get_name(&self, font_rid: Rid) -> GString

Source

pub fn font_get_ot_name_strings(&self, font_rid: Rid) -> Dictionary

Source

pub fn font_set_style_name(&mut self, font_rid: Rid, name: impl AsArg<GString>)

Source

pub fn font_get_style_name(&self, font_rid: Rid) -> GString

Source

pub fn font_set_weight(&mut self, font_rid: Rid, weight: i64)

Source

pub fn font_get_weight(&self, font_rid: Rid) -> i64

Source

pub fn font_set_stretch(&mut self, font_rid: Rid, weight: i64)

Source

pub fn font_get_stretch(&self, font_rid: Rid) -> i64

Source

pub fn font_set_antialiasing( &mut self, font_rid: Rid, antialiasing: FontAntialiasing, )

Source

pub fn font_get_antialiasing(&self, font_rid: Rid) -> FontAntialiasing

Source

pub fn font_set_disable_embedded_bitmaps( &mut self, font_rid: Rid, disable_embedded_bitmaps: bool, )

Source

pub fn font_get_disable_embedded_bitmaps(&self, font_rid: Rid) -> bool

Source

pub fn font_set_generate_mipmaps( &mut self, font_rid: Rid, generate_mipmaps: bool, )

Source

pub fn font_get_generate_mipmaps(&self, font_rid: Rid) -> bool

Source

pub fn font_set_multichannel_signed_distance_field( &mut self, font_rid: Rid, msdf: bool, )

Source

pub fn font_is_multichannel_signed_distance_field(&self, font_rid: Rid) -> bool

Source

pub fn font_set_msdf_pixel_range( &mut self, font_rid: Rid, msdf_pixel_range: i64, )

Source

pub fn font_get_msdf_pixel_range(&self, font_rid: Rid) -> i64

Source

pub fn font_set_msdf_size(&mut self, font_rid: Rid, msdf_size: i64)

Source

pub fn font_get_msdf_size(&self, font_rid: Rid) -> i64

Source

pub fn font_set_fixed_size(&mut self, font_rid: Rid, fixed_size: i64)

Source

pub fn font_get_fixed_size(&self, font_rid: Rid) -> i64

Source

pub fn font_set_fixed_size_scale_mode( &mut self, font_rid: Rid, fixed_size_scale_mode: FixedSizeScaleMode, )

Source

pub fn font_get_fixed_size_scale_mode( &self, font_rid: Rid, ) -> FixedSizeScaleMode

Source

pub fn font_set_allow_system_fallback( &mut self, font_rid: Rid, allow_system_fallback: bool, )

Source

pub fn font_is_allow_system_fallback(&self, font_rid: Rid) -> bool

Source

pub fn font_set_force_autohinter( &mut self, font_rid: Rid, force_autohinter: bool, )

Source

pub fn font_is_force_autohinter(&self, font_rid: Rid) -> bool

Source

pub fn font_set_hinting(&mut self, font_rid: Rid, hinting: Hinting)

Source

pub fn font_get_hinting(&self, font_rid: Rid) -> Hinting

Source

pub fn font_set_subpixel_positioning( &mut self, font_rid: Rid, subpixel_positioning: SubpixelPositioning, )

Source

pub fn font_get_subpixel_positioning( &self, font_rid: Rid, ) -> SubpixelPositioning

Source

pub fn font_set_embolden(&mut self, font_rid: Rid, strength: f64)

Source

pub fn font_get_embolden(&self, font_rid: Rid) -> f64

Source

pub fn font_set_spacing( &mut self, font_rid: Rid, spacing: SpacingType, value: i64, )

Source

pub fn font_get_spacing(&self, font_rid: Rid, spacing: SpacingType) -> i64

Source

pub fn font_set_baseline_offset(&mut self, font_rid: Rid, baseline_offset: f64)

Source

pub fn font_get_baseline_offset(&self, font_rid: Rid) -> f64

Source

pub fn font_set_transform(&mut self, font_rid: Rid, transform: Transform2D)

Source

pub fn font_get_transform(&self, font_rid: Rid) -> Transform2D

Source

pub fn font_set_variation_coordinates( &mut self, font_rid: Rid, variation_coordinates: &Dictionary, )

Source

pub fn font_get_variation_coordinates(&self, font_rid: Rid) -> Dictionary

Source

pub fn font_set_oversampling(&mut self, font_rid: Rid, oversampling: f64)

Source

pub fn font_get_oversampling(&self, font_rid: Rid) -> f64

Source

pub fn font_get_size_cache_list(&self, font_rid: Rid) -> Array<Vector2i>

Source

pub fn font_clear_size_cache(&mut self, font_rid: Rid)

Source

pub fn font_remove_size_cache(&mut self, font_rid: Rid, size: Vector2i)

Source

pub fn font_set_ascent(&mut self, font_rid: Rid, size: i64, ascent: f64)

Source

pub fn font_get_ascent(&self, font_rid: Rid, size: i64) -> f64

Source

pub fn font_set_descent(&mut self, font_rid: Rid, size: i64, descent: f64)

Source

pub fn font_get_descent(&self, font_rid: Rid, size: i64) -> f64

Source

pub fn font_set_underline_position( &mut self, font_rid: Rid, size: i64, underline_position: f64, )

Source

pub fn font_get_underline_position(&self, font_rid: Rid, size: i64) -> f64

Source

pub fn font_set_underline_thickness( &mut self, font_rid: Rid, size: i64, underline_thickness: f64, )

Source

pub fn font_get_underline_thickness(&self, font_rid: Rid, size: i64) -> f64

Source

pub fn font_set_scale(&mut self, font_rid: Rid, size: i64, scale: f64)

Source

pub fn font_get_scale(&self, font_rid: Rid, size: i64) -> f64

Source

pub fn font_get_texture_count(&self, font_rid: Rid, size: Vector2i) -> i64

Source

pub fn font_clear_textures(&mut self, font_rid: Rid, size: Vector2i)

Source

pub fn font_remove_texture( &mut self, font_rid: Rid, size: Vector2i, texture_index: i64, )

Source

pub fn font_set_texture_image( &mut self, font_rid: Rid, size: Vector2i, texture_index: i64, image: impl AsObjectArg<Image>, )

Source

pub fn font_get_texture_image( &self, font_rid: Rid, size: Vector2i, texture_index: i64, ) -> Option<Gd<Image>>

Source

pub fn font_set_texture_offsets( &mut self, font_rid: Rid, size: Vector2i, texture_index: i64, offset: &PackedInt32Array, )

Source

pub fn font_get_texture_offsets( &self, font_rid: Rid, size: Vector2i, texture_index: i64, ) -> PackedInt32Array

Source

pub fn font_get_glyph_list( &self, font_rid: Rid, size: Vector2i, ) -> PackedInt32Array

Source

pub fn font_clear_glyphs(&mut self, font_rid: Rid, size: Vector2i)

Source

pub fn font_remove_glyph(&mut self, font_rid: Rid, size: Vector2i, glyph: i64)

Source

pub fn font_get_glyph_advance( &self, font_rid: Rid, size: i64, glyph: i64, ) -> Vector2

Source

pub fn font_set_glyph_advance( &mut self, font_rid: Rid, size: i64, glyph: i64, advance: Vector2, )

Source

pub fn font_get_glyph_offset( &self, font_rid: Rid, size: Vector2i, glyph: i64, ) -> Vector2

Source

pub fn font_set_glyph_offset( &mut self, font_rid: Rid, size: Vector2i, glyph: i64, offset: Vector2, )

Source

pub fn font_get_glyph_size( &self, font_rid: Rid, size: Vector2i, glyph: i64, ) -> Vector2

Source

pub fn font_set_glyph_size( &mut self, font_rid: Rid, size: Vector2i, glyph: i64, gl_size: Vector2, )

Source

pub fn font_get_glyph_uv_rect( &self, font_rid: Rid, size: Vector2i, glyph: i64, ) -> Rect2

Source

pub fn font_set_glyph_uv_rect( &mut self, font_rid: Rid, size: Vector2i, glyph: i64, uv_rect: Rect2, )

Source

pub fn font_get_glyph_texture_idx( &self, font_rid: Rid, size: Vector2i, glyph: i64, ) -> i64

Source

pub fn font_set_glyph_texture_idx( &mut self, font_rid: Rid, size: Vector2i, glyph: i64, texture_idx: i64, )

Source

pub fn font_get_glyph_texture_rid( &self, font_rid: Rid, size: Vector2i, glyph: i64, ) -> Rid

Source

pub fn font_get_glyph_texture_size( &self, font_rid: Rid, size: Vector2i, glyph: i64, ) -> Vector2

Source

pub fn font_get_glyph_contours( &self, font: Rid, size: i64, index: i64, ) -> Dictionary

Source

pub fn font_get_kerning_list(&self, font_rid: Rid, size: i64) -> Array<Vector2i>

Source

pub fn font_clear_kerning_map(&mut self, font_rid: Rid, size: i64)

Source

pub fn font_remove_kerning( &mut self, font_rid: Rid, size: i64, glyph_pair: Vector2i, )

Source

pub fn font_set_kerning( &mut self, font_rid: Rid, size: i64, glyph_pair: Vector2i, kerning: Vector2, )

Source

pub fn font_get_kerning( &self, font_rid: Rid, size: i64, glyph_pair: Vector2i, ) -> Vector2

Source

pub fn font_get_glyph_index( &self, font_rid: Rid, size: i64, char: i64, variation_selector: i64, ) -> i64

Source

pub fn font_get_char_from_glyph_index( &self, font_rid: Rid, size: i64, glyph_index: i64, ) -> i64

Source

pub fn font_has_char(&self, font_rid: Rid, char: i64) -> bool

Source

pub fn font_get_supported_chars(&self, font_rid: Rid) -> GString

Source

pub fn font_render_range( &mut self, font_rid: Rid, size: Vector2i, start: i64, end: i64, )

Source

pub fn font_render_glyph(&mut self, font_rid: Rid, size: Vector2i, index: i64)

Source

pub fn font_draw_glyph( &self, font_rid: Rid, canvas: Rid, size: i64, pos: Vector2, index: i64, )

To set the default parameters, use Self::font_draw_glyph_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn font_draw_glyph_ex<'a>( &'a self, font_rid: Rid, canvas: Rid, size: i64, pos: Vector2, index: i64, ) -> ExFontDrawGlyph<'a>

Source

pub fn font_draw_glyph_outline( &self, font_rid: Rid, canvas: Rid, size: i64, outline_size: i64, pos: Vector2, index: i64, )

To set the default parameters, use Self::font_draw_glyph_outline_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn font_draw_glyph_outline_ex<'a>( &'a self, font_rid: Rid, canvas: Rid, size: i64, outline_size: i64, pos: Vector2, index: i64, ) -> ExFontDrawGlyphOutline<'a>

Source

pub fn font_is_language_supported( &self, font_rid: Rid, language: impl AsArg<GString>, ) -> bool

Source

pub fn font_set_language_support_override( &mut self, font_rid: Rid, language: impl AsArg<GString>, supported: bool, )

Source

pub fn font_get_language_support_override( &mut self, font_rid: Rid, language: impl AsArg<GString>, ) -> bool

Source

pub fn font_remove_language_support_override( &mut self, font_rid: Rid, language: impl AsArg<GString>, )

Source

pub fn font_get_language_support_overrides( &mut self, font_rid: Rid, ) -> PackedStringArray

Source

pub fn font_is_script_supported( &self, font_rid: Rid, script: impl AsArg<GString>, ) -> bool

Source

pub fn font_set_script_support_override( &mut self, font_rid: Rid, script: impl AsArg<GString>, supported: bool, )

Source

pub fn font_get_script_support_override( &mut self, font_rid: Rid, script: impl AsArg<GString>, ) -> bool

Source

pub fn font_remove_script_support_override( &mut self, font_rid: Rid, script: impl AsArg<GString>, )

Source

pub fn font_get_script_support_overrides( &mut self, font_rid: Rid, ) -> PackedStringArray

Source

pub fn font_set_opentype_feature_overrides( &mut self, font_rid: Rid, overrides: &Dictionary, )

Source

pub fn font_get_opentype_feature_overrides(&self, font_rid: Rid) -> Dictionary

Source

pub fn font_supported_feature_list(&self, font_rid: Rid) -> Dictionary

Source

pub fn font_supported_variation_list(&self, font_rid: Rid) -> Dictionary

Source

pub fn font_get_global_oversampling(&self) -> f64

Source

pub fn font_set_global_oversampling(&mut self, oversampling: f64)

Source

pub fn get_hex_code_box_size(&self, size: i64, index: i64) -> Vector2

Source

pub fn draw_hex_code_box( &self, canvas: Rid, size: i64, pos: Vector2, index: i64, color: Color, )

Source

pub fn create_shaped_text(&mut self) -> Rid

To set the default parameters, use Self::create_shaped_text_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn create_shaped_text_ex<'a>(&'a mut self) -> ExCreateShapedText<'a>

Source

pub fn shaped_text_clear(&mut self, rid: Rid)

Source

pub fn shaped_text_set_direction(&mut self, shaped: Rid)

To set the default parameters, use Self::shaped_text_set_direction_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_text_set_direction_ex<'a>( &'a mut self, shaped: Rid, ) -> ExShapedTextSetDirection<'a>

Source

pub fn shaped_text_get_direction(&self, shaped: Rid) -> Direction

Source

pub fn shaped_text_get_inferred_direction(&self, shaped: Rid) -> Direction

Source

pub fn shaped_text_set_bidi_override( &mut self, shaped: Rid, override_: &VariantArray, )

Source

pub fn shaped_text_set_custom_punctuation( &mut self, shaped: Rid, punct: impl AsArg<GString>, )

Source

pub fn shaped_text_get_custom_punctuation(&self, shaped: Rid) -> GString

Source

pub fn shaped_text_set_custom_ellipsis(&mut self, shaped: Rid, char: i64)

Source

pub fn shaped_text_get_custom_ellipsis(&self, shaped: Rid) -> i64

Source

pub fn shaped_text_set_orientation(&mut self, shaped: Rid)

To set the default parameters, use Self::shaped_text_set_orientation_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_text_set_orientation_ex<'a>( &'a mut self, shaped: Rid, ) -> ExShapedTextSetOrientation<'a>

Source

pub fn shaped_text_get_orientation(&self, shaped: Rid) -> Orientation

Source

pub fn shaped_text_set_preserve_invalid(&mut self, shaped: Rid, enabled: bool)

Source

pub fn shaped_text_get_preserve_invalid(&self, shaped: Rid) -> bool

Source

pub fn shaped_text_set_preserve_control(&mut self, shaped: Rid, enabled: bool)

Source

pub fn shaped_text_get_preserve_control(&self, shaped: Rid) -> bool

Source

pub fn shaped_text_set_spacing( &mut self, shaped: Rid, spacing: SpacingType, value: i64, )

Source

pub fn shaped_text_get_spacing(&self, shaped: Rid, spacing: SpacingType) -> i64

Source

pub fn shaped_text_add_string( &mut self, shaped: Rid, text: impl AsArg<GString>, fonts: &Array<Rid>, size: i64, ) -> bool

To set the default parameters, use Self::shaped_text_add_string_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_text_add_string_ex<'a>( &'a mut self, shaped: Rid, text: impl AsArg<GString> + 'a, fonts: &'a Array<Rid>, size: i64, ) -> ExShapedTextAddString<'a>

Source

pub fn shaped_text_add_object( &mut self, shaped: Rid, key: &Variant, size: Vector2, ) -> bool

To set the default parameters, use Self::shaped_text_add_object_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_text_add_object_ex<'a>( &'a mut self, shaped: Rid, key: &'a Variant, size: Vector2, ) -> ExShapedTextAddObject<'a>

Source

pub fn shaped_text_resize_object( &mut self, shaped: Rid, key: &Variant, size: Vector2, ) -> bool

To set the default parameters, use Self::shaped_text_resize_object_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_text_resize_object_ex<'a>( &'a mut self, shaped: Rid, key: &'a Variant, size: Vector2, ) -> ExShapedTextResizeObject<'a>

Source

pub fn shaped_get_span_count(&self, shaped: Rid) -> i64

Source

pub fn shaped_get_span_meta(&self, shaped: Rid, index: i64) -> Variant

Source

pub fn shaped_set_span_update_font( &mut self, shaped: Rid, index: i64, fonts: &Array<Rid>, size: i64, )

To set the default parameters, use Self::shaped_set_span_update_font_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_set_span_update_font_ex<'a>( &'a mut self, shaped: Rid, index: i64, fonts: &'a Array<Rid>, size: i64, ) -> ExShapedSetSpanUpdateFont<'a>

Source

pub fn shaped_text_substr(&self, shaped: Rid, start: i64, length: i64) -> Rid

Source

pub fn shaped_text_get_parent(&self, shaped: Rid) -> Rid

Source

pub fn shaped_text_fit_to_width(&mut self, shaped: Rid, width: f64) -> f64

To set the default parameters, use Self::shaped_text_fit_to_width_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_text_fit_to_width_ex<'a>( &'a mut self, shaped: Rid, width: f64, ) -> ExShapedTextFitToWidth<'a>

Source

pub fn shaped_text_tab_align( &mut self, shaped: Rid, tab_stops: &PackedFloat32Array, ) -> f64

Source

pub fn shaped_text_shape(&mut self, shaped: Rid) -> bool

Source

pub fn shaped_text_is_ready(&self, shaped: Rid) -> bool

Source

pub fn shaped_text_has_visible_chars(&self, shaped: Rid) -> bool

Source

pub fn shaped_text_get_glyphs(&self, shaped: Rid) -> Array<Dictionary>

Source

pub fn shaped_text_sort_logical(&mut self, shaped: Rid) -> Array<Dictionary>

Source

pub fn shaped_text_get_glyph_count(&self, shaped: Rid) -> i64

Source

pub fn shaped_text_get_range(&self, shaped: Rid) -> Vector2i

Source

pub fn shaped_text_get_line_breaks_adv( &self, shaped: Rid, width: &PackedFloat32Array, ) -> PackedInt32Array

To set the default parameters, use Self::shaped_text_get_line_breaks_adv_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_text_get_line_breaks_adv_ex<'a>( &'a self, shaped: Rid, width: &'a PackedFloat32Array, ) -> ExShapedTextGetLineBreaksAdv<'a>

Source

pub fn shaped_text_get_line_breaks( &self, shaped: Rid, width: f64, ) -> PackedInt32Array

To set the default parameters, use Self::shaped_text_get_line_breaks_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_text_get_line_breaks_ex<'a>( &'a self, shaped: Rid, width: f64, ) -> ExShapedTextGetLineBreaks<'a>

Source

pub fn shaped_text_get_word_breaks(&self, shaped: Rid) -> PackedInt32Array

To set the default parameters, use Self::shaped_text_get_word_breaks_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_text_get_word_breaks_ex<'a>( &'a self, shaped: Rid, ) -> ExShapedTextGetWordBreaks<'a>

Source

pub fn shaped_text_get_trim_pos(&self, shaped: Rid) -> i64

Source

pub fn shaped_text_get_ellipsis_pos(&self, shaped: Rid) -> i64

Source

pub fn shaped_text_get_ellipsis_glyphs(&self, shaped: Rid) -> Array<Dictionary>

Source

pub fn shaped_text_get_ellipsis_glyph_count(&self, shaped: Rid) -> i64

Source

pub fn shaped_text_overrun_trim_to_width(&mut self, shaped: Rid)

To set the default parameters, use Self::shaped_text_overrun_trim_to_width_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_text_overrun_trim_to_width_ex<'a>( &'a mut self, shaped: Rid, ) -> ExShapedTextOverrunTrimToWidth<'a>

Source

pub fn shaped_text_get_objects(&self, shaped: Rid) -> VariantArray

Source

pub fn shaped_text_get_object_rect(&self, shaped: Rid, key: &Variant) -> Rect2

Source

pub fn shaped_text_get_object_range( &self, shaped: Rid, key: &Variant, ) -> Vector2i

Source

pub fn shaped_text_get_object_glyph(&self, shaped: Rid, key: &Variant) -> i64

Source

pub fn shaped_text_get_size(&self, shaped: Rid) -> Vector2

Source

pub fn shaped_text_get_ascent(&self, shaped: Rid) -> f64

Source

pub fn shaped_text_get_descent(&self, shaped: Rid) -> f64

Source

pub fn shaped_text_get_width(&self, shaped: Rid) -> f64

Source

pub fn shaped_text_get_underline_position(&self, shaped: Rid) -> f64

Source

pub fn shaped_text_get_underline_thickness(&self, shaped: Rid) -> f64

Source

pub fn shaped_text_get_carets(&self, shaped: Rid, position: i64) -> Dictionary

Source

pub fn shaped_text_get_selection( &self, shaped: Rid, start: i64, end: i64, ) -> PackedVector2Array

Source

pub fn shaped_text_hit_test_grapheme(&self, shaped: Rid, coords: f64) -> i64

Source

pub fn shaped_text_hit_test_position(&self, shaped: Rid, coords: f64) -> i64

Source

pub fn shaped_text_get_grapheme_bounds(&self, shaped: Rid, pos: i64) -> Vector2

Source

pub fn shaped_text_next_grapheme_pos(&self, shaped: Rid, pos: i64) -> i64

Source

pub fn shaped_text_prev_grapheme_pos(&self, shaped: Rid, pos: i64) -> i64

Source

pub fn shaped_text_get_character_breaks(&self, shaped: Rid) -> PackedInt32Array

Source

pub fn shaped_text_next_character_pos(&self, shaped: Rid, pos: i64) -> i64

Source

pub fn shaped_text_prev_character_pos(&self, shaped: Rid, pos: i64) -> i64

Source

pub fn shaped_text_closest_character_pos(&self, shaped: Rid, pos: i64) -> i64

Source

pub fn shaped_text_draw(&self, shaped: Rid, canvas: Rid, pos: Vector2)

To set the default parameters, use Self::shaped_text_draw_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_text_draw_ex<'a>( &'a self, shaped: Rid, canvas: Rid, pos: Vector2, ) -> ExShapedTextDraw<'a>

Source

pub fn shaped_text_draw_outline(&self, shaped: Rid, canvas: Rid, pos: Vector2)

To set the default parameters, use Self::shaped_text_draw_outline_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shaped_text_draw_outline_ex<'a>( &'a self, shaped: Rid, canvas: Rid, pos: Vector2, ) -> ExShapedTextDrawOutline<'a>

Source

pub fn shaped_text_get_dominant_direction_in_range( &self, shaped: Rid, start: i64, end: i64, ) -> Direction

Source

pub fn format_number(&self, number: impl AsArg<GString>) -> GString

To set the default parameters, use Self::format_number_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn format_number_ex<'a>( &'a self, number: impl AsArg<GString> + 'a, ) -> ExFormatNumber<'a>

Source

pub fn parse_number(&self, number: impl AsArg<GString>) -> GString

To set the default parameters, use Self::parse_number_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn parse_number_ex<'a>( &'a self, number: impl AsArg<GString> + 'a, ) -> ExParseNumber<'a>

Source

pub fn percent_sign(&self) -> GString

To set the default parameters, use Self::percent_sign_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn percent_sign_ex<'a>(&'a self) -> ExPercentSign<'a>

Source

pub fn string_get_word_breaks( &self, string: impl AsArg<GString>, ) -> PackedInt32Array

To set the default parameters, use Self::string_get_word_breaks_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn string_get_word_breaks_ex<'a>( &'a self, string: impl AsArg<GString> + 'a, ) -> ExStringGetWordBreaks<'a>

Source

pub fn string_get_character_breaks( &self, string: impl AsArg<GString>, ) -> PackedInt32Array

To set the default parameters, use Self::string_get_character_breaks_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn string_get_character_breaks_ex<'a>( &'a self, string: impl AsArg<GString> + 'a, ) -> ExStringGetCharacterBreaks<'a>

Source

pub fn is_confusable( &self, string: impl AsArg<GString>, dict: &PackedStringArray, ) -> i64

Source

pub fn spoof_check(&self, string: impl AsArg<GString>) -> bool

Source

pub fn strip_diacritics(&self, string: impl AsArg<GString>) -> GString

Source

pub fn is_valid_identifier(&self, string: impl AsArg<GString>) -> bool

Source

pub fn is_valid_letter(&self, unicode: u64) -> bool

Source

pub fn string_to_upper(&self, string: impl AsArg<GString>) -> GString

To set the default parameters, use Self::string_to_upper_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn string_to_upper_ex<'a>( &'a self, string: impl AsArg<GString> + 'a, ) -> ExStringToUpper<'a>

Source

pub fn string_to_lower(&self, string: impl AsArg<GString>) -> GString

To set the default parameters, use Self::string_to_lower_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn string_to_lower_ex<'a>( &'a self, string: impl AsArg<GString> + 'a, ) -> ExStringToLower<'a>

Source

pub fn string_to_title(&self, string: impl AsArg<GString>) -> GString

To set the default parameters, use Self::string_to_title_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn string_to_title_ex<'a>( &'a self, string: impl AsArg<GString> + 'a, ) -> ExStringToTitle<'a>

Source

pub fn parse_structured_text( &self, parser_type: StructuredTextParser, args: &VariantArray, text: impl AsArg<GString>, ) -> Array<Vector3i>

Methods from Deref<Target = RefCounted>§

Methods from Deref<Target = Object>§

Source

pub fn get_class(&self) -> GString

Source

pub fn is_class(&self, class: impl AsArg<GString>) -> bool

Source

pub fn set(&mut self, property: impl AsArg<StringName>, value: &Variant)

Source

pub fn get(&self, property: impl AsArg<StringName>) -> Variant

Source

pub fn set_indexed( &mut self, property_path: impl AsArg<NodePath>, value: &Variant, )

Source

pub fn get_indexed(&self, property_path: impl AsArg<NodePath>) -> Variant

Source

pub fn get_property_list(&self) -> Array<Dictionary>

Source

pub fn get_method_list(&self) -> Array<Dictionary>

Source

pub fn property_can_revert(&self, property: impl AsArg<StringName>) -> bool

Source

pub fn property_get_revert(&self, property: impl AsArg<StringName>) -> Variant

Source

pub fn set_script(&mut self, script: &Variant)

Source

pub fn get_script(&self) -> Variant

Source

pub fn set_meta(&mut self, name: impl AsArg<StringName>, value: &Variant)

Source

pub fn remove_meta(&mut self, name: impl AsArg<StringName>)

Source

pub fn get_meta(&self, name: impl AsArg<StringName>) -> Variant

To set the default parameters, use Self::get_meta_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn get_meta_ex<'a>( &'a self, name: impl AsArg<StringName> + 'a, ) -> ExGetMeta<'a>

Source

pub fn has_meta(&self, name: impl AsArg<StringName>) -> bool

Source

pub fn get_meta_list(&self) -> Array<StringName>

Source

pub fn add_user_signal(&mut self, signal: impl AsArg<GString>)

To set the default parameters, use Self::add_user_signal_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn add_user_signal_ex<'a>( &'a mut self, signal: impl AsArg<GString> + 'a, ) -> ExAddUserSignal<'a>

Source

pub fn has_user_signal(&self, signal: impl AsArg<StringName>) -> bool

Source

pub fn remove_user_signal(&mut self, signal: impl AsArg<StringName>)

Source

pub fn emit_signal( &mut self, signal: impl AsArg<StringName>, varargs: &[Variant], ) -> Error

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

Source

pub fn try_emit_signal( &mut self, signal: impl AsArg<StringName>, varargs: &[Variant], ) -> Result<Error, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

Source

pub fn call( &mut self, method: impl AsArg<StringName>, varargs: &[Variant], ) -> Variant

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

Source

pub fn try_call( &mut self, method: impl AsArg<StringName>, varargs: &[Variant], ) -> Result<Variant, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

Source

pub fn call_deferred( &mut self, method: impl AsArg<StringName>, varargs: &[Variant], ) -> Variant

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

Source

pub fn try_call_deferred( &mut self, method: impl AsArg<StringName>, varargs: &[Variant], ) -> Result<Variant, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

Source

pub fn set_deferred( &mut self, property: impl AsArg<StringName>, value: &Variant, )

Source

pub fn callv( &mut self, method: impl AsArg<StringName>, arg_array: &VariantArray, ) -> Variant

Source

pub fn has_method(&self, method: impl AsArg<StringName>) -> bool

Source

pub fn get_method_argument_count(&self, method: impl AsArg<StringName>) -> i32

Source

pub fn has_signal(&self, signal: impl AsArg<StringName>) -> bool

Source

pub fn get_signal_list(&self) -> Array<Dictionary>

Source

pub fn get_signal_connection_list( &self, signal: impl AsArg<StringName>, ) -> Array<Dictionary>

Source

pub fn get_incoming_connections(&self) -> Array<Dictionary>

Source

pub fn connect( &mut self, signal: impl AsArg<StringName>, callable: &Callable, ) -> Error

To set the default parameters, use Self::connect_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn connect_ex<'a>( &'a mut self, signal: impl AsArg<StringName> + 'a, callable: &'a Callable, ) -> ExConnect<'a>

Source

pub fn disconnect( &mut self, signal: impl AsArg<StringName>, callable: &Callable, )

Source

pub fn is_connected( &self, signal: impl AsArg<StringName>, callable: &Callable, ) -> bool

Source

pub fn set_block_signals(&mut self, enable: bool)

Source

pub fn is_blocking_signals(&self) -> bool

Source

pub fn notify_property_list_changed(&mut self)

Source

pub fn set_message_translation(&mut self, enable: bool)

Source

pub fn can_translate_messages(&self) -> bool

Source

pub fn tr(&self, message: impl AsArg<StringName>) -> GString

To set the default parameters, use Self::tr_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn tr_ex<'a>(&'a self, message: impl AsArg<StringName> + 'a) -> ExTr<'a>

Source

pub fn tr_n( &self, message: impl AsArg<StringName>, plural_message: impl AsArg<StringName>, n: i32, ) -> GString

To set the default parameters, use Self::tr_n_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn tr_n_ex<'a>( &'a self, message: impl AsArg<StringName> + 'a, plural_message: impl AsArg<StringName> + 'a, n: i32, ) -> ExTrN<'a>

Source

pub fn is_queued_for_deletion(&self) -> bool

Source

pub fn cancel_free(&mut self)

Source

pub fn notify(&mut self, what: ObjectNotification)

⚠️ Sends a Godot notification to all classes inherited by the object.

Triggers calls to on_notification(), and depending on the notification, also to Godot’s lifecycle callbacks such as ready().

Starts from the highest ancestor (the Object class) and goes down the hierarchy. See also Godot docs for Object::notification().

§Panics

If you call this method on a user-defined object while holding a GdRef or GdMut guard on the instance, you will encounter a panic. The reason is that the receiving virtual method on_notification() acquires a GdMut lock dynamically, which must be exclusive.

Source

pub fn notify_reversed(&mut self, what: ObjectNotification)

⚠️ Like Self::notify(), but starts at the most-derived class and goes up the hierarchy.

See docs of that method, including the panics.

Trait Implementations§

Source§

impl Bounds for TextServer

Source§

type Memory = MemRefCounted

Defines the memory strategy of the static type.
Source§

type Declarer = DeclEngine

Whether this class is a core Godot class provided by the engine, or declared by the user as a Rust struct.
Source§

impl Debug for TextServer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for TextServer

Source§

type Target = RefCounted

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for TextServer

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl GodotClass for TextServer

Source§

const INIT_LEVEL: InitLevel = crate::init::InitLevel::Scene

Initialization level, during which this class should be initialized with Godot. Read more
Source§

type Base = RefCounted

The immediate superclass of T. This is always a Godot engine class.
Source§

fn class_name() -> ClassName

The name of the class, under which it is registered in Godot. Read more
Source§

fn inherits<U: GodotClass>() -> bool

Returns whether Self inherits from U. Read more
Source§

impl Inherits<Object> for TextServer

Source§

impl Inherits<RefCounted> for TextServer

Source§

impl Inherits<TextServer> for TextServerExtension

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Inherits<T> for T
where T: GodotClass,