pub struct ContextMenuItemAppearance { /* private fields */ }Implementations§
Source§impl ContextMenuItemAppearance
impl ContextMenuItemAppearance
pub fn new() -> Self
pub fn height(self, value: f32) -> Self
pub fn padding(self, value: EdgeInsets) -> Self
pub fn background(self, value: u32) -> Self
pub fn hover_background(self, value: u32) -> Self
pub fn text_color(self, value: u32) -> Self
pub fn corners(self, value: Corners) -> Self
pub fn font_family(self, value: FontFamily) -> Self
pub fn font_weight(self, value: FontWeight) -> Self
pub fn font_style(self, value: FontStyle) -> Self
pub fn font_size(self, value: f32) -> Self
Trait Implementations§
Source§impl Clone for ContextMenuItemAppearance
impl Clone for ContextMenuItemAppearance
Source§fn clone(&self) -> ContextMenuItemAppearance
fn clone(&self) -> ContextMenuItemAppearance
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 ContextMenuItemAppearance
impl Debug for ContextMenuItemAppearance
Source§impl Default for ContextMenuItemAppearance
impl Default for ContextMenuItemAppearance
Source§fn default() -> ContextMenuItemAppearance
fn default() -> ContextMenuItemAppearance
Returns the “default value” for a type. Read more
impl StructuralPartialEq for ContextMenuItemAppearance
Auto Trait Implementations§
impl Freeze for ContextMenuItemAppearance
impl RefUnwindSafe for ContextMenuItemAppearance
impl Send for ContextMenuItemAppearance
impl Sync for ContextMenuItemAppearance
impl Unpin for ContextMenuItemAppearance
impl UnsafeUnpin for ContextMenuItemAppearance
impl UnwindSafe for ContextMenuItemAppearance
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