pub struct ShapeCollection { /* private fields */ }
Implementations§
Source§impl ShapeCollection
impl ShapeCollection
pub fn with_draw_type(&self, draw_type: DrawType) -> ShapeCollection
Source§impl ShapeCollection
impl ShapeCollection
pub fn with_translation<P: Into<Coord>>(&self, delta: P) -> ShapeCollection
pub fn with_move<P: Into<Coord>>(&self, xy: P) -> ShapeCollection
Source§impl ShapeCollection
impl ShapeCollection
pub fn with_scale(&self, scale: f32) -> ShapeCollection
Source§impl ShapeCollection
impl ShapeCollection
pub fn with_rotation(&self, degrees: isize) -> ShapeCollection
Source§impl ShapeCollection
impl ShapeCollection
pub fn with_scale_around<P: Into<Coord>>( &self, scale: f32, center: P, ) -> ShapeCollection
Source§impl ShapeCollection
impl ShapeCollection
pub fn with_rotation_around<P: Into<Coord>>( &self, degrees: isize, center: P, ) -> ShapeCollection
Source§impl ShapeCollection
impl ShapeCollection
pub fn iter(&self) -> Iter<'_, Drawable<ShapeBox>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn remove(&mut self, idx: usize) -> Drawable<ShapeBox>
pub fn bounds(&self) -> &Rect
pub fn left(&self) -> isize
pub fn top(&self) -> isize
pub fn bottom(&self) -> isize
pub fn right(&self) -> isize
pub fn center(&self) -> Coord
Trait Implementations§
Source§impl Clone for ShapeCollection
impl Clone for ShapeCollection
Source§fn clone(&self) -> ShapeCollection
fn clone(&self) -> ShapeCollection
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ShapeCollection
impl Debug for ShapeCollection
Source§impl Default for ShapeCollection
impl Default for ShapeCollection
Source§impl<'de> Deserialize<'de> for ShapeCollection
impl<'de> Deserialize<'de> for ShapeCollection
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
Source§impl InsertDrawable<ShapeBox> for ShapeCollection
impl InsertDrawable<ShapeBox> for ShapeCollection
Source§impl<S: Shape> InsertShape<S> for ShapeCollection
impl<S: Shape> InsertShape<S> for ShapeCollection
Source§impl InsertShapeBox for ShapeCollection
impl InsertShapeBox for ShapeCollection
Source§impl PartialEq for ShapeCollection
impl PartialEq for ShapeCollection
Source§impl Renderable<ShapeCollection> for ShapeCollection
impl Renderable<ShapeCollection> for ShapeCollection
Source§impl Serialize for ShapeCollection
impl Serialize for ShapeCollection
impl StructuralPartialEq for ShapeCollection
Auto Trait Implementations§
impl Freeze for ShapeCollection
impl RefUnwindSafe for ShapeCollection
impl Send for ShapeCollection
impl Sync for ShapeCollection
impl Unpin for ShapeCollection
impl UnwindSafe for ShapeCollection
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