Struct allegro_font::Font [] [src]

pub struct Font {
    // some fields omitted
}

Methods

impl Font
[src]

fn new_builtin(_: &FontAddon) -> Result<Font()>

fn load_bitmap_font(_: &FontAddon, filename: &str) -> Result<Font()>

fn grab_from_bitmap(_: &FontAddon, bmp: &Bitmap, ranges: &[(c_int, c_int)]) -> Result<Font()>

unsafe fn wrap_allegro_font(font: *mut ALLEGRO_FONT) -> Result<Font()>

fn get_font(&self) -> *mut ALLEGRO_FONT

fn get_text_width(&self, text: &str) -> i32

fn get_line_height(&self) -> i32

fn get_ascent(&self) -> i32

fn get_descent(&self) -> i32

fn get_text_dimensions(&self, text: &str) -> (i32, i32, i32, i32)

Trait Implementations

impl Drop for Font
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more