pub struct EllipseShape {
pub center: Pos2,
pub radius: Vec2,
pub fill: Color32,
pub stroke: Stroke,
}Expand description
How to paint an ellipse.
Fields§
§center: Pos2§radius: Vec2Radius is the vector (a, b) where the width of the Ellipse is 2a and the height is 2b
fill: Color32§stroke: StrokeImplementations§
Trait Implementations§
Source§impl Clone for EllipseShape
impl Clone for EllipseShape
Source§fn clone(&self) -> EllipseShape
fn clone(&self) -> EllipseShape
Returns a duplicate 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 EllipseShape
impl Debug for EllipseShape
Source§impl<'de> Deserialize<'de> for EllipseShape
impl<'de> Deserialize<'de> for EllipseShape
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EllipseShape> for Shape
impl From<EllipseShape> for Shape
Source§fn from(shape: EllipseShape) -> Self
fn from(shape: EllipseShape) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EllipseShape
impl PartialEq for EllipseShape
Source§impl Serialize for EllipseShape
impl Serialize for EllipseShape
impl Copy for EllipseShape
impl StructuralPartialEq for EllipseShape
Auto Trait Implementations§
impl Freeze for EllipseShape
impl RefUnwindSafe for EllipseShape
impl Send for EllipseShape
impl Sync for EllipseShape
impl Unpin for EllipseShape
impl UnwindSafe for EllipseShape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more