Struct 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: impl Into<Vector2<f32>>,
cp0: impl Into<Vector2<f32>>,
cp1: impl Into<Vector2<f32>>,
pos1: impl Into<Vector2<f32>>,
c: C
) -> Selfwhere
C: Into<ImColor32>,
pub fn new<C>( draw_list: &'ui DrawListMut<'_>, pos0: impl Into<Vector2<f32>>, cp0: impl Into<Vector2<f32>>, cp1: impl Into<Vector2<f32>>, pos1: impl Into<Vector2<f32>>, c: C ) -> Selfwhere C: Into<ImColor32>,
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.