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.