Struct rich_sdl2_rust::Video
source · pub struct Video<'sdl> { /* private fields */ }
Expand description
A video controller by SDL2.
Implementations§
source§impl<'sdl> Video<'sdl>
impl<'sdl> Video<'sdl>
sourcepub fn video_drivers(&self) -> Vec<&str>
pub fn video_drivers(&self) -> Vec<&str>
Returns the names of the video drivers.
sourcepub fn current_driver(&self) -> &str
pub fn current_driver(&self) -> &str
Returns the name of the current video driver.
sourcepub fn has_screen_keyboard(&self) -> bool
pub fn has_screen_keyboard(&self) -> bool
Returns whether the screen keyboard is supported.
sourcepub fn reset_gl_attribute(&self)
pub fn reset_gl_attribute(&self)
Resets all OpenGL attributes.
Trait Implementations§
Auto Trait Implementations§
impl<'sdl> !RefUnwindSafe for Video<'sdl>
impl<'sdl> !Send for Video<'sdl>
impl<'sdl> !Sync for Video<'sdl>
impl<'sdl> Unpin for Video<'sdl>
impl<'sdl> !UnwindSafe for Video<'sdl>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more