pub struct Circle {
pub x: f32,
pub y: f32,
pub radius: f32,
pub style: Style,
pub comment: Option<Comment>,
}
Expand description
<circle cx="{x}" cy="{y}" r="{radius}" .../>
Fields§
§x: f32
§y: f32
§radius: f32
§style: Style
§comment: Option<Comment>
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
pub fn comment(self, text: &str) -> Self
Trait Implementations§
impl StructuralPartialEq for Circle
Auto Trait Implementations§
impl Freeze for Circle
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
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
)