gtk-0.11.0: Binding to the Gtk+ graphical user interface library.

Portabilityportable (depends on GHC)




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.



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


class GObjectClass o => ObjectClass o Source


ObjectClass Builder 
ObjectClass FileFilter 
ObjectClass CellRendererProgress 
ObjectClass CellRendererToggle 
ObjectClass CellRendererCombo 
ObjectClass CellRendererText 
ObjectClass CellRendererPixbuf 
ObjectClass CellRenderer 
ObjectClass TreeViewColumn 
ObjectClass Tooltips 
ObjectClass ItemFactory 
ObjectClass IMMulticontext 
ObjectClass IMContext 
ObjectClass Adjustment 
ObjectClass ProgressBar 
ObjectClass Preview 
ObjectClass Invisible 
ObjectClass VSeparator 
ObjectClass HSeparator 
ObjectClass Separator 
ObjectClass VScrollbar 
ObjectClass HScrollbar 
ObjectClass Scrollbar 
ObjectClass VScale 
ObjectClass HScale 
ObjectClass Scale 
ObjectClass Range 
ObjectClass VRuler 
ObjectClass HRuler 
ObjectClass Ruler 
ObjectClass SpinButton 
ObjectClass Entry 
ObjectClass DrawingArea 
ObjectClass CellView 
ObjectClass Calendar 
ObjectClass TreeView 
ObjectClass Toolbar 
ObjectClass TextView 
ObjectClass Table 
ObjectClass Socket 
ObjectClass Notebook 
ObjectClass MenuBar 
ObjectClass Menu 
ObjectClass MenuShell 
ObjectClass List 
ObjectClass Layout 
ObjectClass IconView 
ObjectClass VPaned 
ObjectClass HPaned 
ObjectClass Paned 
ObjectClass Fixed 
ObjectClass CTree 
ObjectClass CList 
ObjectClass Statusbar 
ObjectClass FileChooserButton 
ObjectClass Combo 
ObjectClass HBox 
ObjectClass FileChooserWidget 
ObjectClass FontSelection 
ObjectClass ColorSelection 
ObjectClass VBox 
ObjectClass VButtonBox 
ObjectClass HButtonBox 
ObjectClass ButtonBox 
ObjectClass Box 
ObjectClass SeparatorToolItem 
ObjectClass RadioToolButton 
ObjectClass ToggleToolButton 
ObjectClass MenuToolButton 
ObjectClass ToolButton 
ObjectClass ToolItem 
ObjectClass ComboBoxEntry 
ObjectClass ComboBox 
ObjectClass Expander 
ObjectClass Viewport 
ObjectClass ScrolledWindow 
ObjectClass HandleBox 
ObjectClass EventBox 
ObjectClass Plug 
ObjectClass MessageDialog 
ObjectClass InputDialog 
ObjectClass FontSelectionDialog 
ObjectClass FileChooserDialog 
ObjectClass FileSelection 
ObjectClass ColorSelectionDialog 
ObjectClass AboutDialog 
ObjectClass Dialog 
ObjectClass Window 
ObjectClass ListItem 
ObjectClass SeparatorMenuItem 
ObjectClass ImageMenuItem 
ObjectClass TearoffMenuItem 
ObjectClass RadioMenuItem 
ObjectClass CheckMenuItem 
ObjectClass MenuItem 
ObjectClass Item 
ObjectClass OptionMenu 
ObjectClass FontButton 
ObjectClass ColorButton 
ObjectClass RadioButton 
ObjectClass CheckButton 
ObjectClass ToggleButton 
ObjectClass Button 
ObjectClass AspectFrame 
ObjectClass Frame 
ObjectClass Alignment 
ObjectClass Bin 
ObjectClass Container 
ObjectClass Image 
ObjectClass Arrow 
ObjectClass TipsQuery 
ObjectClass AccelLabel 
ObjectClass Label 
ObjectClass Misc 
ObjectClass Widget 
ObjectClass Object 


makeNewObject :: ObjectClass obj => (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO objSource

Weak references

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


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.