Struct buffer_graphics_lib::shapes::collection::ShapeCollection
source · pub struct ShapeCollection { /* private fields */ }
Implementations§
source§impl ShapeCollection
impl ShapeCollection
pub fn with_translation<P: Into<Coord>>(&self, delta: P) -> ShapeCollection
source§impl ShapeCollection
impl 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 insert(&mut self, idx: usize, element: ShapeBox)
pub fn insert_under(&mut self, element: ShapeBox)
pub fn insert_above(&mut self, element: ShapeBox)
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§fn default() -> ShapeCollection
fn default() -> ShapeCollection
Returns the “default value” for a type. Read more
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§
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.