Struct iui::controls::Window [] [src]

pub struct Window { /* fields omitted */ }

Contains a single child control and displays it and its children in a window on the screen.

Methods

impl Window
[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 Window
[src]

[src]

Create a new window with the given title, width, height, and type. By default, when a new window is created, it will cause the application to quit when closed. The user can prevent this by adding a custom on_closing behavior.

[src]

Get the current title of the window.

[src]

Get a reference to the current title of the window.

[src]

Set the window's title to the given string.

[src]

Set a callback to be run when the window closes.

This is often used on the main window of an application to quit the application when the window is closed.

[src]

Check whether or not this window has margins around the edges.

[src]

Set whether or not the window has margins around the edges.

[src]

Sets the window's child widget. The window can only have one child widget at a time.

[src]

Allow the user to select an existing file.

[src]

Allow the user to select a new or existing file.

[src]

Open a generic message box to show a message to the user. Returns when the user acknowledges the message.

[src]

Open an error-themed message box to show a message to the user. Returns when the user acknowledges the message.

[src]

[src]

Destroys a Window. Any use of the control after this is use-after-free; therefore, this is marked unsafe.

Trait Implementations

impl Drop for Window
[src]

[src]

Executes the destructor for this type. Read more

impl Clone for Window
[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 Window
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for Window

impl !Sync for Window