mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Add todos
This commit is contained in:
@@ -3,6 +3,7 @@ use emath::{Align2, Vec2};
|
|||||||
use epaint::Galley;
|
use epaint::Galley;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
/// Naming: AtimicItem
|
||||||
enum WidgetLayoutItemType<'a> {
|
enum WidgetLayoutItemType<'a> {
|
||||||
Text(WidgetText),
|
Text(WidgetText),
|
||||||
Image(Image<'a>),
|
Image(Image<'a>),
|
||||||
@@ -40,7 +41,9 @@ impl SizedWidgetLayoutItemType<'_> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// AtomicLayout
|
||||||
struct WidgetLayout<'a> {
|
struct WidgetLayout<'a> {
|
||||||
|
/// TODO: SmallVec?
|
||||||
items: Vec<(Item, WidgetLayoutItemType<'a>)>,
|
items: Vec<(Item, WidgetLayoutItemType<'a>)>,
|
||||||
gap: f32,
|
gap: f32,
|
||||||
frame: Frame,
|
frame: Frame,
|
||||||
|
|||||||
Reference in New Issue
Block a user