pub struct StyleCx<'a> { /* private fields */ }
Implementations§
source§impl<'a> StyleCx<'a>
impl<'a> StyleCx<'a>
sourcepub fn style_view(&mut self, view: &mut dyn View)
pub fn style_view(&mut self, view: &mut dyn View)
Internal method used by Floem to compute the styles for the view.
pub fn now(&self) -> Instant
pub fn save(&mut self)
pub fn restore(&mut self)
pub fn get_prop<P: StyleProp>(&self, _prop: P) -> Option<P::Type>
pub fn style(&self) -> Style
pub fn direct_style(&self) -> &Style
pub fn indirect_style(&self) -> &Style
pub fn request_transition(&mut self)
pub fn app_state_mut(&mut self) -> &mut AppState
pub fn app_state(&self) -> &AppState
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for StyleCx<'a>
impl<'a> !Send for StyleCx<'a>
impl<'a> !Sync for StyleCx<'a>
impl<'a> Unpin for StyleCx<'a>
impl<'a> !UnwindSafe for StyleCx<'a>
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