mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Add a bunch of TODOs
This commit is contained in:
@@ -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>,
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user