@js
Desktop is used to model the user's operating system, window manager, and display monitors. See Monitor
to query the desktop monitors.
Slots
- boundsSource
-
static native Rect bounds()
Get the working bounds of the entire desktop which may span multiple Monitors. Also see
Monitor.bounds
andMonitor.screenBounds
. - callAsyncSource
-
static native Void callAsync(|,| f)
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.
- disposeColorSource
-
static native Void disposeColor(Color c)
Free any operating system resources used by the color.
- disposeFontSource
-
static native Void disposeFont(Font f)
Free any operating system resources used by the font.
- disposeImageSource
-
static native Void disposeImage(Image i)
Free any operating system resources used by the image.
- focusSource
-
static native Widget? focus()
Get the current focused widget or return null.
- isMacSource
-
static native Bool isMac()
Is the desktop running a version of Apple OS X.
- isWindowsSource
-
static native Bool isWindows()
Is the desktop running a version of Microsoft Windows.
- platformSource
-
static native Str platform()
Get the platform name: "windows", "mac"
- sysBgSource
-
static native Color sysBg()
System color for background on widgets
- sysBorderSource
-
static native Color sysBorder()
System color for borders on widgets
- sysDarkShadowSource
-
static native Color sysDarkShadow()
System color for dark shadow on widgets
- sysFgSource
-
static native Color sysFg()
System color for foreground and text on widgets
- sysFontSource
-
static native Font sysFont()
Get the default system font.
- sysFontMonospaceSource
-
static native Font sysFontMonospace()
Get the default system mono-spaced font.
- sysHighlightShadowSource
-
static native Color sysHighlightShadow()
System color for highlight shadow on widgets
- sysLightShadowSource
-
static native Color sysLightShadow()
System color for light shadow on widgets
- sysListBgSource
-
static native Color sysListBg()
System color for list background.
- sysListFgSource
-
static native Color sysListFg()
System color for list text.
- sysListSelBgSource
-
static native Color sysListSelBg()
System color for list selection background.
- sysListSelFgSource
-
static native Color sysListSelFg()
System color for list selection text.
- sysNormShadowSource
-
static native Color sysNormShadow()
System color for normal shadow on widgets