Fan

 

class

fwt::Desktop

sys::Obj
  fwt::Desktop

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 and Monitor.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.

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"