Trait RichToolTipMethods

Source
pub trait RichToolTipMethods: WxRustMethods {
    // Provided methods
    fn set_background_colour<C: ColourMethods, C2: ColourMethods>(
        &self,
        col: &C,
        col_end: &C2,
    ) { ... }
    fn set_icon_int(&self, icon: c_int) { ... }
    fn set_icon_bitmapbundle<B: BitmapBundleMethods>(&self, icon: &B) { ... }
    fn set_title_font<F: FontMethods>(&self, font: &F) { ... }
    fn show_for<W: WindowMethods, R: RectMethods>(
        &self,
        win: Option<&W>,
        rect: Option<&R>,
    ) { ... }
}
Expand description

This trait represents C++ wxRichToolTip class’s methods and inheritance.

See RichToolTipIsOwned documentation for the class usage.

Provided Methods§

Source

fn set_background_colour<C: ColourMethods, C2: ColourMethods>( &self, col: &C, col_end: &C2, )

Source

fn set_icon_int(&self, icon: c_int)

Set the small icon to show.

See C++ wxRichToolTip::SetIcon()’s documentation.

Source

fn set_icon_bitmapbundle<B: BitmapBundleMethods>(&self, icon: &B)

Source

fn set_title_font<F: FontMethods>(&self, font: &F)

Source

fn show_for<W: WindowMethods, R: RectMethods>( &self, win: Option<&W>, rect: Option<&R>, )

Show the tooltip for the given window and optionally specify where to show the tooltip.

See C++ wxRichToolTip::ShowFor()’s documentation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<const OWNED: bool> RichToolTipMethods for RichToolTipIsOwned<OWNED>