pub struct SurfaceConfig {
pub modifier: Modifier,
pub enabled: bool,
pub color: Color,
pub content_color: Color,
pub shape_radius: f32,
pub tonal_elevation: f32,
pub shadow_elevation: f32,
pub border: Option<(f32, Color)>,
pub interaction_source: Option<MutableInteractionSource>,
}Expand description
Configuration for Surface.
Fields§
§modifier: Modifier§enabled: bool§color: Color§content_color: Color§shape_radius: f32§tonal_elevation: f32§shadow_elevation: f32§border: Option<(f32, Color)>§interaction_source: Option<MutableInteractionSource>Trait Implementations§
Source§impl Clone for SurfaceConfig
impl Clone for SurfaceConfig
Source§fn clone(&self) -> SurfaceConfig
fn clone(&self) -> SurfaceConfig
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 SurfaceConfig
impl Debug for SurfaceConfig
Auto Trait Implementations§
impl !RefUnwindSafe for SurfaceConfig
impl !Send for SurfaceConfig
impl !Sync for SurfaceConfig
impl !UnwindSafe for SurfaceConfig
impl Freeze for SurfaceConfig
impl Unpin for SurfaceConfig
impl UnsafeUnpin for SurfaceConfig
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