Struct allegro::Display
[−]
[src]
pub struct Display { // some fields omitted }
pub struct Display { // some fields omitted }
impl Display
[src]fn new(_: &Core, w: i32, h: i32) -> Result<Display, String>
fn get_width(&self) -> i32
fn get_height(&self) -> i32
fn get_format(&self) -> PixelFormat
fn get_refresh_rate(&self) -> i32
fn get_flags(&self) -> DisplayFlags
fn set_flag(&self, flag: DisplayFlags, onoff: bool) -> bool
fn get_backbuffer<'l>(&'l self) -> &'l Bitmap
fn acknowledge_resize(&self) -> Result<(), ()>
fn resize(&self, w: i32, h: i32) -> Result<(), ()>
fn set_icon<T: BitmapLike>(&self, icon: &T)
fn set_icons<'l, U: Iterator<Item=&'l BitmapLike + 'l>>(&self, icons: U)
fn set_window_position(&self, x: i32, y: i32)
fn get_window_position(&self) -> (i32, i32)
fn set_window_title(&self, title: &str)
fn get_option(&self, option: DisplayOption) -> i32
fn convert_bitmap<T: BitmapLike>(&self, bmp: &T) -> Result<Bitmap, ()>
fn get_event_source<'l>(&'l self) -> &'l EventSource
fn get_allegro_display(&self) -> *mut ALLEGRO_DISPLAY
fn flip(&self)
fn update_region(&self, x: i32, y: i32, width: i32, height: i32)
fn is_compatible_bitmap<T: BitmapLike>(&self, bitmap: &T) -> bool
fn wait_for_vsync(&self) -> Result<(), ()>
fn hold_bitmap_drawing(&self, hold: bool)
fn is_bitmap_drawing_held(&self) -> bool
impl Drop for Display
[src]