pub struct TooltipStyle {Show 15 fields
pub delay: f32,
pub padding: Padding,
pub font_size: f32,
pub font_family: FontFamily,
pub font_weight: FontWeight,
pub font_stretch: FontStretch,
pub font_style: FontStyle,
pub color: Color,
pub align: TextAlign,
pub line_height: f32,
pub wrap: TextWrap,
pub background: Color,
pub border_radius: BorderRadius,
pub border_width: BorderWidth,
pub border_color: Color,
}Expand description
The style of a Tooltip.
Fields§
§delay: f32The delay before the tooltip is displayed.
padding: PaddingThe padding of the text.
font_size: f32The font size of the text.
font_family: FontFamilyThe font family of the text.
font_weight: FontWeightThe font weight of the text.
font_stretch: FontStretchThe font stretch of the text.
font_style: FontStyleThe font style of the text.
color: ColorThe color of text.
align: TextAlignThe horizontal alignment of the text.
line_height: f32The line height of the text.
wrap: TextWrapThe text wrap of the text.
background: ColorThe background color of the text.
border_radius: BorderRadiusThe border radius of the text.
border_width: BorderWidthThe border width of the text.
border_color: ColorThe border color of the text.
Trait Implementations§
Source§impl Clone for TooltipStyle
impl Clone for TooltipStyle
Source§fn clone(&self) -> TooltipStyle
fn clone(&self) -> TooltipStyle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Rebuild for TooltipStyle
impl Rebuild for TooltipStyle
Source§impl Style for TooltipStyle
impl Style for TooltipStyle
Source§fn default_style() -> StyleBuilder<Self>
fn default_style() -> StyleBuilder<Self>
The default style of the object.
Auto Trait Implementations§
impl Freeze for TooltipStyle
impl RefUnwindSafe for TooltipStyle
impl Send for TooltipStyle
impl Sync for TooltipStyle
impl Unpin for TooltipStyle
impl UnwindSafe for TooltipStyle
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