pub struct CompositionSpriteShape(/* private fields */);Expand description
A shape that fills a geometry with a Brush.
Implementations§
Source§impl CompositionSpriteShape
impl CompositionSpriteShape
Sourcepub fn set_fill_brush(&self, brush: &impl Brush)
pub fn set_fill_brush(&self, brush: &impl Brush)
Sets the brush used to fill the shape’s geometry.
Sourcepub fn set_offset(&self, offset: Vector2)
pub fn set_offset(&self, offset: Vector2)
Sets the shape’s offset from its parent, in DIPs.
Trait Implementations§
Source§impl Clone for CompositionSpriteShape
impl Clone for CompositionSpriteShape
Source§fn clone(&self) -> CompositionSpriteShape
fn clone(&self) -> CompositionSpriteShape
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 moreSource§impl Shape for CompositionSpriteShape
impl Shape for CompositionSpriteShape
Source§fn as_shape(&self) -> CompositionShape
fn as_shape(&self) -> CompositionShape
Returns this shape as the shared
CompositionShape base type.Auto Trait Implementations§
impl Freeze for CompositionSpriteShape
impl RefUnwindSafe for CompositionSpriteShape
impl Send for CompositionSpriteShape
impl Sync for CompositionSpriteShape
impl Unpin for CompositionSpriteShape
impl UnsafeUnpin for CompositionSpriteShape
impl UnwindSafe for CompositionSpriteShape
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