[][src]Struct fltk::misc::Tooltip

pub struct Tooltip {}

Shows a standalone tooltip

Implementations

impl Tooltip[src]

pub fn delay() -> f32[src]

Gets the tooltip's delay

pub fn set_delay(f: f32)[src]

Sets the tooltip's delay

pub fn hidedelay() -> f32[src]

Gets the tooltip's hide delay

pub fn set_hidedelay(f: f32)[src]

Sets the tooltip's hide delay

pub fn hoverdelay() -> f32[src]

Gets the tooltip's hover delay

pub fn set_hoverdelay(f: f32)[src]

Sets the tooltip's hover delay

pub fn enabled() -> bool[src]

Returns whether the tooltip is enabled

pub fn enable(b: bool)[src]

Sets whether the tooltip is enabled

pub fn disable()[src]

Disables the tooltip

pub fn enter_area<W: WidgetExt>(
    widget: &W,
    x: i32,
    y: i32,
    w: i32,
    h: i32,
    tip: &str
)
[src]

Defines the area of the tooltip

pub fn current_widget() -> Widget[src]

Returns the current widget under the tooltip

pub fn current<W: WidgetExt>(w: &W)[src]

Sets the current widget associated with the tooltip

pub fn font() -> Font[src]

Gets the tooltip's font

pub fn set_font(font: Font)[src]

Sets the tooltip's font

pub fn font_size() -> u32[src]

Gets the tooltip's font size

pub fn set_font_size(s: u32)[src]

Sets the tooltip's font size

pub fn color() -> Color[src]

Gets the tooltip's color

pub fn set_color(c: Color)[src]

Sets the tooltip's color

pub fn text_color() -> Color[src]

Gets the tooltip's text color

pub fn set_text_color(c: Color)[src]

Sets the tooltip's text color

pub fn margin_width() -> u32[src]

Gets the margin width

pub fn set_margin_width(v: u32)[src]

Sets the margin width

pub fn margin_height() -> u32[src]

Gets the margin height

pub fn set_margin_height(v: u32)[src]

Sets the margin height

pub fn wrap_width() -> u32[src]

Gets the wrap width

pub fn set_wrap_width(v: u32)[src]

Sets the wrap width

pub fn current_window<W: WindowExt>() -> Window[src]

Returns the current window

Trait Implementations

impl Clone for Tooltip[src]

impl Debug for Tooltip[src]

Auto Trait Implementations

impl RefUnwindSafe for Tooltip

impl Send for Tooltip

impl Sync for Tooltip

impl Unpin for Tooltip

impl UnwindSafe for Tooltip

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.