Struct epaint::shape::EllipseShape
source · 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 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
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)