pub struct Circle {
pub x: f32,
pub y: f32,
pub radius: f32,
pub style: Style,
}
Expand description
<circle cx="{x}" cy="{y}" r="{radius}" .../>
Fields§
§x: f32
§y: f32
§radius: f32
§style: Style
Implementations§
source§impl Circle
impl Circle
pub fn fill<F>(self, fill: F) -> Self
pub fn stroke<S>(self, stroke: S) -> Self
pub fn style(self, style: Style) -> Self
pub fn opacity(self, opacity: f32) -> Self
pub fn stroke_opacity(self, opacity: f32) -> Self
pub fn offset(self, dx: f32, dy: f32) -> Self
pub fn inflate(self, by: f32) -> Self
Trait Implementations§
source§impl PartialEq for Circle
impl PartialEq for Circle
impl Copy for Circle
impl StructuralPartialEq for Circle
Auto Trait Implementations§
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
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