#[repr(C)]pub struct VisualHints {
pub show_button_images: bool,
pub show_menu_images: bool,
pub toolbar_style: ToolbarStyle,
pub show_tooltips: bool,
pub flash_on_alert: bool,
}Expand description
Visual hints from the OS about how icons and decorations should be shown.
These preferences differ heavily between Linux desktops (KDE vs GNOME) and are less configurable on macOS / Windows where HIG rules apply.
Fields§
Show icons on push buttons? (Common in KDE, rare in Win/Mac.)
Linux: org.gnome.desktop.interface buttons-have-icons, KDE ShowIconsOnPushButtons.
Show icons in context menus? (GNOME defaults off since 3.x; Win/Mac/KDE usually on.)
Linux: org.gnome.desktop.interface menus-have-icons.
toolbar_style: ToolbarStyleToolbar display style.
Linux: org.gnome.desktop.interface toolbar-style, KDE ToolButtonStyle.
show_tooltips: boolShould tooltips be shown on hover?
flash_on_alert: boolFlash the window taskbar entry on alert?
Trait Implementations§
Source§impl Clone for VisualHints
impl Clone for VisualHints
Source§fn clone(&self) -> VisualHints
fn clone(&self) -> VisualHints
Returns a duplicate of the value. Read more
1.0.0 · 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 VisualHints
impl Debug for VisualHints
Source§impl Default for VisualHints
impl Default for VisualHints
Source§impl PartialEq for VisualHints
impl PartialEq for VisualHints
impl Copy for VisualHints
impl StructuralPartialEq for VisualHints
Auto Trait Implementations§
impl Freeze for VisualHints
impl RefUnwindSafe for VisualHints
impl Send for VisualHints
impl Sync for VisualHints
impl Unpin for VisualHints
impl UnsafeUnpin for VisualHints
impl UnwindSafe for VisualHints
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