[−][src]Trait fltk::prelude::WindowExt
Defines the methods implemented by all window widgets
Required methods
fn center_screen(self) -> Self
Positions the window to the center of the screen
fn make_modal(&mut self, val: bool)
Makes a window modal
fn fullscreen(&mut self, val: bool)
Makes a window fullscreen
fn make_current(&mut self)
Makes the window current
fn set_icon<T: ImageExt>(&mut self, image: Option<T>)
Sets the windows icon
fn icon(&self) -> Option<Image>
Returns the icon of the window
fn make_resizable(&mut self, val: bool)
Make the window resizable
fn set_cursor(&mut self, cursor: Cursor)
Sets the cursor style within the window Needs to be called after the window is shown
fn shown(&self) -> bool
Returns whether a window is shown
fn set_border(&mut self, flag: bool)
Sets whether the window has a border
fn border(&self) -> bool
Returns whether a window has a border
fn raw_handle(&self) -> RawHandle
Get the raw system handle of the window
unsafe fn set_raw_handle(&mut self, handle: RawHandle)
Set the window associated with a raw handle. RawHandle is a void pointer to: (Windows: HWND, X11: Xid (u64), MacOS: NSWindow)
Safety
The data must be valid and is OS-dependent. The window must be shown.
fn region(&self) -> Region
Get the graphical draw region of the window
unsafe fn set_region(&mut self, region: Region)
fn iconize(&mut self)
Iconifies the window
fn fullscreen_active(&self) -> bool
Returns whether the window is fullscreen or not