Struct arcdps_imgui::draw_list::BezierCurve
source · pub struct BezierCurve<'ui> { /* private fields */ }
Expand description
Represents a Bezier curve about to be drawn
Implementations§
source§impl<'ui> BezierCurve<'ui>
impl<'ui> BezierCurve<'ui>
sourcepub fn new<C>(
draw_list: &'ui DrawListMut<'_>,
pos0: [f32; 2],
cp0: [f32; 2],
cp1: [f32; 2],
pos1: [f32; 2],
c: C
) -> Self
pub fn new<C>( draw_list: &'ui DrawListMut<'_>, pos0: [f32; 2], cp0: [f32; 2], cp1: [f32; 2], pos1: [f32; 2], c: C ) -> Self
Typically constructed by DrawListMut::add_bezier_curve
sourcepub fn num_segments(self, num_segments: u32) -> Self
pub fn num_segments(self, num_segments: u32) -> Self
Set number of segments used to draw the Bezier curve. If not set, the bezier curve is auto-tessalated.
Auto Trait Implementations§
impl<'ui> Freeze for BezierCurve<'ui>
impl<'ui> !RefUnwindSafe for BezierCurve<'ui>
impl<'ui> !Send for BezierCurve<'ui>
impl<'ui> !Sync for BezierCurve<'ui>
impl<'ui> Unpin for BezierCurve<'ui>
impl<'ui> !UnwindSafe for BezierCurve<'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