Struct buffer_graphics_lib::shapes::collection::ShapeCollection
source · Implementations§
source§impl<K: Eq + PartialEq + Hash + Clone> ShapeCollection<K>
impl<K: Eq + PartialEq + Hash + Clone> ShapeCollection<K>
pub fn rects(&self) -> &HashMap<K, Drawable<Rect>>
pub fn lines(&self) -> &HashMap<K, Drawable<Line>>
pub fn circles(&self) -> &HashMap<K, Drawable<Circle>>
pub fn triangles(&self) -> &HashMap<K, Drawable<Triangle>>
pub fn polygons(&self) -> &HashMap<K, Drawable<Polygon>>
pub fn ellipses(&self) -> &HashMap<K, Drawable<Ellipse>>
pub fn render(&self, graphics: &mut Graphics<'_>)
pub fn remove_by_id(&mut self, key: &K)
source§impl<K: Eq + PartialEq + Hash + Clone> ShapeCollection<K>
impl<K: Eq + PartialEq + Hash + Clone> ShapeCollection<K>
pub fn with_translation<P: Into<Coord>>(&self, delta: P) -> Self
source§impl<K: Eq + PartialEq + Hash + Clone> ShapeCollection<K>
impl<K: Eq + PartialEq + Hash + Clone> ShapeCollection<K>
pub fn with_scale(&self, factor: f32) -> Self
source§impl<K: Eq + PartialEq + Hash + Clone> ShapeCollection<K>
impl<K: Eq + PartialEq + Hash + Clone> ShapeCollection<K>
pub fn with_rotation(&self, degrees: isize) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<K> RefUnwindSafe for ShapeCollection<K>where
K: RefUnwindSafe,
impl<K> Send for ShapeCollection<K>where
K: Send,
impl<K> Sync for ShapeCollection<K>where
K: Sync,
impl<K> Unpin for ShapeCollection<K>where
K: Unpin,
impl<K> UnwindSafe for ShapeCollection<K>where
K: UnwindSafe,
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()
.