SpinEventMethods

Trait SpinEventMethods 

Source
pub trait SpinEventMethods: NotifyEventMethods {
    // Provided methods
    fn get_position(&self) -> c_int { ... }
    fn set_position(&self, pos: c_int) { ... }
}
Expand description

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

See SpinEventIsOwned documentation for the class usage.

Provided Methods§

Source

fn get_position(&self) -> c_int

Retrieve the current spin button or control value.

See C++ wxSpinEvent::GetPosition()’s documentation.

Source

fn set_position(&self, pos: c_int)

Set the value associated with the event.

See C++ wxSpinEvent::SetPosition()’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> SpinEventMethods for SpinEventIsOwned<OWNED>