pub trait StdDialogButtonSizerMethods: BoxSizerMethods {
// Provided methods
fn add_button<B: ButtonMethods>(&self, button: Option<&B>) { ... }
fn realize(&self) { ... }
fn set_affirmative_button<B: ButtonMethods>(&self, button: Option<&B>) { ... }
fn set_cancel_button<B: ButtonMethods>(&self, button: Option<&B>) { ... }
fn set_negative_button<B: ButtonMethods>(&self, button: Option<&B>) { ... }
}Expand description
This trait represents C++ wxStdDialogButtonSizer class’s methods and inheritance.
See StdDialogButtonSizerIsOwned documentation for the class usage.
Provided Methods§
Adds a button to the wxStdDialogButtonSizer.
See C++ wxStdDialogButtonSizer::AddButton()’s documentation.
Sourcefn realize(&self)
fn realize(&self)
Rearranges the buttons and applies proper spacing between buttons to make them match the platform or toolkit’s interface guidelines.
Sets the affirmative button for the sizer.
See C++ wxStdDialogButtonSizer::SetAffirmativeButton()’s documentation.
Sets the cancel button for the sizer.
See C++ wxStdDialogButtonSizer::SetCancelButton()’s documentation.
Sets the negative button for the sizer.
See C++ wxStdDialogButtonSizer::SetNegativeButton()’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.