pub trait INSButton: INSControl {
// Provided methods
fn p_title(&self) -> NSString { ... }
fn p_set_title(&self, title: NSString) { ... }
fn p_image(&self) -> NSImage { ... }
fn p_set_image(&self, image: NSImage) { ... }
}
Expand description
A trait containing all the methods for NSButton
Provided Methods§
Sourcefn p_set_title(&self, title: NSString)
fn p_set_title(&self, title: NSString)
Sets the title displayed on the button when it’s in an off state.
Sourcefn p_image(&self) -> NSImage
fn p_image(&self) -> NSImage
The image that appears on the button when it’s in an off state, or nil if there is no such image.
Sourcefn p_set_image(&self, image: NSImage)
fn p_set_image(&self, image: NSImage)
Sets the image that appears on the button when it’s in an off state, or nil if there is no such image.
§Arguments
image
- The new image.
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.