pub struct SectionPanelPaint {
pub fill: Option<Color>,
pub border: Option<Color>,
pub title_color: Option<Color>,
pub radius: Option<f32>,
pub header_height: f32,
pub content_padding: Padding,
pub title_inset_x: f32,
pub trailing_width: f32,
pub title_token: Option<ThemeTextToken>,
pub title_weight: FontWeight,
}Fields§
§fill: Option<Color>§border: Option<Color>§title_color: Option<Color>§radius: Option<f32>§header_height: f32§content_padding: Padding§title_inset_x: f32§trailing_width: f32§title_token: Option<ThemeTextToken>§title_weight: FontWeightImplementations§
Source§impl SectionPanelPaint
impl SectionPanelPaint
pub const fn new() -> SectionPanelPaint
pub const fn fill(self, fill: Color) -> SectionPanelPaint
pub const fn border(self, border: Color) -> SectionPanelPaint
pub const fn title_color(self, title_color: Color) -> SectionPanelPaint
pub const fn radius(self, radius: f32) -> SectionPanelPaint
pub const fn header_height(self, header_height: f32) -> SectionPanelPaint
pub const fn content_padding( self, content_padding: Padding, ) -> SectionPanelPaint
pub const fn title_inset_x(self, title_inset_x: f32) -> SectionPanelPaint
pub const fn trailing_width(self, trailing_width: f32) -> SectionPanelPaint
pub const fn title_token(self, title_token: ThemeTextToken) -> SectionPanelPaint
pub const fn title_weight(self, title_weight: FontWeight) -> SectionPanelPaint
Trait Implementations§
Source§impl Clone for SectionPanelPaint
impl Clone for SectionPanelPaint
Source§fn clone(&self) -> SectionPanelPaint
fn clone(&self) -> SectionPanelPaint
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 moreimpl Copy for SectionPanelPaint
Source§impl Debug for SectionPanelPaint
impl Debug for SectionPanelPaint
Source§impl Default for SectionPanelPaint
impl Default for SectionPanelPaint
Source§fn default() -> SectionPanelPaint
fn default() -> SectionPanelPaint
Returns the “default value” for a type. Read more
Source§impl PartialEq for SectionPanelPaint
impl PartialEq for SectionPanelPaint
impl StructuralPartialEq for SectionPanelPaint
Auto Trait Implementations§
impl Freeze for SectionPanelPaint
impl RefUnwindSafe for SectionPanelPaint
impl Send for SectionPanelPaint
impl Sync for SectionPanelPaint
impl Unpin for SectionPanelPaint
impl UnsafeUnpin for SectionPanelPaint
impl UnwindSafe for SectionPanelPaint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.