Struct piston_window::Ellipse
source · Expand description
An ellipse with filled color
Fields
color: [f32; 4]
The ellipse color
border: Option<Border>
The ellipse border
resolution: u32
The resolution for the shape, 360 degrees.
Implementations
sourceimpl Ellipse
impl Ellipse
sourcepub fn maybe_border(self, value: Option<Border>) -> Ellipse
pub fn maybe_border(self, value: Option<Border>) -> Ellipse
Sets optional ellipse border.
sourcepub fn resolution(self, value: u32) -> Ellipse
pub fn resolution(self, value: u32) -> Ellipse
Sets resolution of the ellipse smoothness.
sourcepub fn draw_from_to<P, G>(
&self,
from: P,
to: P,
draw_state: &DrawState,
transform: [[f64; 3]; 2],
g: &mut G
)where
P: Into<[f64; 2]>,
G: Graphics,
pub fn draw_from_to<P, G>(
&self,
from: P,
to: P,
draw_state: &DrawState,
transform: [[f64; 3]; 2],
g: &mut G
)where
P: Into<[f64; 2]>,
G: Graphics,
Draws ellipse by corners using default method.
Trait Implementations
sourceimpl Colored for Ellipse
impl Colored for Ellipse
impl Copy 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more