IdManagerMethods

Trait IdManagerMethods 

Source
pub trait IdManagerMethods: WxRustMethods {
    // Provided methods
    fn reserve_id(count: c_int) -> c_int { ... }
    fn unreserve_id(id: c_int, count: c_int) { ... }
}
Expand description

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

See IdManagerIsOwned documentation for the class usage.

Provided Methods§

Source

fn reserve_id(count: c_int) -> c_int

Called directly by wxWindow::NewControlId(), this function will create a new ID or range of IDs.

See C++ wxIdManager::ReserveId()’s documentation.

Source

fn unreserve_id(id: c_int, count: c_int)

Called directly by wxWindow::UnreserveControlId(), this function will unreserve an ID or range of IDs that is currently reserved.

See C++ wxIdManager::UnreserveId()’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> IdManagerMethods for IdManagerIsOwned<OWNED>