#[repr(u8)]pub enum Surface {
None = 0,
Sidebar = 1,
Content = 2,
Card = 3,
}Expand description
What a stack is drawn on. Each surface is one native view behind the stack’s children, using the platform’s own materials and colors.
Variants§
None = 0
Nothing: the children sit on whatever is behind the stack.
Sidebar = 1
The side panel of a window, translucent where the platform supports it.
Content = 2
The window’s main pane, in the color content is read on.
Card = 3
A rounded, outlined panel that groups related content.
Implementations§
Trait Implementations§
impl Copy for Surface
impl Eq for Surface
impl StructuralPartialEq for Surface
Auto Trait Implementations§
impl Freeze for Surface
impl RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl UnsafeUnpin for Surface
impl UnwindSafe for Surface
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