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

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

Defines the methods implemented by all window widgets

Required methods

pub fn center_screen(self) -> Self where
    Self: Sized
[src]

Positions the window to the center of the screen

pub fn make_modal(&mut self, val: bool)[src]

Makes a window modal, should be called before show

pub fn fullscreen(&mut self, val: bool)[src]

Makes a window fullscreen

pub fn make_current(&mut self)[src]

Makes the window current

pub fn icon(&self) -> Option<Box<dyn ImageExt>>[src]

Returns the icon of the window

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

Sets the windows icon

pub fn set_cursor(&mut self, cursor: Cursor)[src]

Sets the cursor style within the window Needs to be called after the window is shown

pub fn shown(&self) -> bool[src]

Returns whether a window is shown

pub fn set_border(&mut self, flag: bool)[src]

Sets whether the window has a border

pub fn border(&self) -> bool[src]

Returns whether a window has a border

pub fn free_position(&mut self)[src]

Frees the position of the window

pub fn raw_handle(&self) -> RawHandle[src]

Get the raw system handle of the window

pub unsafe fn set_raw_handle(&mut self, handle: RawHandle)[src]

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.

pub fn region(&self) -> Region[src]

Get the graphical draw region of the window

pub unsafe fn set_region(&mut self, region: Region)[src]

Set the graphical draw region of the window

Safety

The data must be valid.

pub fn iconize(&mut self)[src]

Iconifies the window

pub fn fullscreen_active(&self) -> bool[src]

Returns whether the window is fullscreen or not

pub fn decorated_w(&self) -> i32[src]

Returns the decorated width

pub fn decorated_h(&self) -> i32[src]

Returns the decorated height

Loading content...

Implementors

impl WindowExt for DoubleWindow[src]

impl WindowExt for MenuWindow[src]

impl WindowExt for SingleWindow[src]

Loading content...