Struct native_windows_gui::Window
[−]
[src]
pub struct Window { /* fields omitted */ }
A window control.
Methods
impl Window
[src]
fn close(&self)
Close the window as if the user clicked on the X button. This do NOT remove the window from the ui, it only set it hidden. In order to also destroy the window, add an unpack statement on the Closed event.
fn activate(&self)
Activate the window and set it above the other windows
fn get_title(&self) -> String
fn set_title<'a>(&self, text: &'a str)
fn get_visibility(&self) -> bool
fn set_visibility(&self, visible: bool)
fn get_position(&self) -> (i32, i32)
fn set_position(&self, x: i32, y: i32)
fn get_size(&self) -> (u32, u32)
fn set_size(&self, w: u32, h: u32)
fn get_enabled(&self) -> bool
fn set_enabled(&self, e: bool)
Trait Implementations
impl Control for Window
[src]
fn handle(&self) -> AnyHandle
Should return the underlying handle to the object
fn control_type(&self) -> ControlType
Should return the type of the control. For custom controls, the return value should be Undefined
(the default).
fn free(&mut self)
If specified, should free any ressource allocated in the template build
function. This includes functions like DestroyWindow
.