Skip to main content

PopupWindowMethods

Trait PopupWindowMethods 

Source
pub trait PopupWindowMethods: NonOwnedWindowMethods {
    // Provided methods
    fn create_int<W: WindowMethods>(
        &self,
        parent: Option<&W>,
        flags: c_int,
    ) -> bool { ... }
    fn position<P: PointMethods, S: SizeMethods>(
        &self,
        pt_origin: &P,
        size_popup: &S,
    ) { ... }
}
Expand description

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

See PopupWindowIsOwned documentation for the class usage.

Provided Methods§

Source

fn create_int<W: WindowMethods>(&self, parent: Option<&W>, flags: c_int) -> bool

Create method for two-step creation.

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

Source

fn position<P: PointMethods, S: SizeMethods>( &self, pt_origin: &P, size_popup: &S, )

Move the popup window to the right position, i.e. such that it is entirely visible.

See C++ wxPopupWindow::Position()’s documentation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§