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: Vec2
Radius is the vector (a, b) where the width of the Ellipse is 2a and the height is 2b
fill: Color32
§stroke: Stroke
Implementations§
Trait Implementations§
Source§impl Clone for EllipseShape
impl Clone for EllipseShape
Source§fn clone(&self) -> EllipseShape
fn clone(&self) -> EllipseShape
Returns a copy 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