pub struct Tooltip {
pub text: Text,
pub font_size: f32,
pub bg_color: Color,
pub text_color: Color,
pub border_color: Color,
pub border_size: usize,
pub radius: usize,
pub padding: usize,
pub offset_y: isize,
}Fields§
§text: Text§font_size: f32§bg_color: Color§text_color: Color§border_color: Color§border_size: usize§radius: usize§padding: usize§offset_y: isizeVertical offset from target (negative = above)
Implementations§
Source§impl Tooltip
impl Tooltip
pub fn new(text: &str, font: Font, size: f32) -> Self
pub fn bg_color(self, color: Color) -> Self
pub fn text_color(self, color: Color) -> Self
pub fn border_color(self, color: Color) -> Self
pub fn border(self, size: usize) -> Self
pub fn radius(self, radius: usize) -> Self
pub fn padding(self, padding: usize) -> Self
pub fn offset_y(self, offset: isize) -> Self
Auto Trait Implementations§
impl Freeze for Tooltip
impl RefUnwindSafe for Tooltip
impl Send for Tooltip
impl Sync for Tooltip
impl Unpin for Tooltip
impl UnsafeUnpin for Tooltip
impl UnwindSafe for Tooltip
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