#[repr(C)]pub struct TextServerExtension { /* private fields */ }
Expand description
Godot class TextServerExtension.
Inherits TextServer
.
Related symbols:
ITextServerExtension
: virtual methods
See also Godot docs for TextServerExtension
.
§Construction
This class is reference-counted. You can create a new instance using TextServerExtension::new_gd()
.
Methods from Deref<Target = TextServer>§
pub fn has_feature(&self, feature: Feature) -> bool
pub fn get_name(&self) -> GString
pub fn get_features(&self) -> i64
pub fn load_support_data(&mut self, filename: impl AsArg<GString>) -> bool
pub fn get_support_data_filename(&self) -> GString
pub fn get_support_data_info(&self) -> GString
pub fn save_support_data(&self, filename: impl AsArg<GString>) -> bool
pub fn is_locale_right_to_left(&self, locale: impl AsArg<GString>) -> bool
pub fn name_to_tag(&self, name: impl AsArg<GString>) -> i64
pub fn tag_to_name(&self, tag: i64) -> GString
pub fn has(&mut self, rid: Rid) -> bool
pub fn free_rid(&mut self, rid: Rid)
pub fn create_font(&mut self) -> Rid
pub fn create_font_linked_variation(&mut self, font_rid: Rid) -> Rid
pub fn font_set_data(&mut self, font_rid: Rid, data: &PackedByteArray)
pub fn font_set_face_index(&mut self, font_rid: Rid, face_index: i64)
pub fn font_get_face_index(&self, font_rid: Rid) -> i64
pub fn font_get_face_count(&self, font_rid: Rid) -> i64
pub fn font_set_style(&mut self, font_rid: Rid, style: FontStyle)
pub fn font_get_style(&self, font_rid: Rid) -> FontStyle
pub fn font_set_name(&mut self, font_rid: Rid, name: impl AsArg<GString>)
pub fn font_get_name(&self, font_rid: Rid) -> GString
pub fn font_get_ot_name_strings(&self, font_rid: Rid) -> Dictionary
pub fn font_set_style_name(&mut self, font_rid: Rid, name: impl AsArg<GString>)
pub fn font_get_style_name(&self, font_rid: Rid) -> GString
pub fn font_set_weight(&mut self, font_rid: Rid, weight: i64)
pub fn font_get_weight(&self, font_rid: Rid) -> i64
pub fn font_set_stretch(&mut self, font_rid: Rid, weight: i64)
pub fn font_get_stretch(&self, font_rid: Rid) -> i64
pub fn font_set_antialiasing( &mut self, font_rid: Rid, antialiasing: FontAntialiasing, )
pub fn font_get_antialiasing(&self, font_rid: Rid) -> FontAntialiasing
pub fn font_set_disable_embedded_bitmaps( &mut self, font_rid: Rid, disable_embedded_bitmaps: bool, )
pub fn font_get_disable_embedded_bitmaps(&self, font_rid: Rid) -> bool
pub fn font_set_generate_mipmaps( &mut self, font_rid: Rid, generate_mipmaps: bool, )
pub fn font_get_generate_mipmaps(&self, font_rid: Rid) -> bool
pub fn font_set_multichannel_signed_distance_field( &mut self, font_rid: Rid, msdf: bool, )
pub fn font_is_multichannel_signed_distance_field(&self, font_rid: Rid) -> bool
pub fn font_set_msdf_pixel_range( &mut self, font_rid: Rid, msdf_pixel_range: i64, )
pub fn font_get_msdf_pixel_range(&self, font_rid: Rid) -> i64
pub fn font_set_msdf_size(&mut self, font_rid: Rid, msdf_size: i64)
pub fn font_get_msdf_size(&self, font_rid: Rid) -> i64
pub fn font_set_fixed_size(&mut self, font_rid: Rid, fixed_size: i64)
pub fn font_get_fixed_size(&self, font_rid: Rid) -> i64
pub fn font_set_fixed_size_scale_mode( &mut self, font_rid: Rid, fixed_size_scale_mode: FixedSizeScaleMode, )
pub fn font_get_fixed_size_scale_mode( &self, font_rid: Rid, ) -> FixedSizeScaleMode
pub fn font_set_allow_system_fallback( &mut self, font_rid: Rid, allow_system_fallback: bool, )
pub fn font_is_allow_system_fallback(&self, font_rid: Rid) -> bool
pub fn font_set_force_autohinter( &mut self, font_rid: Rid, force_autohinter: bool, )
pub fn font_is_force_autohinter(&self, font_rid: Rid) -> bool
pub fn font_set_hinting(&mut self, font_rid: Rid, hinting: Hinting)
pub fn font_get_hinting(&self, font_rid: Rid) -> Hinting
pub fn font_set_subpixel_positioning( &mut self, font_rid: Rid, subpixel_positioning: SubpixelPositioning, )
pub fn font_get_subpixel_positioning( &self, font_rid: Rid, ) -> SubpixelPositioning
pub fn font_set_embolden(&mut self, font_rid: Rid, strength: f64)
pub fn font_get_embolden(&self, font_rid: Rid) -> f64
pub fn font_set_spacing( &mut self, font_rid: Rid, spacing: SpacingType, value: i64, )
pub fn font_get_spacing(&self, font_rid: Rid, spacing: SpacingType) -> i64
pub fn font_set_baseline_offset(&mut self, font_rid: Rid, baseline_offset: f64)
pub fn font_get_baseline_offset(&self, font_rid: Rid) -> f64
pub fn font_set_transform(&mut self, font_rid: Rid, transform: Transform2D)
pub fn font_get_transform(&self, font_rid: Rid) -> Transform2D
pub fn font_set_variation_coordinates( &mut self, font_rid: Rid, variation_coordinates: &Dictionary, )
pub fn font_get_variation_coordinates(&self, font_rid: Rid) -> Dictionary
pub fn font_set_oversampling(&mut self, font_rid: Rid, oversampling: f64)
pub fn font_get_oversampling(&self, font_rid: Rid) -> f64
pub fn font_get_size_cache_list(&self, font_rid: Rid) -> Array<Vector2i>
pub fn font_clear_size_cache(&mut self, font_rid: Rid)
pub fn font_remove_size_cache(&mut self, font_rid: Rid, size: Vector2i)
pub fn font_set_ascent(&mut self, font_rid: Rid, size: i64, ascent: f64)
pub fn font_get_ascent(&self, font_rid: Rid, size: i64) -> f64
pub fn font_set_descent(&mut self, font_rid: Rid, size: i64, descent: f64)
pub fn font_get_descent(&self, font_rid: Rid, size: i64) -> f64
pub fn font_set_underline_position( &mut self, font_rid: Rid, size: i64, underline_position: f64, )
pub fn font_get_underline_position(&self, font_rid: Rid, size: i64) -> f64
pub fn font_set_underline_thickness( &mut self, font_rid: Rid, size: i64, underline_thickness: f64, )
pub fn font_get_underline_thickness(&self, font_rid: Rid, size: i64) -> f64
pub fn font_set_scale(&mut self, font_rid: Rid, size: i64, scale: f64)
pub fn font_get_scale(&self, font_rid: Rid, size: i64) -> f64
pub fn font_get_texture_count(&self, font_rid: Rid, size: Vector2i) -> i64
pub fn font_clear_textures(&mut self, font_rid: Rid, size: Vector2i)
pub fn font_remove_texture( &mut self, font_rid: Rid, size: Vector2i, texture_index: i64, )
pub fn font_set_texture_image( &mut self, font_rid: Rid, size: Vector2i, texture_index: i64, image: impl AsObjectArg<Image>, )
pub fn font_get_texture_image( &self, font_rid: Rid, size: Vector2i, texture_index: i64, ) -> Option<Gd<Image>>
pub fn font_set_texture_offsets( &mut self, font_rid: Rid, size: Vector2i, texture_index: i64, offset: &PackedInt32Array, )
pub fn font_get_texture_offsets( &self, font_rid: Rid, size: Vector2i, texture_index: i64, ) -> PackedInt32Array
pub fn font_get_glyph_list( &self, font_rid: Rid, size: Vector2i, ) -> PackedInt32Array
pub fn font_clear_glyphs(&mut self, font_rid: Rid, size: Vector2i)
pub fn font_remove_glyph(&mut self, font_rid: Rid, size: Vector2i, glyph: i64)
pub fn font_get_glyph_advance( &self, font_rid: Rid, size: i64, glyph: i64, ) -> Vector2
pub fn font_set_glyph_advance( &mut self, font_rid: Rid, size: i64, glyph: i64, advance: Vector2, )
pub fn font_get_glyph_offset( &self, font_rid: Rid, size: Vector2i, glyph: i64, ) -> Vector2
pub fn font_set_glyph_offset( &mut self, font_rid: Rid, size: Vector2i, glyph: i64, offset: Vector2, )
pub fn font_get_glyph_size( &self, font_rid: Rid, size: Vector2i, glyph: i64, ) -> Vector2
pub fn font_set_glyph_size( &mut self, font_rid: Rid, size: Vector2i, glyph: i64, gl_size: Vector2, )
pub fn font_get_glyph_uv_rect( &self, font_rid: Rid, size: Vector2i, glyph: i64, ) -> Rect2
pub fn font_set_glyph_uv_rect( &mut self, font_rid: Rid, size: Vector2i, glyph: i64, uv_rect: Rect2, )
pub fn font_get_glyph_texture_idx( &self, font_rid: Rid, size: Vector2i, glyph: i64, ) -> i64
pub fn font_set_glyph_texture_idx( &mut self, font_rid: Rid, size: Vector2i, glyph: i64, texture_idx: i64, )
pub fn font_get_glyph_texture_rid( &self, font_rid: Rid, size: Vector2i, glyph: i64, ) -> Rid
pub fn font_get_glyph_texture_size( &self, font_rid: Rid, size: Vector2i, glyph: i64, ) -> Vector2
pub fn font_get_glyph_contours( &self, font: Rid, size: i64, index: i64, ) -> Dictionary
pub fn font_get_kerning_list(&self, font_rid: Rid, size: i64) -> Array<Vector2i>
pub fn font_clear_kerning_map(&mut self, font_rid: Rid, size: i64)
pub fn font_remove_kerning( &mut self, font_rid: Rid, size: i64, glyph_pair: Vector2i, )
pub fn font_set_kerning( &mut self, font_rid: Rid, size: i64, glyph_pair: Vector2i, kerning: Vector2, )
pub fn font_get_kerning( &self, font_rid: Rid, size: i64, glyph_pair: Vector2i, ) -> Vector2
pub fn font_get_glyph_index( &self, font_rid: Rid, size: i64, char: i64, variation_selector: i64, ) -> i64
pub fn font_get_char_from_glyph_index( &self, font_rid: Rid, size: i64, glyph_index: i64, ) -> i64
pub fn font_has_char(&self, font_rid: Rid, char: i64) -> bool
pub fn font_get_supported_chars(&self, font_rid: Rid) -> GString
pub fn font_render_range( &mut self, font_rid: Rid, size: Vector2i, start: i64, end: i64, )
pub fn font_render_glyph(&mut self, font_rid: Rid, size: Vector2i, index: i64)
Sourcepub fn font_draw_glyph(
&self,
font_rid: Rid,
canvas: Rid,
size: i64,
pos: Vector2,
index: i64,
)
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.
pub fn font_draw_glyph_ex<'a>( &'a self, font_rid: Rid, canvas: Rid, size: i64, pos: Vector2, index: i64, ) -> ExFontDrawGlyph<'a>
Sourcepub fn font_draw_glyph_outline(
&self,
font_rid: Rid,
canvas: Rid,
size: i64,
outline_size: i64,
pos: Vector2,
index: i64,
)
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.
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>
pub fn font_is_language_supported( &self, font_rid: Rid, language: impl AsArg<GString>, ) -> bool
pub fn font_set_language_support_override( &mut self, font_rid: Rid, language: impl AsArg<GString>, supported: bool, )
pub fn font_get_language_support_override( &mut self, font_rid: Rid, language: impl AsArg<GString>, ) -> bool
pub fn font_remove_language_support_override( &mut self, font_rid: Rid, language: impl AsArg<GString>, )
pub fn font_get_language_support_overrides( &mut self, font_rid: Rid, ) -> PackedStringArray
pub fn font_is_script_supported( &self, font_rid: Rid, script: impl AsArg<GString>, ) -> bool
pub fn font_set_script_support_override( &mut self, font_rid: Rid, script: impl AsArg<GString>, supported: bool, )
pub fn font_get_script_support_override( &mut self, font_rid: Rid, script: impl AsArg<GString>, ) -> bool
pub fn font_remove_script_support_override( &mut self, font_rid: Rid, script: impl AsArg<GString>, )
pub fn font_get_script_support_overrides( &mut self, font_rid: Rid, ) -> PackedStringArray
pub fn font_set_opentype_feature_overrides( &mut self, font_rid: Rid, overrides: &Dictionary, )
pub fn font_get_opentype_feature_overrides(&self, font_rid: Rid) -> Dictionary
pub fn font_supported_feature_list(&self, font_rid: Rid) -> Dictionary
pub fn font_supported_variation_list(&self, font_rid: Rid) -> Dictionary
pub fn font_get_global_oversampling(&self) -> f64
pub fn font_set_global_oversampling(&mut self, oversampling: f64)
pub fn get_hex_code_box_size(&self, size: i64, index: i64) -> Vector2
pub fn draw_hex_code_box( &self, canvas: Rid, size: i64, pos: Vector2, index: i64, color: Color, )
Sourcepub fn create_shaped_text(&mut self) -> Rid
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.
pub fn create_shaped_text_ex<'a>(&'a mut self) -> ExCreateShapedText<'a>
pub fn shaped_text_clear(&mut self, rid: Rid)
Sourcepub fn shaped_text_set_direction(&mut self, shaped: Rid)
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.
pub fn shaped_text_set_direction_ex<'a>( &'a mut self, shaped: Rid, ) -> ExShapedTextSetDirection<'a>
pub fn shaped_text_get_direction(&self, shaped: Rid) -> Direction
pub fn shaped_text_get_inferred_direction(&self, shaped: Rid) -> Direction
pub fn shaped_text_set_bidi_override( &mut self, shaped: Rid, override_: &VariantArray, )
pub fn shaped_text_set_custom_punctuation( &mut self, shaped: Rid, punct: impl AsArg<GString>, )
pub fn shaped_text_get_custom_punctuation(&self, shaped: Rid) -> GString
pub fn shaped_text_set_custom_ellipsis(&mut self, shaped: Rid, char: i64)
pub fn shaped_text_get_custom_ellipsis(&self, shaped: Rid) -> i64
Sourcepub fn shaped_text_set_orientation(&mut self, shaped: Rid)
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.
pub fn shaped_text_set_orientation_ex<'a>( &'a mut self, shaped: Rid, ) -> ExShapedTextSetOrientation<'a>
pub fn shaped_text_get_orientation(&self, shaped: Rid) -> Orientation
pub fn shaped_text_set_preserve_invalid(&mut self, shaped: Rid, enabled: bool)
pub fn shaped_text_get_preserve_invalid(&self, shaped: Rid) -> bool
pub fn shaped_text_set_preserve_control(&mut self, shaped: Rid, enabled: bool)
pub fn shaped_text_get_preserve_control(&self, shaped: Rid) -> bool
pub fn shaped_text_set_spacing( &mut self, shaped: Rid, spacing: SpacingType, value: i64, )
pub fn shaped_text_get_spacing(&self, shaped: Rid, spacing: SpacingType) -> i64
Sourcepub fn shaped_text_add_string(
&mut self,
shaped: Rid,
text: impl AsArg<GString>,
fonts: &Array<Rid>,
size: i64,
) -> bool
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.
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>
Sourcepub fn shaped_text_add_object(
&mut self,
shaped: Rid,
key: &Variant,
size: Vector2,
) -> bool
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.
pub fn shaped_text_add_object_ex<'a>( &'a mut self, shaped: Rid, key: &'a Variant, size: Vector2, ) -> ExShapedTextAddObject<'a>
Sourcepub fn shaped_text_resize_object(
&mut self,
shaped: Rid,
key: &Variant,
size: Vector2,
) -> bool
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.
pub fn shaped_text_resize_object_ex<'a>( &'a mut self, shaped: Rid, key: &'a Variant, size: Vector2, ) -> ExShapedTextResizeObject<'a>
pub fn shaped_get_span_count(&self, shaped: Rid) -> i64
pub fn shaped_get_span_meta(&self, shaped: Rid, index: i64) -> Variant
Sourcepub fn shaped_set_span_update_font(
&mut self,
shaped: Rid,
index: i64,
fonts: &Array<Rid>,
size: i64,
)
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.
pub fn shaped_set_span_update_font_ex<'a>( &'a mut self, shaped: Rid, index: i64, fonts: &'a Array<Rid>, size: i64, ) -> ExShapedSetSpanUpdateFont<'a>
pub fn shaped_text_substr(&self, shaped: Rid, start: i64, length: i64) -> Rid
pub fn shaped_text_get_parent(&self, shaped: Rid) -> Rid
Sourcepub fn shaped_text_fit_to_width(&mut self, shaped: Rid, width: f64) -> f64
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.
pub fn shaped_text_fit_to_width_ex<'a>( &'a mut self, shaped: Rid, width: f64, ) -> ExShapedTextFitToWidth<'a>
pub fn shaped_text_tab_align( &mut self, shaped: Rid, tab_stops: &PackedFloat32Array, ) -> f64
pub fn shaped_text_shape(&mut self, shaped: Rid) -> bool
pub fn shaped_text_is_ready(&self, shaped: Rid) -> bool
pub fn shaped_text_has_visible_chars(&self, shaped: Rid) -> bool
pub fn shaped_text_get_glyphs(&self, shaped: Rid) -> Array<Dictionary>
pub fn shaped_text_sort_logical(&mut self, shaped: Rid) -> Array<Dictionary>
pub fn shaped_text_get_glyph_count(&self, shaped: Rid) -> i64
pub fn shaped_text_get_range(&self, shaped: Rid) -> Vector2i
Sourcepub fn shaped_text_get_line_breaks_adv(
&self,
shaped: Rid,
width: &PackedFloat32Array,
) -> PackedInt32Array
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.
pub fn shaped_text_get_line_breaks_adv_ex<'a>( &'a self, shaped: Rid, width: &'a PackedFloat32Array, ) -> ExShapedTextGetLineBreaksAdv<'a>
Sourcepub fn shaped_text_get_line_breaks(
&self,
shaped: Rid,
width: f64,
) -> PackedInt32Array
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.
pub fn shaped_text_get_line_breaks_ex<'a>( &'a self, shaped: Rid, width: f64, ) -> ExShapedTextGetLineBreaks<'a>
Sourcepub fn shaped_text_get_word_breaks(&self, shaped: Rid) -> PackedInt32Array
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.
pub fn shaped_text_get_word_breaks_ex<'a>( &'a self, shaped: Rid, ) -> ExShapedTextGetWordBreaks<'a>
pub fn shaped_text_get_trim_pos(&self, shaped: Rid) -> i64
pub fn shaped_text_get_ellipsis_pos(&self, shaped: Rid) -> i64
pub fn shaped_text_get_ellipsis_glyphs(&self, shaped: Rid) -> Array<Dictionary>
pub fn shaped_text_get_ellipsis_glyph_count(&self, shaped: Rid) -> i64
Sourcepub fn shaped_text_overrun_trim_to_width(&mut self, shaped: Rid)
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.
pub fn shaped_text_overrun_trim_to_width_ex<'a>( &'a mut self, shaped: Rid, ) -> ExShapedTextOverrunTrimToWidth<'a>
pub fn shaped_text_get_objects(&self, shaped: Rid) -> VariantArray
pub fn shaped_text_get_object_rect(&self, shaped: Rid, key: &Variant) -> Rect2
pub fn shaped_text_get_object_range( &self, shaped: Rid, key: &Variant, ) -> Vector2i
pub fn shaped_text_get_object_glyph(&self, shaped: Rid, key: &Variant) -> i64
pub fn shaped_text_get_size(&self, shaped: Rid) -> Vector2
pub fn shaped_text_get_ascent(&self, shaped: Rid) -> f64
pub fn shaped_text_get_descent(&self, shaped: Rid) -> f64
pub fn shaped_text_get_width(&self, shaped: Rid) -> f64
pub fn shaped_text_get_underline_position(&self, shaped: Rid) -> f64
pub fn shaped_text_get_underline_thickness(&self, shaped: Rid) -> f64
pub fn shaped_text_get_carets(&self, shaped: Rid, position: i64) -> Dictionary
pub fn shaped_text_get_selection( &self, shaped: Rid, start: i64, end: i64, ) -> PackedVector2Array
pub fn shaped_text_hit_test_grapheme(&self, shaped: Rid, coords: f64) -> i64
pub fn shaped_text_hit_test_position(&self, shaped: Rid, coords: f64) -> i64
pub fn shaped_text_get_grapheme_bounds(&self, shaped: Rid, pos: i64) -> Vector2
pub fn shaped_text_next_grapheme_pos(&self, shaped: Rid, pos: i64) -> i64
pub fn shaped_text_prev_grapheme_pos(&self, shaped: Rid, pos: i64) -> i64
pub fn shaped_text_get_character_breaks(&self, shaped: Rid) -> PackedInt32Array
pub fn shaped_text_next_character_pos(&self, shaped: Rid, pos: i64) -> i64
pub fn shaped_text_prev_character_pos(&self, shaped: Rid, pos: i64) -> i64
pub fn shaped_text_closest_character_pos(&self, shaped: Rid, pos: i64) -> i64
Sourcepub fn shaped_text_draw(&self, shaped: Rid, canvas: Rid, pos: Vector2)
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.
pub fn shaped_text_draw_ex<'a>( &'a self, shaped: Rid, canvas: Rid, pos: Vector2, ) -> ExShapedTextDraw<'a>
Sourcepub fn shaped_text_draw_outline(&self, shaped: Rid, canvas: Rid, pos: Vector2)
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.
pub fn shaped_text_draw_outline_ex<'a>( &'a self, shaped: Rid, canvas: Rid, pos: Vector2, ) -> ExShapedTextDrawOutline<'a>
pub fn shaped_text_get_dominant_direction_in_range( &self, shaped: Rid, start: i64, end: i64, ) -> Direction
Sourcepub fn format_number(&self, number: impl AsArg<GString>) -> GString
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.
pub fn format_number_ex<'a>( &'a self, number: impl AsArg<GString> + 'a, ) -> ExFormatNumber<'a>
Sourcepub fn parse_number(&self, number: impl AsArg<GString>) -> GString
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.
pub fn parse_number_ex<'a>( &'a self, number: impl AsArg<GString> + 'a, ) -> ExParseNumber<'a>
Sourcepub fn percent_sign(&self) -> GString
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.
pub fn percent_sign_ex<'a>(&'a self) -> ExPercentSign<'a>
Sourcepub fn string_get_word_breaks(
&self,
string: impl AsArg<GString>,
) -> PackedInt32Array
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.
pub fn string_get_word_breaks_ex<'a>( &'a self, string: impl AsArg<GString> + 'a, ) -> ExStringGetWordBreaks<'a>
Sourcepub fn string_get_character_breaks(
&self,
string: impl AsArg<GString>,
) -> PackedInt32Array
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.
pub fn string_get_character_breaks_ex<'a>( &'a self, string: impl AsArg<GString> + 'a, ) -> ExStringGetCharacterBreaks<'a>
pub fn is_confusable( &self, string: impl AsArg<GString>, dict: &PackedStringArray, ) -> i64
pub fn spoof_check(&self, string: impl AsArg<GString>) -> bool
pub fn strip_diacritics(&self, string: impl AsArg<GString>) -> GString
pub fn is_valid_identifier(&self, string: impl AsArg<GString>) -> bool
pub fn is_valid_letter(&self, unicode: u64) -> bool
Sourcepub fn string_to_upper(&self, string: impl AsArg<GString>) -> GString
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.
pub fn string_to_upper_ex<'a>( &'a self, string: impl AsArg<GString> + 'a, ) -> ExStringToUpper<'a>
Sourcepub fn string_to_lower(&self, string: impl AsArg<GString>) -> GString
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.
pub fn string_to_lower_ex<'a>( &'a self, string: impl AsArg<GString> + 'a, ) -> ExStringToLower<'a>
Sourcepub fn string_to_title(&self, string: impl AsArg<GString>) -> GString
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.
pub fn string_to_title_ex<'a>( &'a self, string: impl AsArg<GString> + 'a, ) -> ExStringToTitle<'a>
pub fn parse_structured_text( &self, parser_type: StructuredTextParser, args: &VariantArray, text: impl AsArg<GString>, ) -> Array<Vector3i>
Methods from Deref<Target = RefCounted>§
pub fn get_reference_count(&self) -> i32
Methods from Deref<Target = Object>§
pub fn get_class(&self) -> GString
pub fn is_class(&self, class: impl AsArg<GString>) -> bool
pub fn set(&mut self, property: impl AsArg<StringName>, value: &Variant)
pub fn get(&self, property: impl AsArg<StringName>) -> Variant
pub fn set_indexed( &mut self, property_path: impl AsArg<NodePath>, value: &Variant, )
pub fn get_indexed(&self, property_path: impl AsArg<NodePath>) -> Variant
pub fn get_property_list(&self) -> Array<Dictionary>
pub fn get_method_list(&self) -> Array<Dictionary>
pub fn property_can_revert(&self, property: impl AsArg<StringName>) -> bool
pub fn property_get_revert(&self, property: impl AsArg<StringName>) -> Variant
pub fn set_script(&mut self, script: &Variant)
pub fn get_script(&self) -> Variant
pub fn set_meta(&mut self, name: impl AsArg<StringName>, value: &Variant)
pub fn remove_meta(&mut self, name: impl AsArg<StringName>)
Sourcepub fn get_meta(&self, name: impl AsArg<StringName>) -> Variant
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.
pub fn get_meta_ex<'a>( &'a self, name: impl AsArg<StringName> + 'a, ) -> ExGetMeta<'a>
pub fn has_meta(&self, name: impl AsArg<StringName>) -> bool
pub fn get_meta_list(&self) -> Array<StringName>
Sourcepub fn add_user_signal(&mut self, signal: impl AsArg<GString>)
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.
pub fn add_user_signal_ex<'a>( &'a mut self, signal: impl AsArg<GString> + 'a, ) -> ExAddUserSignal<'a>
pub fn has_user_signal(&self, signal: impl AsArg<StringName>) -> bool
pub fn remove_user_signal(&mut self, signal: impl AsArg<StringName>)
Sourcepub fn emit_signal(
&mut self,
signal: impl AsArg<StringName>,
varargs: &[Variant],
) -> Error
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.
Sourcepub fn try_emit_signal(
&mut self,
signal: impl AsArg<StringName>,
varargs: &[Variant],
) -> Result<Error, CallError>
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.
Sourcepub fn call(
&mut self,
method: impl AsArg<StringName>,
varargs: &[Variant],
) -> Variant
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.
Sourcepub fn try_call(
&mut self,
method: impl AsArg<StringName>,
varargs: &[Variant],
) -> Result<Variant, CallError>
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.
Sourcepub fn call_deferred(
&mut self,
method: impl AsArg<StringName>,
varargs: &[Variant],
) -> Variant
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.
Sourcepub fn try_call_deferred(
&mut self,
method: impl AsArg<StringName>,
varargs: &[Variant],
) -> Result<Variant, CallError>
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.
pub fn set_deferred( &mut self, property: impl AsArg<StringName>, value: &Variant, )
pub fn callv( &mut self, method: impl AsArg<StringName>, arg_array: &VariantArray, ) -> Variant
pub fn has_method(&self, method: impl AsArg<StringName>) -> bool
pub fn get_method_argument_count(&self, method: impl AsArg<StringName>) -> i32
pub fn has_signal(&self, signal: impl AsArg<StringName>) -> bool
pub fn get_signal_list(&self) -> Array<Dictionary>
pub fn get_signal_connection_list( &self, signal: impl AsArg<StringName>, ) -> Array<Dictionary>
pub fn get_incoming_connections(&self) -> Array<Dictionary>
Sourcepub fn connect(
&mut self,
signal: impl AsArg<StringName>,
callable: &Callable,
) -> Error
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.
pub fn connect_ex<'a>( &'a mut self, signal: impl AsArg<StringName> + 'a, callable: &'a Callable, ) -> ExConnect<'a>
pub fn disconnect( &mut self, signal: impl AsArg<StringName>, callable: &Callable, )
pub fn is_connected( &self, signal: impl AsArg<StringName>, callable: &Callable, ) -> bool
pub fn set_block_signals(&mut self, enable: bool)
pub fn is_blocking_signals(&self) -> bool
pub fn notify_property_list_changed(&mut self)
pub fn set_message_translation(&mut self, enable: bool)
pub fn can_translate_messages(&self) -> bool
Sourcepub fn tr(&self, message: impl AsArg<StringName>) -> GString
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.
pub fn tr_ex<'a>(&'a self, message: impl AsArg<StringName> + 'a) -> ExTr<'a>
Sourcepub fn tr_n(
&self,
message: impl AsArg<StringName>,
plural_message: impl AsArg<StringName>,
n: i32,
) -> GString
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.
pub fn tr_n_ex<'a>( &'a self, message: impl AsArg<StringName> + 'a, plural_message: impl AsArg<StringName> + 'a, n: i32, ) -> ExTrN<'a>
pub fn is_queued_for_deletion(&self) -> bool
pub fn cancel_free(&mut self)
Sourcepub fn notify(&mut self, what: ObjectNotification)
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.
Sourcepub fn notify_reversed(&mut self, what: ObjectNotification)
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 TextServerExtension
impl Bounds for TextServerExtension
Source§type Memory = MemRefCounted
type Memory = MemRefCounted
Source§type Declarer = DeclEngine
type Declarer = DeclEngine
Source§impl Debug for TextServerExtension
impl Debug for TextServerExtension
Source§impl Deref for TextServerExtension
impl Deref for TextServerExtension
Source§impl DerefMut for TextServerExtension
impl DerefMut for TextServerExtension
Source§impl GodotClass for TextServerExtension
impl GodotClass for TextServerExtension
Source§const INIT_LEVEL: InitLevel = crate::init::InitLevel::Scene
const INIT_LEVEL: InitLevel = crate::init::InitLevel::Scene
Source§type Base = TextServer
type Base = TextServer
T
. This is always a Godot engine class.