pub struct MenuSize {
pub border_size: i32,
pub vertical_padding: i32,
pub horizontal_padding: i32,
pub item_vertical_padding: i32,
pub item_horizontal_padding: i32,
pub submenu_offset: i32,
pub separator_size: i32,
}
Expand description
Size settings of Menu.
§Default.
border_size: 0,
vertical_padding: 0,
horizontal_padding: 0,
item_vertical_padding: 8,
item_horizontal_padding: 20,
submenu_offset: -3
separator_size: 1,
Fields§
§border_size: i32
Border width and height.
vertical_padding: i32
Top and bottom paddings of Menu.
horizontal_padding: i32
Left and right paddings of Menu.
item_vertical_padding: i32
Top and bottom paddings of MenuItem.
item_horizontal_padding: i32
Left and right paddings of MenuItem.
Submenu position relative to Menu.
separator_size: i32
Separator height(stroke width).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MenuSize
impl<'de> Deserialize<'de> for MenuSize
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MenuSize
impl RefUnwindSafe for MenuSize
impl Send for MenuSize
impl Sync for MenuSize
impl Unpin for MenuSize
impl UnwindSafe for MenuSize
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