mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Break out mod paint into new crate epaint
This commit is contained in:
@@ -19,7 +19,7 @@ impl Default for Painting {
|
||||
impl Painting {
|
||||
pub fn ui_control(&mut self, ui: &mut Ui) {
|
||||
ui.horizontal(|ui| {
|
||||
self.stroke.ui(ui, "Stroke");
|
||||
egui::stroke_ui(ui, &mut self.stroke, "Stroke");
|
||||
ui.separator();
|
||||
if ui.button("Clear Painting").clicked {
|
||||
self.lines.clear();
|
||||
|
||||
Reference in New Issue
Block a user