Struct arcdps_imgui::draw_list::Circle
source · 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: [f32; 2],
radius: f32,
color: C,
) -> Self
pub fn new<C>( draw_list: &'ui DrawListMut<'_>, center: [f32; 2], radius: f32, color: C, ) -> Self
Typically constructed by DrawListMut::add_circle
sourcepub fn num_segments(self, num_segments: u32) -> Self
pub fn num_segments(self, num_segments: u32) -> Self
Set number of segment used to draw the circle, default to 0. Add more segments if you want a smoother circle.
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