Name

Plug —

Plug is a window that is to be attached to the window of another application. If you have managed to receive the XID from the inviting application you can construct the Plug and add your widgets to it.

Synopsis

plugNew:: Maybe NativeWindowId -> IO Plug
plugGetId:: PlugClass p => p -> IO NativeWindowId
onEmbedded:: PlugClass p => p -> IO () -> IO (ConnectId p)

Constructors

plugNew

Create a new Window to hold another application.

plugNew:: Maybe NativeWindowId:: IO Plug
mnw

The Plug may be constructed with a NativeWindowId. In this the foreign application will immediatly appear in this Plug once it is shown. If Nothing is passed for nmw a NativeWindowId can be extracted from this Plug and be passed to the application which is to be embedded.

Methods

plugGetId

Retrieve the NativeWindowId.

plugGetId:: p:: IO NativeWindowId
p

The result should be passed to the application which is to be embedded. See plugNew.

Signals

onEmbedded

This plug received another application.

onEmbedded:: p:: IO ():: IO (ConnectId p)