diff --git a/egui/src/context.rs b/egui/src/context.rs index cd36d31c..2463fa1c 100644 --- a/egui/src/context.rs +++ b/egui/src/context.rs @@ -18,19 +18,28 @@ struct PaintStats { num_triangles: usize, } -// TODO: too many mutexes. Maybe put it all behind one Mutex instead. -/// Contains the input, style and output of all GUI commands. -/// `Ui`:s keep an Arc pointer to this. +#[derive(Clone, Debug, Default)] +struct Options { + /// The default style for new `Ui`:s. + style: Arc