Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype Socket = Socket (ForeignPtr Socket)
- class GObject o => SocketK o
- toSocket :: SocketK o => o -> IO Socket
- noSocket :: Maybe Socket
- socketAddId :: (MonadIO m, SocketK a) => a -> Word64 -> m ()
- socketGetId :: (MonadIO m, SocketK a) => a -> m Word64
- socketGetPlugWindow :: (MonadIO m, SocketK a) => a -> m Window
- socketNew :: MonadIO m => m Socket
- type SocketPlugAddedCallback = IO ()
- type SocketPlugAddedCallbackC = Ptr () -> Ptr () -> IO ()
- data SocketPlugAddedSignalInfo
- afterSocketPlugAdded :: (GObject a, MonadIO m) => a -> SocketPlugAddedCallback -> m SignalHandlerId
- mkSocketPlugAddedCallback :: SocketPlugAddedCallbackC -> IO (FunPtr SocketPlugAddedCallbackC)
- noSocketPlugAddedCallback :: Maybe SocketPlugAddedCallback
- onSocketPlugAdded :: (GObject a, MonadIO m) => a -> SocketPlugAddedCallback -> m SignalHandlerId
- socketPlugAddedCallbackWrapper :: SocketPlugAddedCallback -> Ptr () -> Ptr () -> IO ()
- socketPlugAddedClosure :: SocketPlugAddedCallback -> IO Closure
- type SocketPlugRemovedCallback = IO Bool
- type SocketPlugRemovedCallbackC = Ptr () -> Ptr () -> IO CInt
- data SocketPlugRemovedSignalInfo
- afterSocketPlugRemoved :: (GObject a, MonadIO m) => a -> SocketPlugRemovedCallback -> m SignalHandlerId
- mkSocketPlugRemovedCallback :: SocketPlugRemovedCallbackC -> IO (FunPtr SocketPlugRemovedCallbackC)
- noSocketPlugRemovedCallback :: Maybe SocketPlugRemovedCallback
- onSocketPlugRemoved :: (GObject a, MonadIO m) => a -> SocketPlugRemovedCallback -> m SignalHandlerId
- socketPlugRemovedCallbackWrapper :: SocketPlugRemovedCallback -> Ptr () -> Ptr () -> IO CInt
- socketPlugRemovedClosure :: SocketPlugRemovedCallback -> IO Closure
Exported types
GObject Socket Source | |
type ParentTypes Socket Source | |
type AttributeList Socket Source | |
type SignalList Socket Source |
Methods
socketAddId
socketAddId :: (MonadIO m, SocketK a) => a -> Word64 -> m () Source
socketGetId
socketGetId :: (MonadIO m, SocketK a) => a -> m Word64 Source
socketGetPlugWindow
socketGetPlugWindow :: (MonadIO m, SocketK a) => a -> m Window Source
socketNew
Signals
PlugAdded
type SocketPlugAddedCallback = IO () Source
type SocketPlugAddedCallbackC = Ptr () -> Ptr () -> IO () Source
afterSocketPlugAdded :: (GObject a, MonadIO m) => a -> SocketPlugAddedCallback -> m SignalHandlerId Source
mkSocketPlugAddedCallback :: SocketPlugAddedCallbackC -> IO (FunPtr SocketPlugAddedCallbackC) Source
onSocketPlugAdded :: (GObject a, MonadIO m) => a -> SocketPlugAddedCallback -> m SignalHandlerId Source
socketPlugAddedCallbackWrapper :: SocketPlugAddedCallback -> Ptr () -> Ptr () -> IO () Source
PlugRemoved
type SocketPlugRemovedCallback = IO Bool Source
afterSocketPlugRemoved :: (GObject a, MonadIO m) => a -> SocketPlugRemovedCallback -> m SignalHandlerId Source
mkSocketPlugRemovedCallback :: SocketPlugRemovedCallbackC -> IO (FunPtr SocketPlugRemovedCallbackC) Source
onSocketPlugRemoved :: (GObject a, MonadIO m) => a -> SocketPlugRemovedCallback -> m SignalHandlerId Source
socketPlugRemovedCallbackWrapper :: SocketPlugRemovedCallback -> Ptr () -> Ptr () -> IO CInt Source