Gtk2HsContentsIndex
Graphics.UI.Gtk.Embedding.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
data Plug
class WindowClass o => PlugClass o
castToPlug :: GObjectClass obj => obj -> Plug
type NativeWindowId = Word32
plugNew :: Maybe NativeWindowId -> IO Plug
plugGetId :: PlugClass p => p -> IO NativeWindowId
Documentation
data Plug
Instances
PlugClass Plug
WindowClass Plug
BinClass Plug
ContainerClass Plug
WidgetClass Plug
ObjectClass Plug
GObjectClass Plug
class WindowClass o => PlugClass o
Instances
PlugClass Plug
castToPlug :: GObjectClass obj => obj -> Plug
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