class fwt::Desktop

sys::Obj
  fwt::Desktop

@Js

Source

Desktop is used to model the user's operating system, window manager, and display monitors. See Monitor to query the desktop monitors.

bounds

static Rect bounds()

Source

Get the working bounds of the entire desktop which may span multiple Monitors. Also see Monitor.bounds and Monitor.screenBounds.

callAsync

static Void callAsync(|->Void| f)

Source

Call the specified function on the UI thread's event loop. If this call is being made on a thread which is not the UI thread, then the function must be immutable. If on the UI thread, then it is ok for the function to be mutable.

callLater

static Void callLater(Duration delay, |->Void| f)

Source

Call the specified function on the UI thread's event loop after a timer period has expired. If this call is being made on a thread which is not the UI thread, then the function must be immutable. If on the UI thread, then it is ok for the function to be mutable.

clipboard

static Clipboard clipboard()

Source

Reference to the system clipboard for data transfer.

disposeColor

@Deprecated { msg="Use Color.dispose" }
static Void disposeColor(Color c)

Source

Free any operating system resources used by the color.

disposeFont

@Deprecated { msg="Use Font.dispose" }
static Void disposeFont(Font f)

Source

Free any operating system resources used by the font.

disposeImage

@Deprecated { msg="Use Image.dispose" }
static Void disposeImage(Image i)

Source

Free any operating system resources used by the image.

focus

static Widget? focus()

Source

Get the current focused widget or return null.

isMac

static Bool isMac()

Source

Is the desktop running a version of Apple OS X.

isWindows

static Bool isWindows()

Source

Is the desktop running a version of Microsoft Windows.

launchProgram

static Bool launchProgram(Uri uri)

Source

Launch the native program registered to open the the given URI. Return true if launch was successful, false on failure.

platform

static Str platform()

Source

Get the platform name: "windows", "mac"

sysBg

static Color sysBg()

Source

System color for background on widgets

sysBorder

static Color sysBorder()

Source

System color for borders on widgets

sysDarkShadow

static Color sysDarkShadow()

Source

System color for dark shadow on widgets

sysFg

static Color sysFg()

Source

System color for foreground and text on widgets

sysFont

static Font sysFont()

Source

Get the default system font. The system font is used for text in menus, dialogs, and full-size controls.

sysFontMonospace

static Font sysFontMonospace()

Source

Get the default system mono-spaced font.

sysFontSmall

static Font sysFontSmall()

Source

Get the default small system font. The small font is used for informative text, column headings in tables, help tags, and for small controls.

sysFontView

static Font sysFontView()

Source

Get the default view system font. The view font is used in controls like Tree and Table.

sysHighlightShadow

static Color sysHighlightShadow()

Source

System color for highlight shadow on widgets

sysLightShadow

static Color sysLightShadow()

Source

System color for light shadow on widgets

sysListBg

static Color sysListBg()

Source

System color for list background.

sysListFg

static Color sysListFg()

Source

System color for list text.

sysListSelBg

static Color sysListSelBg()

Source

System color for list selection background.

sysListSelFg

static Color sysListSelFg()

Source

System color for list selection text.

sysNormShadow

static Color sysNormShadow()

Source

System color for normal shadow on widgets