[][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;
unsafe fn raw_handle(&self) -> *const c_void; }

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

unsafe fn raw_handle(&self) -> *const c_void

Get the raw system handle of the window void pointer to: (Windows: HWND, X11: Xid, MacOS: NSWindow)

Loading content...

Implementors

impl WindowExt for DoubleWindow[src]

impl WindowExt for GlWindow[src]

impl WindowExt for MenuWindow[src]

impl WindowExt for Window[src]

Loading content...