gtk3-0.15.10: Binding to the Gtk+ 3 graphical user interface library

Maintainer | gtk2hs-users@lists.sourceforge.net
Stability | provisional
Portability | portable (depends on GHC)
Safe Haskell | None
Language | Haskell98

Graphics.UI.Gtk.Abstract.Bin

Contents

- Detail
- Class Hierarchy
- Types
- Methods

Description

A container with just one child

Synopsis

- data Bin
- class ContainerClass o => BinClass o
- castToBin :: GObjectClass obj => obj -> Bin
- gTypeBin :: GType
- toBin :: BinClass o => o -> Bin
- binGetChild :: BinClass self => self -> IO (Maybe Widget)

# 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

data Bin Source #

#### Instances

Instances details

Eq Bin Source # |
Instance details Defined in Graphics.UI.Gtk.Types Methods (==) :: Bin -> Bin -> Bool Source # (/=) :: Bin -> Bin -> Bool Source #
Ord Bin Source # |
Instance details Defined in Graphics.UI.Gtk.Types Methods compare :: Bin -> Bin -> Ordering Source # (<) :: Bin -> Bin -> Bool Source # (<=) :: Bin -> Bin -> Bool Source # (>) :: Bin -> Bin -> Bool Source # (>=) :: Bin -> Bin -> Bool Source # max :: Bin -> Bin -> Bin Source # min :: Bin -> Bin -> Bin Source #
GObjectClass Bin Source # |
Instance details Defined in Graphics.UI.Gtk.Types Methods toGObject :: Bin -> GObject Source # unsafeCastGObject :: GObject -> Bin Source #
BinClass Bin Source # |
Instance details Defined in Graphics.UI.Gtk.Types
ContainerClass Bin Source # |
Instance details Defined in Graphics.UI.Gtk.Types
WidgetClass Bin Source # |
Instance details Defined in Graphics.UI.Gtk.Types

class ContainerClass o => BinClass o Source #

#### Instances

Instances details

BinClass Plug Source # |
Instance details Defined in Graphics.UI.Gtk.Embedding.Types
BinClass AboutDialog Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass Alignment Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass AspectFrame Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass Assistant Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass Bin Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass Button Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass CheckButton Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass CheckMenuItem Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass ColorButton Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass ColorSelectionDialog Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass ComboBox Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass Dialog Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass EventBox Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass Expander Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass FileChooserDialog Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass FontButton Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass FontSelectionDialog Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass Frame Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass HandleBox Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass ImageMenuItem Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass LinkButton Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass MenuItem Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass MenuToolButton Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass MessageDialog Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass OffscreenWindow Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass Overlay Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass RadioButton Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass RadioMenuItem Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass RadioToolButton Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass ScaleButton Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass ScrolledWindow Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass SeparatorMenuItem Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass SeparatorToolItem Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass StackSwitcher Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass TearoffMenuItem Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass ToggleButton Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass ToggleToolButton Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass ToolButton Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass ToolItem Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass Viewport Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass VolumeButton Source # |
Instance details Defined in Graphics.UI.Gtk.Types
BinClass Window Source # |
Instance details Defined in Graphics.UI.Gtk.Types

castToBin :: GObjectClass obj => obj -> Bin Source #

gTypeBin :: GType Source #

toBin :: BinClass o => o -> Bin Source #

# Methods

binGetChild Source #

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.