1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Add a bunch of TODOs

This commit is contained in:
Emil Ernerfeldt
2020-04-21 10:27:53 +02:00
parent cac5352ad7
commit b89ab7aa3f
3 changed files with 35 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ struct Stats {
}
/// Encapsulates input, layout and painting for ease of use.
/// TODO: merge into Context
pub struct Emigui {
pub last_input: RawInput,
pub ctx: Arc<Context>,

View File

@@ -5,6 +5,8 @@ use crate::{mesher::Path, widgets::*, *};
#[derive(Clone, Copy, Debug)]
pub struct WindowState {
/// Last known pos/size
/// TODO: replace with outer_pos and inner_rect
/// so we can change style without content resizing.
pub rect: Rect,
}
@@ -93,6 +95,7 @@ impl Window {
state.rect.size() - 2.0 * window_padding,
);
let mut contents_region = Region::new(ctx.clone(), layer, id, inner_rect);
// TODO: handle contents_region.clip_rect while resizing
// Show top bar:
contents_region.add(Label::new(self.title).text_style(TextStyle::Heading));