Struct windows_win::Window [] [src]

pub struct Window { /* fields omitted */ }

Convenient wrapper over Window.

Note that while you can use it with any window. It makes no sense in taking ownership of not created by you windows.

This struct destroys window on drop and it is bad idea to do it for not your own window. If lucky, it fails but still not great idea.

Methods

impl Window
[src]

Creates new instance by taking ownership over provided window.

Creates window from instance of window builder.

Returns underlying window.

Ownership is not passed.

Transfers ownership of underlying window.

Returns whether window is visible.

Retrieves window's class.

Retrieves window's title.

Retrieves tuple of thread and process ids.

Sends message to underlying window.

For more information refer to send_message()

Sends BM_CLICK message to underlying window.

For mores information refer to send_push_button()

Sends WM_SETTEXT message to underlying window with new text.

For more information refer to send_set_text()

Sends WM_GETTEXT message to underlying window and returns, if possible, corresponding text.

For more information refer to send_get_text()

Sends WM_SYSCOMMAND message to underlying window and returns, if possible, corresponding text.

For more information refer to send_sys_command()

Destroys underlying window and drops self.

Trait Implementations

impl From<HWND> for Window
[src]

Performs the conversion.

impl Into<HWND> for Window
[src]

Performs the conversion.

impl Drop for Window
[src]

A method called when the value goes out of scope. Read more