pub struct CodePanelPaint {
pub fill: Option<Color>,
pub border: Option<Color>,
pub header_fill: Option<Color>,
pub label_color: Option<Color>,
pub radius: Option<f32>,
pub header_height: f32,
pub content_padding: Padding,
pub label_inset_x: f32,
}Fields§
§fill: Option<Color>§border: Option<Color>§header_fill: Option<Color>§label_color: Option<Color>§radius: Option<f32>§header_height: f32§content_padding: Padding§label_inset_x: f32Implementations§
Source§impl CodePanelPaint
impl CodePanelPaint
pub const fn new() -> Self
pub const fn fill(self, fill: Color) -> Self
pub const fn border(self, border: Color) -> Self
pub const fn header_fill(self, header_fill: Color) -> Self
pub const fn label_color(self, label_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 label_inset_x(self, label_inset_x: f32) -> Self
Trait Implementations§
Source§impl Clone for CodePanelPaint
impl Clone for CodePanelPaint
impl Copy for CodePanelPaint
Source§impl Debug for CodePanelPaint
impl Debug for CodePanelPaint
Source§impl Default for CodePanelPaint
impl Default for CodePanelPaint
Source§impl PartialEq for CodePanelPaint
impl PartialEq for CodePanelPaint
impl StructuralPartialEq for CodePanelPaint
Auto Trait Implementations§
impl Forget for CodePanelPaint
impl Freeze for CodePanelPaint
impl Move for CodePanelPaint
impl RefUnwindSafe for CodePanelPaint
impl Send for CodePanelPaint
impl Sync for CodePanelPaint
impl Unpin for CodePanelPaint
impl UnsafeUnpin for CodePanelPaint
impl UnwindSafe for CodePanelPaint
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