1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -04:00

Add todos

This commit is contained in:
lucasmerlin
2025-03-20 13:05:45 +01:00
parent 4dbf20d107
commit f017e226e4

View File

@@ -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,