Struct buffer_graphics_lib::shapes::collection::ShapeCollection
source · 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<'_, ShapeBox>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn remove(&mut self, idx: usize) -> ShapeBox
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<S: Clone> InsertDrawable<S> for ShapeCollectionwhere
ShapeBox: FromDrawable<S>,
impl<S: Clone> InsertDrawable<S> for ShapeCollectionwhere ShapeBox: FromDrawable<S>,
source§impl<S> InsertShape<S> for ShapeCollectionwhere
ShapeBox: FromShape<S>,
impl<S> InsertShape<S> for ShapeCollectionwhere ShapeBox: FromShape<S>,
source§impl InsertShapeBox for ShapeCollection
impl InsertShapeBox for ShapeCollection
source§impl Renderable<ShapeCollection> for ShapeCollection
impl Renderable<ShapeCollection> for ShapeCollection
Auto Trait Implementations§
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