pub struct CalloutPaint {Show 13 fields
pub tone: SemanticTone,
pub fill: Option<Color>,
pub border: Option<Color>,
pub rail_color: Option<Color>,
pub icon_color: Option<Color>,
pub title_color: Option<Color>,
pub body_color: Option<Color>,
pub radius: Option<f32>,
pub padding: Padding,
pub icon_size: f32,
pub icon_gap: f32,
pub rail_width: f32,
pub reserved_bottom: f32,
}Fields§
§tone: SemanticTone§fill: Option<Color>§border: Option<Color>§rail_color: Option<Color>§icon_color: Option<Color>§title_color: Option<Color>§body_color: Option<Color>§radius: Option<f32>§padding: Padding§icon_size: f32§icon_gap: f32§rail_width: f32§reserved_bottom: f32Implementations§
Source§impl CalloutPaint
impl CalloutPaint
pub const fn new(tone: SemanticTone) -> CalloutPaint
pub const fn fill(self, fill: Color) -> CalloutPaint
pub const fn border(self, border: Color) -> CalloutPaint
pub const fn rail_color(self, rail_color: Color) -> CalloutPaint
pub const fn icon_color(self, icon_color: Color) -> CalloutPaint
pub const fn title_color(self, title_color: Color) -> CalloutPaint
pub const fn body_color(self, body_color: Color) -> CalloutPaint
pub const fn radius(self, radius: f32) -> CalloutPaint
pub const fn padding(self, padding: Padding) -> CalloutPaint
pub const fn icon_size(self, icon_size: f32) -> CalloutPaint
pub const fn icon_gap(self, icon_gap: f32) -> CalloutPaint
pub const fn rail_width(self, rail_width: f32) -> CalloutPaint
pub const fn reserved_bottom(self, reserved_bottom: f32) -> CalloutPaint
Trait Implementations§
Source§impl Clone for CalloutPaint
impl Clone for CalloutPaint
Source§fn clone(&self) -> CalloutPaint
fn clone(&self) -> CalloutPaint
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 CalloutPaint
Source§impl Debug for CalloutPaint
impl Debug for CalloutPaint
Source§impl Default for CalloutPaint
impl Default for CalloutPaint
Source§fn default() -> CalloutPaint
fn default() -> CalloutPaint
Returns the “default value” for a type. Read more
Source§impl PartialEq for CalloutPaint
impl PartialEq for CalloutPaint
impl StructuralPartialEq for CalloutPaint
Auto Trait Implementations§
impl Freeze for CalloutPaint
impl RefUnwindSafe for CalloutPaint
impl Send for CalloutPaint
impl Sync for CalloutPaint
impl Unpin for CalloutPaint
impl UnsafeUnpin for CalloutPaint
impl UnwindSafe for CalloutPaint
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.