Struct buffer_graphics_lib::prelude::Ellipse
source · pub struct Ellipse { /* private fields */ }
Implementations§
Trait Implementations§
source§impl FromDrawable<Ellipse> for ShapeBox
impl FromDrawable<Ellipse> for ShapeBox
source§impl PartialEq<Ellipse> for Ellipse
impl PartialEq<Ellipse> for Ellipse
source§impl Shape for Ellipse
impl Shape for Ellipse
source§fn from_points(points: &[Coord]) -> Ellipsewhere
Ellipse: Sized,
fn from_points(points: &[Coord]) -> Ellipsewhere Ellipse: Sized,
must be [top_left, bottom_right]
source§fn translate_by<P>(&self, delta: P) -> Ellipsewhere
P: Into<Coord>,
fn translate_by<P>(&self, delta: P) -> Ellipsewhere P: Into<Coord>,
change every point by +
delta
source§fn move_to<P>(&self, point: P) -> Ellipsewhere
P: Into<Coord>,
fn move_to<P>(&self, point: P) -> Ellipsewhere P: Into<Coord>,
moves the shapes first point to
point
(and changes every other point to match their original distance and angle) Read moresource§fn contains<P>(&self, point: P) -> boolwhere
P: Into<Coord>,
fn contains<P>(&self, point: P) -> boolwhere P: Into<Coord>,
returns true if the shape contains point
source§fn outline_pixels(&self) -> Vec<Coord, Global>
fn outline_pixels(&self) -> Vec<Coord, Global>
the coords for drawing the shape outline, the points may be in any order
this should be cached rather than called per frame
source§fn filled_pixels(&self) -> Vec<Coord, Global>
fn filled_pixels(&self) -> Vec<Coord, Global>
the coords for drawing the filled shape, the points may be in any order
this should be cached rather than called per frame
source§fn move_center_to<P>(&self, point: P) -> Selfwhere
P: Into<Coord>,
Self: Sized,
fn move_center_to<P>(&self, point: P) -> Selfwhere P: Into<Coord>, Self: Sized,
moves the shapes center to
point
(and changes every other point to match their original distance and angle) Read moresource§fn rotate_around<P>(&self, degrees: isize, point: P) -> Selfwhere
P: Into<Coord>,
Self: Sized,
fn rotate_around<P>(&self, degrees: isize, point: P) -> Selfwhere P: Into<Coord>, Self: Sized,
rotate shape around a point
impl Eq for Ellipse
impl StructuralEq for Ellipse
impl StructuralPartialEq for Ellipse
Auto Trait Implementations§
impl RefUnwindSafe for Ellipse
impl Send for Ellipse
impl Sync for Ellipse
impl Unpin for Ellipse
impl UnwindSafe for Ellipse
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