Struct buffer_graphics_lib::shapes::collection::AutoShapeCollection
source · pub struct AutoShapeCollection { /* private fields */ }
Implementations§
source§impl AutoShapeCollection
impl AutoShapeCollection
pub fn rects(&self) -> &HashMap<usize, Drawable<Rect>>
pub fn lines(&self) -> &HashMap<usize, Drawable<Line>>
pub fn circles(&self) -> &HashMap<usize, Drawable<Circle>>
pub fn triangles(&self) -> &HashMap<usize, Drawable<Triangle>>
pub fn polygons(&self) -> &HashMap<usize, Drawable<Polygon>>
pub fn ellipses(&self) -> &HashMap<usize, Drawable<Ellipse>>
pub fn render(&self, graphics: &mut Graphics<'_>)
pub fn remove_by_id(&mut self, key: usize)
source§impl AutoShapeCollection
impl AutoShapeCollection
pub fn with_translation<P: Into<Coord>>(&self, delta: P) -> Self
source§impl AutoShapeCollection
impl AutoShapeCollection
pub fn with_scale(&self, factor: f32) -> Self
source§impl AutoShapeCollection
impl AutoShapeCollection
pub fn with_rotation(&self, degrees: isize) -> Self
source§impl AutoShapeCollection
impl AutoShapeCollection
pub fn with_rotation_around<P: Into<Coord>>(
&self,
degrees: isize,
center: P
) -> Self
source§impl AutoShapeCollection
impl AutoShapeCollection
pub fn with_scale_around<P: Into<Coord>>(&self, factor: f32, center: P) -> Self
Trait Implementations§
source§impl AutoAddShape<usize, Circle> for AutoShapeCollection
impl AutoAddShape<usize, Circle> for AutoShapeCollection
source§impl AutoAddShape<usize, Ellipse> for AutoShapeCollection
impl AutoAddShape<usize, Ellipse> for AutoShapeCollection
source§impl AutoAddShape<usize, Line> for AutoShapeCollection
impl AutoAddShape<usize, Line> for AutoShapeCollection
source§impl AutoAddShape<usize, Polygon> for AutoShapeCollection
impl AutoAddShape<usize, Polygon> for AutoShapeCollection
source§impl AutoAddShape<usize, Rect> for AutoShapeCollection
impl AutoAddShape<usize, Rect> for AutoShapeCollection
source§impl AutoAddShape<usize, Triangle> for AutoShapeCollection
impl AutoAddShape<usize, Triangle> for AutoShapeCollection
source§impl Debug for AutoShapeCollection
impl Debug for AutoShapeCollection
source§impl Default for AutoShapeCollection
impl Default for AutoShapeCollection
source§fn default() -> AutoShapeCollection
fn default() -> AutoShapeCollection
Returns the “default value” for a type. Read more
source§impl Renderable for AutoShapeCollection
impl Renderable for AutoShapeCollection
Auto Trait Implementations§
impl RefUnwindSafe for AutoShapeCollection
impl Send for AutoShapeCollection
impl Sync for AutoShapeCollection
impl Unpin for AutoShapeCollection
impl UnwindSafe for AutoShapeCollection
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()
.