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() -> Self
pub const fn fill(self, fill: Color) -> Self
pub const fn border(self, border: Color) -> Self
pub const fn title_color(self, title_color: Color) -> Self
pub const fn corner_radius(self, corner_radius: f32) -> Self
pub const fn header_height(self, header_height: f32) -> Self
pub const fn content_padding(self, content_padding: Insets) -> Self
pub const fn title_inset_x(self, title_inset_x: f32) -> Self
pub const fn trailing_width(self, trailing_width: f32) -> Self
pub const fn title_token(self, title_token: ThemeTextToken) -> Self
pub const fn title_weight(self, title_weight: FontWeight) -> Self
Trait Implementations§
Source§impl Clone for SectionPanelPaint
impl Clone for SectionPanelPaint
impl Copy for SectionPanelPaint
Source§impl Debug for SectionPanelPaint
impl Debug for SectionPanelPaint
Source§impl Default for SectionPanelPaint
impl Default for SectionPanelPaint
Source§impl PartialEq for SectionPanelPaint
impl PartialEq for SectionPanelPaint
impl StructuralPartialEq for SectionPanelPaint
Auto Trait Implementations§
impl Forget for SectionPanelPaint
impl Freeze for SectionPanelPaint
impl Move 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