diff --git a/imgui-examples/examples/draw_list.rs b/imgui-examples/examples/draw_list.rs index 3294114..bbf02e0 100644 --- a/imgui-examples/examples/draw_list.rs +++ b/imgui-examples/examples/draw_list.rs @@ -114,7 +114,7 @@ fn main() { [o[0] + 0.0, o[1] + 100.0], [o[0] + 0.0, o[1] + 0.0], ], - [1.0, 0.0, 1.0] + [1.0, 0.0, 1.0], ) .build(); @@ -128,7 +128,7 @@ fn main() { [o[0] + 120.0 + 0.0, o[1] + 100.0], [o[0] + 120.0 + 0.0, o[1] + 0.0], ], - [0.0, 1.0, 1.0] + [0.0, 1.0, 1.0], ) .filled(true) .build(); diff --git a/imgui/src/draw_list.rs b/imgui/src/draw_list.rs index d810f57..19b1b26 100644 --- a/imgui/src/draw_list.rs +++ b/imgui/src/draw_list.rs @@ -230,11 +230,7 @@ impl<'ui> DrawListMut<'ui> { /// polygon, if not filled is drawn as a line specified by /// [`PolyLine::thickness`] (default 1.0) #[doc(alias = "AddPolyline", alias = "AddConvexPolyFilled")] - pub fn add_polyline( - &'ui self, - points: Vec

, - c: C, - ) -> Polyline<'ui> + pub fn add_polyline(&'ui self, points: Vec

, c: C) -> Polyline<'ui> where C: Into, P: Into, @@ -516,11 +512,7 @@ pub struct Polyline<'ui> { } impl<'ui> Polyline<'ui> { - fn new( - draw_list: &'ui DrawListMut<'_>, - points: Vec

, - c: C, - ) -> Self + fn new(draw_list: &'ui DrawListMut<'_>, points: Vec

, c: C) -> Self where C: Into, P: Into, @@ -573,7 +565,6 @@ impl<'ui> Polyline<'ui> { } } - /// Represents a rectangle about to be drawn #[must_use = "should call .build() to draw the object"] pub struct Rect<'ui> {