Struct iui::prelude::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]

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

Get the current title of the window.

Get a reference to the current title of the window.

Set the window's title to the given string.

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.

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

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

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

Allow the user to select an existing file.

Allow the user to select a new or existing file.

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

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

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]

Executes the destructor for this type. Read more

impl Clone for Window
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Into<Control> for Window
[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for Window

impl !Sync for Window