gi-gtk-3.0.32: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.Bin

Description

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 or ScrolledWindow.

Synopsis

Exported types

newtype Bin Source #

Memory-managed wrapper type.

Constructors

Bin (ManagedPtr Bin) 

Instances

Instances details
Eq Bin Source # 
Instance details

Defined in GI.Gtk.Objects.Bin

Methods

(==) :: Bin -> Bin -> Bool #

(/=) :: Bin -> Bin -> Bool #

IsGValue Bin Source #

Convert Bin to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.Bin

GObject Bin Source # 
Instance details

Defined in GI.Gtk.Objects.Bin

Methods

gobjectType :: IO GType #

HasParentTypes Bin Source # 
Instance details

Defined in GI.Gtk.Objects.Bin

type ParentTypes Bin Source # 
Instance details

Defined in GI.Gtk.Objects.Bin

class (GObject o, IsDescendantOf Bin o) => IsBin o Source #

Type class for types which can be safely cast to Bin, for instance with toBin.

Instances

Instances details
(GObject o, IsDescendantOf Bin o) => IsBin o Source # 
Instance details

Defined in GI.Gtk.Objects.Bin

toBin :: (MonadIO m, IsBin o) => o -> m Bin Source #

Cast to Bin, for types for which this is known to be safe. For general casts, use castTo.

noBin :: Maybe Bin Source #

A convenience alias for Nothing :: Maybe Bin.

Methods

Overloaded methods

getChild

binGetChild Source #

Arguments

:: (HasCallStack, MonadIO m, IsBin a) 
=> a

bin: a Bin

-> m (Maybe Widget)

Returns: the child of bin, or Nothing if it does not have a child.

Gets the child of the Bin, or Nothing if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.