pub trait BitmapButtonMethods: ButtonMethods {
// Provided methods
fn create_bitmapbundle<W: WindowMethods, B: BitmapBundleMethods, P: PointMethods, S: SizeMethods, V: ValidatorMethods>(
&self,
parent: Option<&W>,
id: c_int,
bitmap: &B,
pos: &P,
size: &S,
style: c_long,
validator: &V,
name: &str,
) -> bool { ... }
fn create_close_button<W: WindowMethods>(
&self,
parent: Option<&W>,
winid: c_int,
name: &str,
) -> bool { ... }
fn new_close_button<W: WindowMethods>(
parent: Option<&W>,
winid: c_int,
name: &str,
) -> WeakRef<BitmapButton> { ... }
}Expand description
This trait represents C++ wxBitmapButton class’s methods and inheritance.
See BitmapButtonIsOwned documentation for the class usage.
Provided Methods§
Sourcefn create_bitmapbundle<W: WindowMethods, B: BitmapBundleMethods, P: PointMethods, S: SizeMethods, V: ValidatorMethods>(
&self,
parent: Option<&W>,
id: c_int,
bitmap: &B,
pos: &P,
size: &S,
style: c_long,
validator: &V,
name: &str,
) -> bool
fn create_bitmapbundle<W: WindowMethods, B: BitmapBundleMethods, P: PointMethods, S: SizeMethods, V: ValidatorMethods>( &self, parent: Option<&W>, id: c_int, bitmap: &B, pos: &P, size: &S, style: c_long, validator: &V, name: &str, ) -> bool
Button creation function for two-step creation.
Creation function for two-step creation of “Close” button.
See C++ wxBitmapButton::CreateCloseButton()’s documentation.
Helper function creating a standard-looking “Close” button.
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.