Struct gdnative::Font
[−]
[src]
pub struct Font { /* fields omitted */ }
Methods
impl Font
[src]
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(&self)
[src]
Methods from Deref<Target = Resource>
pub fn _setup_local_to_scene(&self)
[src]
pub fn set_path(&self, path: GodotString)
[src]
pub fn take_over_path(&self, path: GodotString)
[src]
pub fn get_path(&self) -> GodotString
[src]
pub fn set_name(&self, name: GodotString)
[src]
pub fn get_name(&self) -> GodotString
[src]
pub fn get_rid(&self) -> Rid
[src]
pub fn set_local_to_scene(&self, enable: bool)
[src]
pub fn is_local_to_scene(&self) -> bool
[src]
pub fn get_local_scene(&self) -> Option<GodotRef<Node>>
[src]
pub fn setup_local_to_scene(&self)
[src]
pub fn duplicate(&self, subresources: bool) -> Option<GodotRef<Resource>>
[src]
Trait Implementations
impl GodotClass for Font
[src]
type ClassData = Font
type Reference = Font
fn godot_name() -> &'static str
[src]
unsafe fn register_class(_desc: *mut c_void)
[src]
fn godot_info(&self) -> &GodotClassInfo
[src]
unsafe fn reference(
_this: *mut godot_object,
data: &Self::ClassData
) -> &Self::Reference
[src]
_this: *mut godot_object,
data: &Self::ClassData
) -> &Self::Reference