Struct buffer_graphics_lib::drawable::Drawable
source · pub struct Drawable<T: Clone> { /* private fields */ }
Expand description
Represents a shape that is made of points that can be drawn either as a outline or solid
Implementations§
source§impl<T: Clone> Drawable<T>
impl<T: Clone> Drawable<T>
pub fn with_draw_type(&self, draw_type: DrawType) -> Drawable<T>
source§impl<T> Drawable<T>where
Self: CreateDrawable<T>,
T: Shape + Clone,
impl<T> Drawable<T>where Self: CreateDrawable<T>, T: Shape + Clone,
pub fn with_translation<P: Into<Coord>>(&self, delta: P) -> Drawable<T>
pub fn with_move<P: Into<Coord>>(&self, xy: P) -> Drawable<T>
pub fn with_scale(&self, scale: f32) -> Drawable<T>
pub fn with_scale_around<P: Into<Coord>>( &self, scale: f32, point: P ) -> Drawable<T>
pub fn with_rotation(&self, degrees: isize) -> Drawable<T>
pub fn with_rotation_around<P: Into<Coord>>( &self, degrees: isize, point: P ) -> Drawable<T>
Trait Implementations§
source§impl<T: PartialEq + Clone> PartialEq<Drawable<T>> for Drawable<T>
impl<T: PartialEq + Clone> PartialEq<Drawable<T>> for Drawable<T>
impl<T: Eq + Clone> Eq for Drawable<T>
impl<T: Clone> StructuralEq for Drawable<T>
impl<T: Clone> StructuralPartialEq for Drawable<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Drawable<T>where T: RefUnwindSafe,
impl<T> Send for Drawable<T>where T: Send,
impl<T> Sync for Drawable<T>where T: Sync,
impl<T> Unpin for Drawable<T>where T: Unpin,
impl<T> UnwindSafe for Drawable<T>where T: UnwindSafe,
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