Trait SearchCtrlMethods

Source
pub trait SearchCtrlMethods: TextCtrlMethods {
    // Provided methods
    fn get_menu(&self) -> WeakRef<Menu> { ... }
    fn is_search_button_visible(&self) -> bool { ... }
    fn is_cancel_button_visible(&self) -> bool { ... }
    fn set_menu<M: MenuMethods>(&self, menu: Option<&M>) { ... }
    fn show_cancel_button(&self, show: bool) { ... }
    fn show_search_button(&self, show: bool) { ... }
    fn set_descriptive_text(&self, text: &str) { ... }
    fn get_descriptive_text(&self) -> String { ... }
}
Expand description

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

See SearchCtrlIsOwned documentation for the class usage.

Provided Methods§

Source

fn get_menu(&self) -> WeakRef<Menu>

Returns a pointer to the search control’s menu object or NULL if there is no menu attached.

See C++ wxSearchCtrl::GetMenu()’s documentation.

Source

fn is_search_button_visible(&self) -> bool

Returns the search button visibility value.

See C++ wxSearchCtrl::IsSearchButtonVisible()’s documentation.

Source

fn is_cancel_button_visible(&self) -> bool

Returns the cancel button’s visibility state.

See C++ wxSearchCtrl::IsCancelButtonVisible()’s documentation.

Source

fn set_menu<M: MenuMethods>(&self, menu: Option<&M>)

Sets the search control’s menu object.

See C++ wxSearchCtrl::SetMenu()’s documentation.

Source

fn show_cancel_button(&self, show: bool)

Shows or hides the cancel button.

See C++ wxSearchCtrl::ShowCancelButton()’s documentation.

Source

fn show_search_button(&self, show: bool)

Sets the search button visibility value on the search control.

See C++ wxSearchCtrl::ShowSearchButton()’s documentation.

Source

fn set_descriptive_text(&self, text: &str)

Set the text to be displayed in the search control when the user has not yet typed anything in it.

See C++ wxSearchCtrl::SetDescriptiveText()’s documentation.

Source

fn get_descriptive_text(&self) -> String

Return the text displayed when there is not yet any user input.

See C++ wxSearchCtrl::GetDescriptiveText()’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> SearchCtrlMethods for SearchCtrlIsOwned<OWNED>