Struct nze_game_sdl::ContextSdl
source · pub struct ContextSdl { /* private fields */ }
Expand description
This holds ownership of many sdl types that are required for being able to use it, but the context will not be changed after creation. It is created by DrawingArea.
This must be passed to crate::Render and crate::input::Controls to create them
Implementations§
source§impl ContextSdl
impl ContextSdl
sourcepub fn set_text_input(&mut self, is_enabled: bool)
pub fn set_text_input(&mut self, is_enabled: bool)
enable text input so that the Control.input
get character function will return typed characters
sourcepub fn is_text_input_enabled(&self) -> bool
pub fn is_text_input_enabled(&self) -> bool
returns whether typing to keyboard for text input is enabled