Struct iui::controls::Button[][src]

pub struct Button { /* fields omitted */ }

A textual button which users can click on, causing a callback to run.

Methods

impl Button
[src]

Create an iui struct for this control from the raw pointer for it.

Unsafety

The given pointer must point to a valid control or memory unsafety may result.

Return the underlying pointer for this control.

impl Button
[src]

Create a new button with the given text as its label.

Get a copy of the existing text on the button.

Get a reference to the existing text on the button.

Set the text on the button.

Run the given callback when the button is clicked.

Trait Implementations

impl Drop for Button
[src]

Executes the destructor for this type. Read more

impl Clone for Button
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Into<Control> for Button
[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for Button

impl !Sync for Button