pub struct RenderTransformProps {
pub layout: LayoutStyle,
pub transform: Transform2D,
}Expand description
Render transform wrapper for declarative element subtrees.
This applies Widget::render_transform(...) for the subtree rooted at this element:
- Paint and hit-testing are both transformed.
- Pointer event coordinates are mapped through the inverse transform (when invertible).
- Layout bounds remain authoritative (this is not a layout transform).
This is useful for interactive translations (e.g. drag-to-dismiss surfaces) that must keep input aligned with the rendered output.
Fields§
§layout: LayoutStyle§transform: Transform2DTrait Implementations§
Source§impl Clone for RenderTransformProps
impl Clone for RenderTransformProps
Source§fn clone(&self) -> RenderTransformProps
fn clone(&self) -> RenderTransformProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderTransformProps
impl Debug for RenderTransformProps
Source§impl Default for RenderTransformProps
impl Default for RenderTransformProps
Source§fn default() -> RenderTransformProps
fn default() -> RenderTransformProps
Returns the “default value” for a type. Read more
impl Copy for RenderTransformProps
Auto Trait Implementations§
impl Freeze for RenderTransformProps
impl RefUnwindSafe for RenderTransformProps
impl Send for RenderTransformProps
impl Sync for RenderTransformProps
impl Unpin for RenderTransformProps
impl UnsafeUnpin for RenderTransformProps
impl UnwindSafe for RenderTransformProps
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