BitmapButtonMethods

Trait BitmapButtonMethods 

Source
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§

Source

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.

See C++ wxBitmapButton::Create()’s documentation.

Source

fn create_close_button<W: WindowMethods>( &self, parent: Option<&W>, winid: c_int, name: &str, ) -> bool

Creation function for two-step creation of “Close” button.

See C++ wxBitmapButton::CreateCloseButton()’s documentation.

Source

fn new_close_button<W: WindowMethods>( parent: Option<&W>, winid: c_int, name: &str, ) -> WeakRef<BitmapButton>

Helper function creating a standard-looking “Close” button.

See C++ wxBitmapButton::NewCloseButton()’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§