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() -> CodePanelPaint
pub const fn fill(self, fill: Color) -> CodePanelPaint
pub const fn border(self, border: Color) -> CodePanelPaint
pub const fn header_fill(self, header_fill: Color) -> CodePanelPaint
pub const fn label_color(self, label_color: Color) -> CodePanelPaint
pub const fn corner_radius(self, corner_radius: f32) -> CodePanelPaint
pub const fn header_height(self, header_height: f32) -> CodePanelPaint
pub const fn content_padding(self, content_padding: Padding) -> CodePanelPaint
pub const fn label_inset_x(self, label_inset_x: f32) -> CodePanelPaint
Trait Implementations§
Source§impl Clone for CodePanelPaint
impl Clone for CodePanelPaint
Source§fn clone(&self) -> CodePanelPaint
fn clone(&self) -> CodePanelPaint
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 CodePanelPaint
Source§impl Debug for CodePanelPaint
impl Debug for CodePanelPaint
Source§impl Default for CodePanelPaint
impl Default for CodePanelPaint
Source§fn default() -> CodePanelPaint
fn default() -> CodePanelPaint
Returns the “default value” for a type. Read more
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
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.