pub struct Ui {
pub theme: Theme,
pub text_metrics: TextMetrics,
pub viewport: Option<Rect>,
pub high_contrast: bool,
pub ripple_style: RippleStyle,
pub motion_preference: MotionPreference,
pub motion_scheme: MotionScheme,
/* private fields */
}Fields§
§theme: Theme§text_metrics: TextMetrics§viewport: Option<Rect>Optional full render viewport, distinct from the padded content layout bounds.
high_contrast: bool§ripple_style: RippleStyle§motion_preference: MotionPreference§motion_scheme: MotionSchemeImplementations§
Source§impl Ui
impl Ui
pub fn needs_redraw(&self) -> bool
pub fn next_wakeup(&self) -> Option<f64>
pub fn semantics(&self) -> &[SemanticNode]
pub fn pause_animations(&mut self)
pub fn has_escape_target(&self) -> bool
pub fn focused(&self) -> Option<u64>
Sourcepub fn adapter_focus(&mut self, id: Option<u64>)
pub fn adapter_focus(&mut self, id: Option<u64>)
Transfer focus from a host editing adapter to an enabled control from the last frame.
Sourcepub fn accessibility_focus(&mut self, id: Option<u64>)
pub fn accessibility_focus(&mut self, id: Option<u64>)
Transfer focus from a keyboard or assistive-technology control, retaining the visible keyboard focus treatment. Unknown or disabled IDs clear focus.
pub fn cached_text_bytes(&self) -> usize
pub fn retained_motion_properties(&self) -> usize
pub fn frame( &mut self, input: Input, bounds: Rect, gap: f32, build: impl FnOnce(&mut Frame<'_>), ) -> Vec<DrawCommand>
pub fn frame_into( &mut self, input: Input, bounds: Rect, gap: f32, commands: &mut Vec<DrawCommand>, build: impl FnOnce(&mut Frame<'_>), )
Trait Implementations§
Auto Trait Implementations§
impl Forget for Ui
impl Freeze for Ui
impl Move for Ui
impl RefUnwindSafe for Ui
impl Send for Ui
impl Sync for Ui
impl Unpin for Ui
impl UnsafeUnpin for Ui
impl UnwindSafe for Ui
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