diff --git a/src/window_draw_list.rs b/src/window_draw_list.rs index abc6a53..3a34f80 100644 --- a/src/window_draw_list.rs +++ b/src/window_draw_list.rs @@ -209,6 +209,19 @@ impl<'ui> WindowDrawList<'ui> { Circle::new(self, center, radius, color) } + /// Draw a text whose upper-left corner is at point `pos`. + pub fn add_text
(&self, pos: P, col: C, text: &str)
+ where
+ P: Into