Struct TextServerDummy
#[repr(C)]pub struct TextServerDummy { /* private fields */ }
Expand description
Godot class TextServerDummy.
Inherits TextServerExtension
.
Related symbols:
ITextServerDummy
: virtual methods
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: 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)
pub 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>
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( &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: 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(&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)
pub 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_: &Array<Variant>, )
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(&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
pub fn shaped_text_add_string<'a>(
&mut self,
shaped: Rid,
text: GString,
fonts: &'a Array<Rid>,
size: i64,
) -> bool
pub fn shaped_text_add_string<'a>( &mut self, shaped: Rid, text: GString, fonts: &'a 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: GString, fonts: &'a Array<Rid>, size: i64, ) -> ExShapedTextAddString<'a>
pub fn shaped_text_add_object<'a>(
&mut self,
shaped: Rid,
key: &'a Variant,
size: Vector2,
) -> bool
pub fn shaped_text_add_object<'a>( &mut self, shaped: Rid, key: &'a 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>
pub fn shaped_text_resize_object<'a>(
&mut self,
shaped: Rid,
key: &'a Variant,
size: Vector2,
) -> bool
pub fn shaped_text_resize_object<'a>( &mut self, shaped: Rid, key: &'a 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
pub fn shaped_set_span_update_font<'a>(
&mut self,
shaped: Rid,
index: i64,
fonts: &'a Array<Rid>,
size: i64,
)
pub fn shaped_set_span_update_font<'a>( &mut self, shaped: Rid, index: i64, fonts: &'a 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
pub 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
pub fn shaped_text_get_line_breaks_adv<'a>(
&self,
shaped: Rid,
width: &'a PackedFloat32Array,
) -> PackedInt32Array
pub fn shaped_text_get_line_breaks_adv<'a>( &self, shaped: Rid, width: &'a 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>
pub 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>
pub 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
pub 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) -> Array<Variant>
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(&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>
pub 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
pub fn format_number(&self, number: GString) -> GString
pub fn format_number(&self, number: 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: GString) -> ExFormatNumber<'a>
pub fn parse_number(&self, number: GString) -> GString
pub fn parse_number(&self, number: 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: GString) -> ExParseNumber<'a>
pub 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>
pub fn string_get_word_breaks(&self, string: GString) -> PackedInt32Array
pub fn string_get_word_breaks(&self, string: 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: GString, ) -> ExStringGetWordBreaks<'a>
pub fn string_get_character_breaks(&self, string: GString) -> PackedInt32Array
pub fn string_get_character_breaks(&self, string: 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: GString, ) -> ExStringGetCharacterBreaks<'a>
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(&self, string: 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: GString) -> ExStringToUpper<'a>
pub fn string_to_lower(&self, string: GString) -> GString
pub fn string_to_lower(&self, string: 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: GString) -> ExStringToLower<'a>
pub fn string_to_title(&self, string: GString) -> GString
pub fn string_to_title(&self, string: 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: GString) -> ExStringToTitle<'a>
pub fn parse_structured_text( &self, parser_type: StructuredTextParser, args: &Array<Variant>, 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(&self, name: 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: StringName) -> ExGetMeta<'a>
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(&mut self, signal: 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: GString, ) -> ExAddUserSignal<'a>
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
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>
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
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>
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
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>
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: &Array<Variant>, ) -> 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(&mut self, signal: 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: StringName, callable: Callable, ) -> ExConnect<'a>
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(&self, message: 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: StringName) -> ExTr<'a>
pub fn tr_n(
&self,
message: StringName,
plural_message: StringName,
n: i32,
) -> GString
pub fn tr_n( &self, message: StringName, plural_message: 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: StringName, plural_message: StringName, n: i32, ) -> ExTrN<'a>
pub fn is_queued_for_deletion(&self) -> bool
pub fn cancel_free(&mut self)
pub 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.
pub 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§
§impl Bounds for TextServerDummy
impl Bounds for TextServerDummy
§type Memory = MemRefCounted
type Memory = MemRefCounted
§type Declarer = DeclEngine
type Declarer = DeclEngine
§impl Debug for TextServerDummy
impl Debug for TextServerDummy
§impl Deref for TextServerDummy
impl Deref for TextServerDummy
§type Target = TextServerExtension
type Target = TextServerExtension
§fn deref(&self) -> &<TextServerDummy as Deref>::Target
fn deref(&self) -> &<TextServerDummy as Deref>::Target
§impl DerefMut for TextServerDummy
impl DerefMut for TextServerDummy
§fn deref_mut(&mut self) -> &mut <TextServerDummy as Deref>::Target
fn deref_mut(&mut self) -> &mut <TextServerDummy as Deref>::Target
§impl GodotClass for TextServerDummy
impl GodotClass for TextServerDummy
§const INIT_LEVEL: InitLevel = crate::init::InitLevel::Scene
const INIT_LEVEL: InitLevel = crate::init::InitLevel::Scene
§type Base = TextServerExtension
type Base = TextServerExtension
T
. This is always a Godot engine class.