pub struct ViewHandle { /* private fields */ }Expand description
Platform-specific implementation of the view handle trait that can be used to execute imperative code against a view.
Trait Implementations§
Source§impl Animatable for ViewHandle
impl Animatable for ViewHandle
Source§type CommandBuffer = CommandBuffer
type CommandBuffer = CommandBuffer
This is the command buffer that this object can piggy-back on.
Source§fn animate<F>(&mut self, animations: F)
fn animate<F>(&mut self, animations: F)
This function should invoke the given callback with a mutable reference
to (a new instance of) this object’s animator.
Source§fn animate_with_buffer<F>(&mut self, buffer: &mut CommandBuffer, animations: F)
fn animate_with_buffer<F>(&mut self, buffer: &mut CommandBuffer, animations: F)
This function should invoke the given callback with a mutable reference
to (a new instance of) this object’s animator that piggy-backs on the
given command buffer. Explicitly passing a command buffer ensures that
the animations are started in the same UI event loop iteration as the
current render itself.
Source§impl ViewHandle for ViewHandle
impl ViewHandle for ViewHandle
Source§fn layout_guide(&self) -> LayoutGuide<f32>
fn layout_guide(&self) -> LayoutGuide<f32>
This function should return the layout guides of this view.
TODO: on what thread does this occur?
Source§fn size<F>(&self, callback: F)
fn size<F>(&self, callback: F)
This function should call the given callback with the size of this view.
Source§fn size_with_buffer<F>(&self, buffer: &mut CommandBuffer, callback: F)
fn size_with_buffer<F>(&self, buffer: &mut CommandBuffer, callback: F)
This function should call the given callback with the size of this view.
Explicitly passing a command buffer ensures that the dimensions are
measured in the same UI event loop iteration as the current render
itself.
Auto Trait Implementations§
impl Freeze for ViewHandle
impl !RefUnwindSafe for ViewHandle
impl !Send for ViewHandle
impl !Sync for ViewHandle
impl Unpin for ViewHandle
impl UnsafeUnpin for ViewHandle
impl !UnwindSafe for ViewHandle
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
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
Source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
Source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
Source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined range,
otherwise an
OutOfBounds error is returned which contains the unclamped color. Read more