pub struct NodeVisual {
pub opacity: f32,
pub translate: Vec2,
pub scale: Vec2,
pub rotation_degrees: f32,
}Expand description
How a box and its subtree are drawn after layout.
Fields§
§opacity: f32Group opacity, in 0..=1.
translate: Vec2Offset, a fraction of the picture’s shorter side.
scale: Vec2Per-axis scale about the border-box centre.
rotation_degrees: f32Clockwise rotation about the border-box centre, in degrees.
Trait Implementations§
Source§impl Clone for NodeVisual
impl Clone for NodeVisual
impl Copy for NodeVisual
Source§impl Debug for NodeVisual
impl Debug for NodeVisual
Source§impl PartialEq for NodeVisual
impl PartialEq for NodeVisual
impl StructuralPartialEq for NodeVisual
Auto Trait Implementations§
impl Freeze for NodeVisual
impl RefUnwindSafe for NodeVisual
impl Send for NodeVisual
impl Sync for NodeVisual
impl Unpin for NodeVisual
impl UnsafeUnpin for NodeVisual
impl UnwindSafe for NodeVisual
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