[][src]Trait fltk::prelude::WindowExt

pub unsafe trait WindowExt: GroupExt {
    fn center_screen(self) -> Self;
fn make_modal(&mut self, val: bool);
fn fullscreen(&mut self, val: bool);
fn make_current(&mut self);
fn set_icon<T: ImageExt>(&mut self, image: Option<T>);
fn icon(&self) -> Option<Image>;
fn make_resizable(&mut self, val: bool);
fn set_cursor(&mut self, cursor: Cursor);
fn shown(&self) -> bool;
fn set_border(&mut self, flag: bool);
fn border(&self) -> bool;
fn raw_handle(&self) -> RawHandle;
unsafe fn set_raw_handle(&mut self, handle: RawHandle);
fn region(&self) -> Region;
unsafe fn set_region(&mut self, region: Region);
fn iconize(&mut self);
fn fullscreen_active(&self) -> bool; }

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)

Set the graphical draw region of the window

Safety

The data must be valid.

fn iconize(&mut self)

Iconifies the window

fn fullscreen_active(&self) -> bool

Returns whether the window is fullscreen or not

Loading content...

Implementors

impl WindowExt for DoubleWindow[src]

impl WindowExt for MenuWindow[src]

impl WindowExt for SingleWindow[src]

impl WindowExt for Window[src]

Loading content...