Struct godot::classes::TextServerDummy

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

Godot class TextServerDummy.

Inherits TextServerExtension.

Related symbols:

See also Godot docs for TextServerDummy.

§Construction

This class is reference-counted. You can create a new instance using TextServerDummy::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: 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: GString) -> bool

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

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

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

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

pub 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_ex( &self, font_rid: Rid, canvas: Rid, size: i64, outline_size: i64, pos: Vector2, index: i64, ) -> ExFontDrawGlyphOutline<'_>

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

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

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

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

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

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

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

pub fn create_shaped_text(&mut self) -> Rid

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

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

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

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

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_: OutArray, )

pub fn shaped_text_set_custom_punctuation( &mut self, shaped: Rid, punct: 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn percent_sign(&self) -> GString

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn string_to_title_ex(&self, string: GString) -> ExStringToTitle<'_>

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

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

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

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

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

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

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

pub fn get_script(&self) -> Variant

pub fn set_meta(&mut self, name: StringName, value: Variant)

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

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

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

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

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

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

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

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

pub fn remove_user_signal(&mut self, signal: StringName)

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.

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.

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.

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.

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.

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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn is_queued_for_deletion(&self) -> bool

pub fn cancel_free(&mut self)

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.

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§

§

impl Bounds for TextServerDummy

§

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.
§

impl Debug for TextServerDummy

§

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

Formats the value using the given formatter. Read more
§

impl Deref for TextServerDummy

§

type Target = TextServerExtension

The resulting type after dereferencing.
§

fn deref(&self) -> &<TextServerDummy as Deref>::Target

Dereferences the value.
§

impl DerefMut for TextServerDummy

§

fn deref_mut(&mut self) -> &mut <TextServerDummy as Deref>::Target

Mutably dereferences the value.
§

impl GodotClass for TextServerDummy

§

type Base = TextServerExtension

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

fn class_name() -> ClassName

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

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

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

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

Returns whether Self inherits from U. Read more
§

impl GodotDefault for TextServerDummy

§

impl Inherits<Object> for TextServerDummy

§

impl Inherits<RefCounted> for TextServerDummy

§

impl Inherits<TextServer> for TextServerDummy

§

impl Inherits<TextServerExtension> for TextServerDummy

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.

§

impl<T> NewGd for T
where T: GodotDefault<Memory = MemRefCounted> + Bounds,

§

fn new_gd() -> Gd<T>

Return a new, ref-counted Gd containing a default-constructed instance. Read more
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.
§

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