pub struct Composite {
pub id: Option<NodeId>,
pub style: CompositeStyle,
pub child: Box<Node>,
}Fields§
§id: Option<NodeId>§style: CompositeStyle§child: Box<Node>Implementations§
Source§impl Composite
impl Composite
pub fn new(child: Node) -> Self
pub fn opacity(self, value: f32) -> Self
pub fn animated_opacity(self, target: WidgetNodeId, base: f32) -> Self
pub fn translate_x(self, value: f32) -> Self
pub fn animated_translate_x(self, target: WidgetNodeId, base: f32) -> Self
pub fn translate_y(self, value: f32) -> Self
pub fn animated_translate_y(self, target: WidgetNodeId, base: f32) -> Self
pub fn scale(self, value: f32) -> Self
pub fn animated_scale(self, target: WidgetNodeId, base: f32) -> Self
pub fn rotation(self, value: f32) -> Self
pub fn animated_rotation(self, target: WidgetNodeId, base: f32) -> Self
pub fn clip_to_bounds(self, clip: bool) -> Self
pub fn repaint_boundary(self, enabled: bool) -> Self
pub fn into_node(self) -> Node
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Composite
impl<'de> Deserialize<'de> for Composite
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
Auto Trait Implementations§
impl Freeze for Composite
impl !RefUnwindSafe for Composite
impl Send for Composite
impl Sync for Composite
impl Unpin for Composite
impl UnsafeUnpin for Composite
impl !UnwindSafe for Composite
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.