pub struct ChildBox {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
pub scale: f64,
}Expand description
Where a painter draws the child: its own box scaled about the wave’s
centre by scale = min(1, child_size / its longer edge), never up;
0 = kept in the tree but not painted (sm).
Fields§
§x: f64§y: f64§width: f64§height: f64§scale: f64Trait Implementations§
impl Copy for ChildBox
Source§impl<'de> Deserialize<'de> for ChildBox
impl<'de> Deserialize<'de> for ChildBox
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ChildBox
Auto Trait Implementations§
impl Freeze for ChildBox
impl RefUnwindSafe for ChildBox
impl Send for ChildBox
impl Sync for ChildBox
impl Unpin for ChildBox
impl UnsafeUnpin for ChildBox
impl UnwindSafe for ChildBox
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