djnativeswing-clj.native-interface

Holds functions for controlling the native interface, a mechanism
which the DJ Native Swing widgets mostly depend on.

DJ Native Swing widgets are implemented using native components
(through SWT). This requires communicational infrastructure which the
native interface provides. You will typically want only the aliases
provided in djnativeswing-clj.core.

See:
  http://djproject.sourceforge.net/ns/documentation/javadoc/chrriis.dj.nativeswing.swtimpl.NativeInterface

close!

(close!)
Closes the native interface. Prefer the alias
djnativeswing-clj.core/close-native-interface!.

event-pump-running?

(event-pump-running?)
Returns true iff the event pump is currently running.

initialize!

(initialize!)
Initializes the native interface if not already done. This function doesn't
open the interface after the initialization. The native interface should be
initialized and opened before any widgets are created and used.

See:
  (djnativeswing-clj.native-interface/open!)

initialized?

(initialized?)
Returns true iff the native interface has been initialized.

open!

(open!)
Opens the native interface and initializes it if not already done. The native
interface should be initialized and opened before any widgets are created and
used. Prefer the alias djnativeswing-clj.core/open-native-interface!.

See:
  (djnativeswing-clj.native-interface/initialize!)
  (djnativeswing-clj.native-interface/close!)

open?

(open?)
Returns true iff the native interface has been opened.

run-event-pump!

(run-event-pump!)
Runs the native event pump which is required for the correct operation of the
DJ Native Swing widgets on some platforms. It should always be called after
the native interface is initialized.

ui-thread?

(ui-thread? native-side)
Returns true if the current thread is the UI thread of the native side when
the parameter is true or of the Swing side when the parameter is false.