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§
Returns a pointer to the search control’s menu object or NULL if there is no menu attached.
Returns the search button visibility value.
See C++ wxSearchCtrl::IsSearchButtonVisible()
’s documentation.
Returns the cancel button’s visibility state.
See C++ wxSearchCtrl::IsCancelButtonVisible()
’s documentation.
Sets the search control’s menu object.
Shows or hides the cancel button.
Sets the search button visibility value on the search control.
Sourcefn set_descriptive_text(&self, text: &str)
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.
Sourcefn get_descriptive_text(&self) -> String
fn get_descriptive_text(&self) -> String
Return the text displayed when there is not yet any user input.
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.