pub struct UiState { /* private fields */ }Implementations§
Source§impl UiState
impl UiState
pub fn new() -> UiState
Sourcepub fn begin_frame(&mut self)
pub fn begin_frame(&mut self)
Rebuild widgets in back-to-front paint order; IDs preserve focus/capture.
pub fn add(&mut self, widget: Widget) -> Result<(), UiError>
Sourcepub fn end_frame(&mut self)
pub fn end_frame(&mut self)
Call after layout, before delivering input, to discard removed/disabled IDs.
pub fn focused(&self) -> Option<u64>
pub fn captured(&self) -> Option<u64>
pub fn hit_test(&self, point: [f32; 2]) -> Option<u64>
pub fn pointer_down(&mut self, point: [f32; 2]) -> Option<u64>
Sourcepub fn pointer_up(&mut self, point: [f32; 2]) -> Option<u64>
pub fn pointer_up(&mut self, point: [f32; 2]) -> Option<u64>
Click activates only when both press and release belong to the same widget.
pub fn cancel_pointer(&mut self)
pub fn focus_next(&mut self, reverse: bool) -> Option<u64>
pub fn activate_focused(&self) -> Option<u64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiState
impl RefUnwindSafe for UiState
impl Send for UiState
impl Sync for UiState
impl Unpin for UiState
impl UnwindSafe for UiState
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