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§
Sourcefn set_background_colour<C: ColourMethods, C2: ColourMethods>(
&self,
col: &C,
col_end: &C2,
)
fn set_background_colour<C: ColourMethods, C2: ColourMethods>( &self, col: &C, col_end: &C2, )
Set the background colour.
See C++ wxRichToolTip::SetBackgroundColour()
’s documentation.
Sourcefn set_icon_int(&self, icon: c_int)
fn set_icon_int(&self, icon: c_int)
Set the small icon to show.
Sourcefn set_icon_bitmapbundle<B: BitmapBundleMethods>(&self, icon: &B)
fn set_icon_bitmapbundle<B: BitmapBundleMethods>(&self, icon: &B)
Sourcefn set_title_font<F: FontMethods>(&self, font: &F)
fn set_title_font<F: FontMethods>(&self, font: &F)
Set the title text font.
Sourcefn show_for<W: WindowMethods, R: RectMethods>(
&self,
win: Option<&W>,
rect: Option<&R>,
)
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.
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.