Struct allegro::display::Display[][src]

pub struct Display { /* fields omitted */ }

Implementations

impl Display[src]

pub fn new(_: &Core, w: i32, h: i32) -> Result<Display, ()>[src]

pub fn get_width(&self) -> i32[src]

pub fn get_height(&self) -> i32[src]

pub fn get_format(&self) -> PixelFormat[src]

pub fn get_refresh_rate(&self) -> i32[src]

pub fn get_flags(&self) -> DisplayFlags[src]

pub fn set_flag(&self, flag: DisplayFlags, onoff: bool) -> bool[src]

pub fn get_backbuffer(&self) -> &Bitmap[src]

pub fn acknowledge_resize(&self) -> Result<(), ()>[src]

pub fn resize(&self, w: i32, h: i32) -> Result<(), ()>[src]

pub fn set_icon<T: BitmapLike>(&self, icon: &T)[src]

pub fn set_icons<'l, U: Iterator<Item = &'l (dyn BitmapLike + 'l)>>(
    &self,
    icons: U
)
[src]

pub fn set_window_position(&self, x: i32, y: i32)[src]

pub fn get_window_position(&self) -> (i32, i32)[src]

pub fn set_window_title(&self, title: &str)[src]

pub fn get_option(&self, option: DisplayOption) -> i32[src]

pub fn convert_bitmap<T: BitmapLike>(&self, bmp: &T) -> Result<Bitmap, ()>[src]

pub fn get_event_source(&self) -> EventSource<'_>[src]

pub fn get_allegro_display(&self) -> *mut ALLEGRO_DISPLAY[src]

pub fn create_shader(
    &mut self,
    platform: ShaderPlatform
) -> Result<Weak<Shader>, ()>
[src]

Create a new shader associated with this display.

Note that display destruction will panic if a strong reference is held to a shader at that time.

pub fn show_cursor(&self, show: bool) -> Result<(), ()>[src]

Trait Implementations

impl Drop for Display[src]

impl Send for Display[src]

impl Sync for Display[src]

Auto Trait Implementations

impl !RefUnwindSafe for Display

impl Unpin for Display

impl !UnwindSafe for Display

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.