pub struct Circle<'ui> { /* private fields */ }
Expand description
Represents a circle about to be drawn
Implementations§
Source§impl<'ui> Circle<'ui>
impl<'ui> Circle<'ui>
Sourcepub fn new<C>(
draw_list: &'ui DrawListMut<'_>,
center: impl Into<Vector2<f32>>,
radius: f32,
color: C,
) -> Circle<'ui>
pub fn new<C>( draw_list: &'ui DrawListMut<'_>, center: impl Into<Vector2<f32>>, radius: f32, color: C, ) -> Circle<'ui>
Typically constructed by DrawListMut::add_circle
Sourcepub fn num_segments(self, num_segments: u32) -> Circle<'ui>
pub fn num_segments(self, num_segments: u32) -> Circle<'ui>
Set number of segment used to draw the circle, default to 0. Add more segments if you want a smoother circle.
Sourcepub fn thickness(self, thickness: f32) -> Circle<'ui>
pub fn thickness(self, thickness: f32) -> Circle<'ui>
Set circle’s thickness (default to 1.0 pixel)
Auto Trait Implementations§
impl<'ui> Freeze for Circle<'ui>
impl<'ui> !RefUnwindSafe for Circle<'ui>
impl<'ui> !Send for Circle<'ui>
impl<'ui> !Sync for Circle<'ui>
impl<'ui> Unpin for Circle<'ui>
impl<'ui> !UnwindSafe for Circle<'ui>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more