Struct godot_core::classes::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: 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: GString) -> bool

source

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

source

pub fn name_to_tag(&self, name: 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: 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: 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_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_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: Gd<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, )

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn font_remove_language_support_override( &mut self, font_rid: Rid, language: 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: GString) -> bool

source

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

source

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

source

pub fn font_remove_script_support_override( &mut self, font_rid: Rid, script: 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

source

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

source

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

source

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

source

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

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: GString, )

source

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

source

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

source

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

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: GString, fonts: Array<Rid>, size: i64, ) -> bool

source

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

source

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

source

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

source

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

source

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

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, )

source

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

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

source

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

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

source

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

source

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

source

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

source

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

source

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

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)

source

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

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_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)

source

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

source

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

source

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

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: GString) -> GString

source

pub fn format_number_ex(&self, number: GString) -> ExFormatNumber<'_>

source

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

source

pub fn parse_number_ex(&self, number: GString) -> ExParseNumber<'_>

source

pub fn percent_sign(&self) -> GString

source

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

source

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

source

pub fn string_get_word_breaks_ex( &self, string: GString, ) -> ExStringGetWordBreaks<'_>

source

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

source

pub fn string_get_character_breaks_ex( &self, string: GString, ) -> ExStringGetCharacterBreaks<'_>

source

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

source

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

source

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

source

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

source

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

source

pub fn string_to_upper_ex(&self, string: GString) -> ExStringToUpper<'_>

source

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

source

pub fn string_to_lower_ex(&self, string: GString) -> ExStringToLower<'_>

source

pub fn parse_structured_text( &self, parser_type: StructuredTextParser, args: VariantArray, text: 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: GString) -> bool

source

pub fn set(&mut self, property: StringName, value: Variant)

source

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

source

pub fn set_indexed(&mut self, property_path: NodePath, value: Variant)

source

pub fn get_indexed(&self, property_path: 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: StringName) -> bool

source

pub fn property_get_revert(&self, property: 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: StringName, value: Variant)

source

pub fn remove_meta(&mut self, name: StringName)

source

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

source

pub fn get_meta_ex(&self, name: StringName) -> ExGetMeta<'_>

source

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

source

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

source

pub fn add_user_signal(&mut self, signal: GString)

source

pub fn add_user_signal_ex(&mut self, signal: GString) -> ExAddUserSignal<'_>

source

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

source

pub fn emit_signal(&mut self, signal: 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: 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: 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: 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: 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: 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: StringName, value: Variant)

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn connect_ex( &mut self, signal: StringName, callable: Callable, ) -> ExConnect<'_>

source

pub fn disconnect(&mut self, signal: StringName, callable: Callable)

source

pub fn is_connected(&self, signal: 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: StringName) -> GString

source

pub fn tr_ex(&self, message: StringName) -> ExTr<'_>

source

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

source

pub fn tr_n_ex( &self, message: StringName, plural_message: StringName, n: i32, ) -> ExTrN<'_>

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

§

type Memory = MemRefCounted

Defines the memory strategy of the static type.
§

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

§

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

§

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§

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

Initialization level, during which this class should be initialized with 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<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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,