Struct allegro::display::Display [−][src]
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]
&self,
icons: U
)
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]
&mut self,
platform: ShaderPlatform
) -> Result<Weak<Shader>, ()>
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
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,