pub struct ArrangeCtx { /* private fields */ }Implementations§
Source§impl ArrangeCtx
impl ArrangeCtx
pub const fn window_id(&self) -> WindowId
pub const fn widget_id(&self) -> WidgetId
pub const fn presentation_transform(&self) -> Transform
Sourcepub fn observe<T, O>(&self, observable: &O) -> Twhere
O: Observable<T> + ?Sized,
pub fn observe<T, O>(&self, observable: &O) -> Twhere
O: Observable<T> + ?Sized,
Read an observable whose changes affect arrangement.
Sourcepub fn observe_with<T, O>(&self, observable: &O, kind: InvalidationKind) -> Twhere
O: Observable<T> + ?Sized,
pub fn observe_with<T, O>(&self, observable: &O, kind: InvalidationKind) -> Twhere
O: Observable<T> + ?Sized,
Read an observable and explicitly declare the resulting invalidation.
pub const fn dpi(&self) -> DpiInfo
pub const fn current_time(&self) -> f64
pub fn request(&mut self, request: InvalidationRequest)
pub fn request_measure(&mut self)
pub fn request_arrange(&mut self)
pub fn request_ordering(&mut self)
pub fn request_paint(&mut self)
pub fn request_semantics(&mut self)
pub fn request_transform(&mut self)
Sourcepub fn request_animation_frame(&mut self)
pub fn request_animation_frame(&mut self)
Schedule an animation frame for this widget after arrangement.
This is useful for retained layout transitions, which discover their new destination during arrange rather than during event delivery.
pub fn invalidations(&self) -> &[InvalidationRequest]
Trait Implementations§
Source§impl Clone for ArrangeCtx
impl Clone for ArrangeCtx
Auto Trait Implementations§
impl !Send for ArrangeCtx
impl !Sync for ArrangeCtx
impl Freeze for ArrangeCtx
impl RefUnwindSafe for ArrangeCtx
impl Unpin for ArrangeCtx
impl UnsafeUnpin for ArrangeCtx
impl UnwindSafe for ArrangeCtx
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