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

const 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

const 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

const 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

const static Clipboard clipboard()

Source

Reference to the system clipboard for data transfer.

disposeColor

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

Source

Free any operating system resources used by the color.

disposeFont

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

Source

Free any operating system resources used by the font.

disposeImage

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

Source

Free any operating system resources used by the image.

focus

const static Widget? focus()

Source

Get the current focused widget or return null.

isMac

const static Bool isMac()

Source

Is the desktop running a version of Apple OS X.

isWindows

const static Bool isWindows()

Source

Is the desktop running a version of Microsoft Windows.

launchProgram

const 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

const static Str platform()

Source

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

sysBg

const static Color sysBg()

Source

System color for background on widgets

sysBorder

const static Color sysBorder()

Source

System color for borders on widgets

sysDarkShadow

const static Color sysDarkShadow()

Source

System color for dark shadow on widgets

sysFg

const static Color sysFg()

Source

System color for foreground and text on widgets

sysFont

const static Font sysFont()

Source

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

sysFontMonospace

const static Font sysFontMonospace()

Source

Get the default system mono-spaced font.

sysFontSmall

const 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

const static Font sysFontView()

Source

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

sysHighlightShadow

const static Color sysHighlightShadow()

Source

System color for highlight shadow on widgets

sysLightShadow

const static Color sysLightShadow()

Source

System color for light shadow on widgets

sysListBg

const static Color sysListBg()

Source

System color for list background.

sysListFg

const static Color sysListFg()

Source

System color for list text.

sysListSelBg

const static Color sysListSelBg()

Source

System color for list selection background.

sysListSelFg

const static Color sysListSelFg()

Source

System color for list selection text.

sysNormShadow

const static Color sysNormShadow()

Source

System color for normal shadow on widgets