|
|
|
|
|
Description |
Implements the base GObject class to satisfy the type checker.
|
|
Synopsis |
|
|
|
Documentation |
|
newtype GObject |
|
|
class GObjectClass o |
|
|
toGObject :: GObjectClass o => o -> GObject |
|
fromGObject :: GObjectClass o => GObject -> o |
|
castToGObject :: GObjectClass obj => obj -> obj |
|
objectNew :: GType -> [(String, GValue)] -> IO (Ptr GObject) |
Construct a new object (should rairly be used directly)
|
|
objectRef :: GObjectClass obj => Ptr obj -> IO () |
Increase the reference counter of an object
|
|
objectUnref :: Ptr a -> FinalizerPtr a |
|
makeNewGObject :: GObjectClass obj => (ForeignPtr obj -> obj) -> IO (Ptr obj) -> IO obj |
This is a convenience function to generate an object that does not
derive from Object. It adds objectUnref as finalizer.
- The constr argument is the contructor of the specific object.
|
|
type GWeakNotify = FunPtr (Ptr () -> Ptr GObject -> IO ()) |
|
mkDestructor :: IO () -> IO GWeakNotify |
|
objectWeakref :: GObjectClass o => o -> IO () -> IO GWeakNotify |
Attach a callback that will be called after the
destroy hooks have been called
|
|
objectWeakunref :: GObjectClass o => o -> GWeakNotify -> IO () |
Detach a weak destroy callback function
|
|
Produced by Haddock version 0.6 |