pub enum SurfaceRole {
SectionCard,
}Expand description
Default navigation sidebar width (split presentation) until the pane reports its size.
Semantic container surfaces (see ContainerProps::role): each backend maps a role to its
own theme-adaptive material so the fill tracks light/dark mode without app code.
Variants§
SectionCard
A form section card: the platform’s grouped-content background — AppKit quaternary
system fill, libadwaita .card, Qt palette(alternate-base), UIKit tertiary system
fill, Material surface-container, XAML card background brush.
Trait Implementations§
Source§impl Clone for SurfaceRole
impl Clone for SurfaceRole
Source§fn clone(&self) -> SurfaceRole
fn clone(&self) -> SurfaceRole
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 SurfaceRole
impl Debug for SurfaceRole
Source§impl PartialEq for SurfaceRole
impl PartialEq for SurfaceRole
Source§fn eq(&self, other: &SurfaceRole) -> bool
fn eq(&self, other: &SurfaceRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SurfaceRole
impl Eq for SurfaceRole
impl StructuralPartialEq for SurfaceRole
Auto Trait Implementations§
impl Freeze for SurfaceRole
impl RefUnwindSafe for SurfaceRole
impl Send for SurfaceRole
impl Sync for SurfaceRole
impl Unpin for SurfaceRole
impl UnsafeUnpin for SurfaceRole
impl UnwindSafe for SurfaceRole
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