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

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 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;
fn decorated_w(&self) -> i32;
fn decorated_h(&self) -> i32;
fn size_range(&mut self, min_w: i32, min_h: i32, max_w: i32, max_h: i32);
fn hotspot<W: WidgetExt>(&mut self, w: &W)
    where
        Self: Sized
; }

Defines the methods implemented by all window widgets

Required methods

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

Positions the window to the center of the screen

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

Makes a window modal, should be called before show

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

Makes a window fullscreen

fn make_current(&mut self)[src]

Makes the window current

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

Returns the icon of the window

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

Sets the windows icon. Supported formats are bmp, jpeg, png and rgb

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

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

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

Returns whether a window is shown

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

Sets whether the window has a border

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

Returns whether a window has a border

fn free_position(&mut self)[src]

Frees the position of the window

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

Get the raw system handle of the window

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.

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

Get the graphical draw region of the window

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

Set the graphical draw region of the window

Safety

The data must be valid.

fn iconize(&mut self)[src]

Iconifies the window

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

Returns whether the window is fullscreen or not

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

Returns the decorated width

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

Returns the decorated height

fn size_range(&mut self, min_w: i32, min_h: i32, max_w: i32, max_h: i32)[src]

Set the window’s minimum width, minimum height, max width and max height

fn hotspot<W: WidgetExt>(&mut self, w: &W) where
    Self: Sized
[src]

Set the hotspot widget of the window

Loading content...

Implementors

impl WindowExt for DoubleWindow[src]

impl WindowExt for GlWindow[src]

impl WindowExt for GlutWindow[src]

impl WindowExt for MenuWindow[src]

impl WindowExt for OverlayWindow[src]

impl WindowExt for SingleWindow[src]

Loading content...