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]

[src]

[src]

[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.

[src]

Return the underlying pointer for this control.

impl Button
[src]

[src]

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

[src]

Get a copy of the existing text on the button.

[src]

Get a reference to the existing text on the button.

[src]

Set the text on the button.

[src]

Run the given callback when the button is clicked.

Trait Implementations

impl Drop for Button
[src]

[src]

Executes the destructor for this type. Read more

impl Clone for Button
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Into<Control> for Button
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for Button

impl !Sync for Button