gtk-0.11.0: Binding to the Gtk+ graphical user interface library.Source codeContentsIndex
Graphics.UI.Gtk.Abstract.Object
Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Contents
Detail
Class Hierarchy
Types
Methods
Weak references
Signals
Description

The base class of the Gtk+ type hierarchy.

  • Each widget is a represented as a purely abstract data type. It can only be accessed through and the special access functions that are defined in each widget file.
Synopsis
data Object
class GObjectClass o => ObjectClass o
castToObject :: GObjectClass obj => obj -> Object
gTypeObject :: GType
toObject :: ObjectClass o => o -> Object
makeNewObject :: ObjectClass obj => (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
type GWeakNotify = FunPtr (Ptr () -> Ptr GObject -> IO ())
objectWeakref :: ObjectClass o => o -> IO () -> IO GWeakNotify
objectWeakunref :: ObjectClass o => o -> GWeakNotify -> IO ()
objectDestroy :: ObjectClass self => Signal self (IO ())
Detail
Object is the base class for all widgets, and for a few non-widget objects such as Adjustment. Object predates GObject; non-widgets that derive from Object rather than GObject do so for backward compatibility reasons.
Class Hierarchy
 | GObject
 | +----Object
 | +----Widget
 | +----Adjustment
 | +----CellRenderer
 | +----FileFilter
 | +----ItemFactory
 | +----Tooltips
 | +----TreeViewColumn
Types
data Object Source
class GObjectClass o => ObjectClass o Source
castToObject :: GObjectClass obj => obj -> ObjectSource
gTypeObject :: GTypeSource
toObject :: ObjectClass o => o -> ObjectSource
Methods
makeNewObject :: ObjectClass obj => (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO objSource
Weak references
type GWeakNotify = FunPtr (Ptr () -> Ptr GObject -> IO ())Source
objectWeakref :: ObjectClass o => o -> IO () -> IO GWeakNotifySource
Attach a callback that will be called after the destroy hooks have been called
objectWeakunref :: ObjectClass o => o -> GWeakNotify -> IO ()Source
Detach a weak destroy callback function
Signals
objectDestroy :: ObjectClass self => Signal self (IO ())Source
Signals that all holders of a reference to the Object should release the reference that they hold. May result in finalization of the object if all references are released.
Produced by Haddock version 2.6.0