pub struct TextInputUtil { /* private fields */ }
Expand description
Text input utility functions. Access with VideoSubsystem::text_input()
.
These functions require the video subsystem to be initialized and are not thread-safe.
let sdl_context = sdl3::init().unwrap();
let video_subsystem = sdl_context.video().unwrap();
let window = video_subsystem.window("Example", 800, 600).build().unwrap();
// Start accepting text input events...
video_subsystem.text_input().start(&window);
Implementations§
Source§impl TextInputUtil
impl TextInputUtil
pub fn start(&self, window: &Window)
pub fn is_active(&self, window: &Window) -> bool
pub fn stop(&self, window: &Window)
pub fn set_rect(&self, window: Window, rect: Rect, cursor: i32)
pub fn has_screen_keyboard_support(&self) -> bool
pub fn is_screen_keyboard_shown(&self, window: &Window) -> bool
Auto Trait Implementations§
impl Freeze for TextInputUtil
impl RefUnwindSafe for TextInputUtil
impl !Send for TextInputUtil
impl !Sync for TextInputUtil
impl Unpin for TextInputUtil
impl UnwindSafe for TextInputUtil
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