pub struct ContextMenuSizingTokens {Show 16 fields
pub min_width: f32,
pub max_width: f32,
pub rounding: f32,
pub padding_v: f32,
pub item_height: f32,
pub item_padding_h: f32,
pub icon_width: f32,
pub icon_size: f32,
pub font_size: f32,
pub shortcut_font_size: f32,
pub separator_height: f32,
pub separator_thickness: f32,
pub separator_margin_h: f32,
pub submenu_arrow_size: f32,
pub shortcut_width: f32,
pub screen_edge_padding: f32,
}Expand description
Context menu sizing defaults in egui logical points.
Fields§
§min_width: f32Minimum width, in egui logical points.
max_width: f32Maximum width, in egui logical points.
rounding: f32Rounding, in egui logical points.
padding_v: f32Vertical padding, in egui logical points.
item_height: f32Item height, in egui logical points.
item_padding_h: f32Horizontal item padding, in egui logical points.
icon_width: f32Icon width, in egui logical points.
icon_size: f32Icon size, in egui logical points.
font_size: f32Font size, in egui logical points.
shortcut_font_size: f32Shortcut font size, in egui logical points.
separator_height: f32Separator height, in egui logical points.
separator_thickness: f32Separator thickness, in egui logical points.
separator_margin_h: f32Horizontal separator margin, in egui logical points.
Submenu arrow size, in egui logical points.
shortcut_width: f32Shortcut width, in egui logical points.
screen_edge_padding: f32Screen edge padding, in egui logical points.
Trait Implementations§
Source§impl Clone for ContextMenuSizingTokens
impl Clone for ContextMenuSizingTokens
Source§fn clone(&self) -> ContextMenuSizingTokens
fn clone(&self) -> ContextMenuSizingTokens
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 moreAuto Trait Implementations§
impl Freeze for ContextMenuSizingTokens
impl RefUnwindSafe for ContextMenuSizingTokens
impl Send for ContextMenuSizingTokens
impl Sync for ContextMenuSizingTokens
impl Unpin for ContextMenuSizingTokens
impl UnsafeUnpin for ContextMenuSizingTokens
impl UnwindSafe for ContextMenuSizingTokens
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