pub struct BadgeSurfaces {
pub app_icon: bool,
pub tray: bool,
pub numeric_only: bool,
}Expand description
The product-owned chrome this platform can actually paint a count on.
lx.host.setBadge skips unsupported surfaces and returns false when
none can be painted.
Fields§
§app_icon: boolDock (macOS), taskbar (Windows), home-screen icon (iOS, HarmonyOS).
tray: boolMenu-bar (macOS) / notification-area (Windows) status item.
numeric_only: boolThe platform draws the badge itself and only understands a count, so a non-numeric value is a parameter error rather than a silent clear.
Trait Implementations§
Source§impl Clone for BadgeSurfaces
impl Clone for BadgeSurfaces
impl Copy for BadgeSurfaces
Source§impl Debug for BadgeSurfaces
impl Debug for BadgeSurfaces
Source§impl Default for BadgeSurfaces
impl Default for BadgeSurfaces
impl Eq for BadgeSurfaces
Source§impl PartialEq for BadgeSurfaces
impl PartialEq for BadgeSurfaces
impl StructuralPartialEq for BadgeSurfaces
Auto Trait Implementations§
impl Freeze for BadgeSurfaces
impl RefUnwindSafe for BadgeSurfaces
impl Send for BadgeSurfaces
impl Sync for BadgeSurfaces
impl Unpin for BadgeSurfaces
impl UnsafeUnpin for BadgeSurfaces
impl UnwindSafe for BadgeSurfaces
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