pub struct DrawingToolbarConfig {
pub icon_size: f32,
pub width: f32,
pub padding: f32,
pub submenu_width: f32,
pub show_names: bool,
pub expanded_width: f32,
pub collapsed_width: f32,
pub base_icon_size: f32,
pub base_width: f32,
pub base_padding: f32,
pub base_submenu_width: f32,
}Expand description
Toolbar width and padding in egui logical points, with retained compatibility values.
Fields§
§icon_size: f32Retained for source compatibility; ignored when rendering.
width: f32Toolbar width.
padding: f32Padding before the first toolbar control.
Retained for source compatibility; ignored when rendering.
show_names: boolRetained for source compatibility; tool names are shown in flyouts.
expanded_width: f32Retained for source compatibility; rendering uses width.
collapsed_width: f32Retained for source compatibility; rendering uses width.
base_icon_size: f32Retained for source compatibility; ignored when rendering.
base_width: f32Retained for source compatibility; rendering uses width.
base_padding: f32Retained for source compatibility; rendering uses padding.
Retained for source compatibility; ignored when rendering.
Implementations§
Source§impl DrawingToolbarConfig
impl DrawingToolbarConfig
Sourcepub fn from_theme(_theme: &Theme) -> Self
pub fn from_theme(_theme: &Theme) -> Self
Create default dimensions; the theme argument is unused.
Sourcepub fn update_for_window_width(&mut self, _window_width: f32)
pub fn update_for_window_width(&mut self, _window_width: f32)
Retained for source compatibility; leaves dimensions unchanged.
Trait Implementations§
Source§impl Clone for DrawingToolbarConfig
impl Clone for DrawingToolbarConfig
Source§fn clone(&self) -> DrawingToolbarConfig
fn clone(&self) -> DrawingToolbarConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DrawingToolbarConfig
impl Debug for DrawingToolbarConfig
Auto Trait Implementations§
impl Freeze for DrawingToolbarConfig
impl RefUnwindSafe for DrawingToolbarConfig
impl Send for DrawingToolbarConfig
impl Sync for DrawingToolbarConfig
impl Unpin for DrawingToolbarConfig
impl UnsafeUnpin for DrawingToolbarConfig
impl UnwindSafe for DrawingToolbarConfig
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
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> ⓘ
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> ⓘ
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