gtk2hsContentsIndex
Plug
Description
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
type NativeWindowId = Word32
plugNew :: Maybe NativeWindowId -> IO Plug
plugGetId :: PlugClass p => p -> IO NativeWindowId
Documentation
type NativeWindowId = Word32
The identifer of a window to be embedded.
plugNew :: Maybe NativeWindowId -> IO Plug

Create a new Window to hold another application.

  • 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.
plugGetId :: PlugClass p => p -> IO NativeWindowId

Retrieve the NativeWindowId.

  • The result should be passed to the application which is to be embedded. See plugNew.
Produced by Haddock version 0.6