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

pub unsafe trait WindowExt: GroupExt {
    fn center_screen(self) -> Self
    where
        Self: Sized
;
fn make_modal(&mut self, val: bool);
fn fullscreen(&mut self, val: bool);
fn make_current(&mut self);
fn icon(&self) -> Option<Box<dyn ImageExt>>;
fn set_icon<T: ImageExt>(&mut self, image: Option<T>)
    where
        Self: Sized
;
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 free_position(&mut self);
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 where
    Self: Sized

Positions the window to the center of the screen

fn make_modal(&mut self, val: bool)

Makes a window modal, should be called before show

fn fullscreen(&mut self, val: bool)

Makes a window fullscreen

fn make_current(&mut self)

Makes the window current

fn icon(&self) -> Option<Box<dyn ImageExt>>

Returns the icon of the window

fn set_icon<T: ImageExt>(&mut self, image: Option<T>) where
    Self: Sized

Sets the windows icon

fn make_resizable(&mut self, val: bool)

Make the window resizable, should be called before show

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 free_position(&mut self)

Frees the position of the window

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