pub struct PanelStyleConfig {
pub content: WidgetId,
pub variant: PanelVariant,
pub background_override: Option<ColorProp>,
pub border_color_override: Option<ColorProp>,
pub border_width_override: Option<Prop<f32>>,
pub corner_radius_override: Option<Prop<f32>>,
pub padding_override: Option<Prop<f32>>,
}Fields§
§content: WidgetIdPre-built content subtree wrapped by the panel’s chrome.
variant: PanelVariant§background_override: Option<ColorProp>Caller overrides — when Some, the style should use these
values instead of the variant’s defaults. Custom styles may
ignore them, in which case the override is silently dropped.
border_color_override: Option<ColorProp>§border_width_override: Option<Prop<f32>>§corner_radius_override: Option<Prop<f32>>§padding_override: Option<Prop<f32>>Trait Implementations§
Source§impl Clone for PanelStyleConfig
impl Clone for PanelStyleConfig
Source§fn clone(&self) -> PanelStyleConfig
fn clone(&self) -> PanelStyleConfig
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for PanelStyleConfig
impl !Send for PanelStyleConfig
impl !Sync for PanelStyleConfig
impl !UnwindSafe for PanelStyleConfig
impl Freeze for PanelStyleConfig
impl Unpin for PanelStyleConfig
impl UnsafeUnpin for PanelStyleConfig
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