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.
plugNew:: Maybe NativeWindowId -> IO Plug |
plugGetId:: PlugClass p => p -> IO NativeWindowId |
onEmbedded:: PlugClass p => p -> IO () -> IO (ConnectId p) |
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.
Retrieve the NativeWindowId.
| plugGetId | :: p | :: IO NativeWindowId |
| p |
The result should be passed to the application which is to be embedded. See plugNew.