Trait INSButton

Source
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§

Source

fn p_title(&self) -> NSString

The title displayed on the button when it’s in an off state.

Source

fn p_set_title(&self, title: NSString)

Sets the title displayed on the button when it’s in an off state.

Source

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.

Source

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.

Implementors§