Struct gdnative::DynamicFont
[−]
[src]
pub struct DynamicFont { /* fields omitted */ }
core class DynamicFont : Font
(reference counted)
Base class
DynamicFont inherits Font and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl DynamicFont
[src]
pub fn as_font(&self) -> Font
[src]
Up-cast.
pub fn new() -> Self
[src]
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn set_font_data(&mut self, data: Option<DynamicFontData>)
[src]
pub fn get_font_data(&self) -> Option<DynamicFontData>
[src]
pub fn set_size(&mut self, data: i64)
[src]
pub fn get_size(&self) -> i64
[src]
pub fn set_use_mipmaps(&mut self, enable: bool)
[src]
pub fn get_use_mipmaps(&self) -> bool
[src]
pub fn set_use_filter(&mut self, enable: bool)
[src]
pub fn get_use_filter(&self) -> bool
[src]
pub fn set_spacing(&mut self, _type: i64, value: i64)
[src]
pub fn get_spacing(&self, _type: i64) -> i64
[src]
pub fn add_fallback(&mut self, data: Option<DynamicFontData>)
[src]
pub fn set_fallback(&mut self, idx: i64, data: Option<DynamicFontData>)
[src]
pub fn get_fallback(&self, idx: i64) -> Option<DynamicFontData>
[src]
pub fn remove_fallback(&mut self, idx: i64)
[src]
pub fn get_fallback_count(&self) -> i64
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = Font>
pub fn as_resource(&self) -> Resource
[src]
Up-cast.
pub fn draw(
&self,
canvas_item: Rid,
position: Vector2,
string: GodotString,
modulate: Color,
clip_w: i64
)
[src]
&self,
canvas_item: Rid,
position: Vector2,
string: GodotString,
modulate: Color,
clip_w: i64
)
pub fn get_ascent(&self) -> f64
[src]
pub fn get_descent(&self) -> f64
[src]
pub fn get_height(&self) -> f64
[src]
pub fn is_distance_field_hint(&self) -> bool
[src]
pub fn get_string_size(&self, string: GodotString) -> Vector2
[src]
pub fn draw_char(
&self,
canvas_item: Rid,
position: Vector2,
char: i64,
next: i64,
modulate: Color
) -> f64
[src]
&self,
canvas_item: Rid,
position: Vector2,
char: i64,
next: i64,
modulate: Color
) -> f64
pub fn update_changes(&mut self)
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for DynamicFont
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Deref for DynamicFont
[src]
type Target = Font
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.