mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 14:49:06 -04:00
Fmt
This commit is contained in:
@@ -297,10 +297,8 @@ impl<'a> AtomLayout<'a> {
|
||||
|
||||
if let Some((index, item)) = shrink_item {
|
||||
// The `shrink` item gets the remaining space
|
||||
let available_size_for_shrink_item = Vec2::new(
|
||||
available_inner_size.x - inner_width,
|
||||
available_inner_size.y,
|
||||
);
|
||||
let available_size_for_shrink_item =
|
||||
Vec2::new(available_inner_size.x - inner_width, available_inner_size.y);
|
||||
|
||||
let sized = item.into_sized(
|
||||
ui,
|
||||
@@ -384,7 +382,6 @@ pub struct SizedAtomLayout<'a> {
|
||||
/// Set the fallback (default) text color.
|
||||
pub fallback_text_color: Color32,
|
||||
|
||||
|
||||
/// The intrinsic (un-wrapped, un-grown) size, including margin. Used for
|
||||
/// [`Response::set_intrinsic_size`].
|
||||
pub(crate) intrinsic_size: Vec2,
|
||||
|
||||
@@ -6,14 +6,9 @@ use std::sync::Arc;
|
||||
/// A sized [`crate::AtomKind`].
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum SizedAtomKind<'a> {
|
||||
Empty {
|
||||
size: Option<Vec2>,
|
||||
},
|
||||
Empty { size: Option<Vec2> },
|
||||
Text(Arc<Galley>),
|
||||
Image {
|
||||
image: Image<'a>,
|
||||
size: Vec2,
|
||||
},
|
||||
Image { image: Image<'a>, size: Vec2 },
|
||||
Layout(Box<SizedAtomLayout<'a>>),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user