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 Uiwhere
*const u8 is !null: Freeze,
PhantomData<u64>: Freeze,
PhantomData<(u64, usize)>: Freeze,
PhantomData<(u64, ScrollPhysics)>: Freeze,
PhantomData<(u64, (CheckState, CheckState))>: Freeze,
PhantomData<(u64, ())>: Freeze,
PhantomData<((u64, u8), Track)>: Freeze,
PhantomData<((u64, u8), (Tween, u64))>: Freeze,
PhantomData<((u64, u8), (f64, u64))>: Freeze,
PhantomData<((u64, u32), Ink)>: Freeze,
PhantomData<SemanticNode>: Freeze,
PhantomData<(u64, f32)>: Freeze,
PhantomData<(Arc<str>, CachedText)>: Freeze,
PhantomData<DrawCommand>: Freeze,
impl Move for Ui
impl RefUnwindSafe for Ui
impl Send for Uiwhere
RawVecInner: Send,
RawTable<(u64, usize)>: Send,
RawTable<(u64, ScrollPhysics)>: Send,
RawTable<(u64, (CheckState, CheckState))>: Send,
RawTable<(u64, ())>: Send,
RawTable<((u64, u8), Track)>: Send,
RawTable<((u64, u8), (Tween, u64))>: Send,
RawTable<((u64, u8), (f64, u64))>: Send,
RawTable<((u64, u32), Ink)>: Send,
Arc<str>: Send,
RawTable<(u64, f32)>: Send,
RawTable<(Arc<str>, CachedText)>: Send,
Arc<[u8]>: Send,
impl Sync for Uiwhere
RawVecInner: Sync,
RawTable<(u64, usize)>: Sync,
RawTable<(u64, ScrollPhysics)>: Sync,
RawTable<(u64, (CheckState, CheckState))>: Sync,
RawTable<(u64, ())>: Sync,
RawTable<((u64, u8), Track)>: Sync,
RawTable<((u64, u8), (Tween, u64))>: Sync,
RawTable<((u64, u8), (f64, u64))>: Sync,
RawTable<((u64, u32), Ink)>: Sync,
Arc<str>: Sync,
RawTable<(u64, f32)>: Sync,
RawTable<(Arc<str>, CachedText)>: Sync,
Arc<[u8]>: Sync,
impl Unpin for Ui
impl UnsafeUnpin for Uiwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
PhantomData<(u64, usize)>: UnsafeUnpin,
PhantomData<(u64, ScrollPhysics)>: UnsafeUnpin,
PhantomData<(u64, (CheckState, CheckState))>: UnsafeUnpin,
PhantomData<(u64, ())>: UnsafeUnpin,
PhantomData<((u64, u8), Track)>: UnsafeUnpin,
PhantomData<((u64, u8), (Tween, u64))>: UnsafeUnpin,
PhantomData<((u64, u8), (f64, u64))>: UnsafeUnpin,
PhantomData<((u64, u32), Ink)>: UnsafeUnpin,
PhantomData<SemanticNode>: UnsafeUnpin,
PhantomData<(u64, f32)>: UnsafeUnpin,
PhantomData<(Arc<str>, CachedText)>: UnsafeUnpin,
PhantomData<DrawCommand>: UnsafeUnpin,
impl UnwindSafe for Uiwhere
RawVecInner: UnwindSafe,
HashMap<u64, usize>: UnwindSafe,
HashMap<u64, ScrollPhysics>: UnwindSafe,
HashMap<u64, (CheckState, CheckState)>: UnwindSafe,
NonNull<u8>: UnwindSafe,
HashMap<(u64, u8), Track>: UnwindSafe,
HashMap<(u64, u8), (Tween, u64)>: UnwindSafe,
HashMap<(u64, u8), (f64, u64)>: UnwindSafe,
HashMap<(u64, u32), Ink>: UnwindSafe,
Arc<str>: UnwindSafe,
HashMap<u64, f32>: UnwindSafe,
HashMap<Arc<str>, CachedText>: UnwindSafe,
Arc<[u8]>: UnwindSafe,
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