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

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net

Graphics.UI.Gtk.Abstract.Bin

Contents

Description

A container with just one child

Synopsis

Detail

The Bin widget is a container with just one child. It is not very useful itself, but it is useful for deriving subclasses, since it provides common code needed for handling a single child widget.

Many Gtk+ widgets are subclasses of Bin, including Window, Button, Frame, HandleBox, and ScrolledWindow.

Class Hierarchy

 |  GObject
 |   +----Object
 |         +----Widget
 |               +----Container
 |                     +----Bin
 |                           +----Window
 |                           +----Alignment
 |                           +----Frame
 |                           +----Button
 |                           +----Item
 |                           +----ComboBox
 |                           +----EventBox
 |                           +----Expander
 |                           +----HandleBox
 |                           +----ToolItem
 |                           +----ScrolledWindow
 |                           +----Viewport

Types

toBin :: BinClass o => o -> BinSource

Methods

binGetChildSource

Arguments

:: BinClass self 
=> self 
-> IO (Maybe Widget)

returns pointer to child of the Bin

Gets the child of the Bin, or Nothing if the bin contains no child widget.