pub struct ContainerFrame {
pub transform: Transform2<NodeLocal>,
pub bounds: (f64, f64),
}Expand description
Parent-local frame assigned by a container to one of its received children.
This behaves like a virtual wrapper node inside the parent: the frame’s transform is composed onto the parent transform and its bounds become the child container bounds.
Fields§
§transform: Transform2<NodeLocal>§bounds: (f64, f64)Trait Implementations§
Source§impl Clone for ContainerFrame
impl Clone for ContainerFrame
Source§fn clone(&self) -> ContainerFrame
fn clone(&self) -> ContainerFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContainerFrame
Source§impl Debug for ContainerFrame
impl Debug for ContainerFrame
Source§impl Default for ContainerFrame
impl Default for ContainerFrame
Source§fn default() -> ContainerFrame
fn default() -> ContainerFrame
Returns the “default value” for a type. Read more
Source§impl Interpolatable for ContainerFrame
impl Interpolatable for ContainerFrame
Source§fn interpolate(&self, other: &ContainerFrame, t: f64) -> ContainerFrame
fn interpolate(&self, other: &ContainerFrame, t: f64) -> ContainerFrame
Source§impl PartialEq for ContainerFrame
impl PartialEq for ContainerFrame
impl StructuralPartialEq for ContainerFrame
Auto Trait Implementations§
impl Freeze for ContainerFrame
impl RefUnwindSafe for ContainerFrame
impl Send for ContainerFrame
impl Sync for ContainerFrame
impl Unpin for ContainerFrame
impl UnsafeUnpin for ContainerFrame
impl UnwindSafe for ContainerFrame
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> PropertyValue for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.