1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Add a bunch of TODOs

This commit is contained in:
Emil Ernerfeldt
2020-04-29 21:58:41 +02:00
parent 4c79064760
commit bf59455097
6 changed files with 12 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ pub use text_edit::*;
/// Anything implementing Widget can be added to a Region with Region::add
pub trait Widget {
// TODO: rename .ui(
fn add_to(self, region: &mut Region) -> GuiResponse;
}
@@ -316,6 +317,7 @@ type SliderGetSet<'a> = Box<dyn 'a + FnMut(Option<f32>) -> f32>;
pub struct Slider<'a> {
get_set_value: SliderGetSet<'a>,
range: RangeInclusive<f32>,
// TODO: label: Option<Label>
text: Option<String>,
precision: usize,
text_color: Option<Color>,