pub struct TopToolbarConfig {
pub height: f32,
pub small_icon_size: f32,
pub btn_size: f32,
pub padding: f32,
pub rounding: f32,
pub base_height: f32,
pub base_icon_size: f32,
pub base_btn_size: f32,
pub base_padding: f32,
}Expand description
Dimensions for the top toolbar in egui logical points.
Fields§
§height: f32Toolbar height.
small_icon_size: f32Icon side length.
btn_size: f32Button side length.
padding: f32Padding between button content.
rounding: f32Button corner radius.
base_height: f32Retained for source compatibility; rendering uses height.
base_icon_size: f32Retained for source compatibility; rendering uses small_icon_size.
base_btn_size: f32Retained for source compatibility; rendering uses btn_size.
base_padding: f32Retained for source compatibility; rendering uses padding.
Implementations§
Source§impl TopToolbarConfig
impl TopToolbarConfig
Sourcepub fn with_height(self, height: f32) -> Self
pub fn with_height(self, height: f32) -> Self
Builder: set toolbar height
Sourcepub fn with_icon_size(self, size: f32) -> Self
pub fn with_icon_size(self, size: f32) -> Self
Builder: set icon size
Builder: set button size
Trait Implementations§
Source§impl Clone for TopToolbarConfig
impl Clone for TopToolbarConfig
Source§fn clone(&self) -> TopToolbarConfig
fn clone(&self) -> TopToolbarConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TopToolbarConfig
impl Debug for TopToolbarConfig
Auto Trait Implementations§
impl Freeze for TopToolbarConfig
impl RefUnwindSafe for TopToolbarConfig
impl Send for TopToolbarConfig
impl Sync for TopToolbarConfig
impl Unpin for TopToolbarConfig
impl UnsafeUnpin for TopToolbarConfig
impl UnwindSafe for TopToolbarConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more