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

Contents

Description

The tBin 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 tBin, including tWindow, tButton, tFrame, tHandleBox or tScrolledWindow.

Synopsis

Exported types

newtype Bin Source #

Memory-managed wrapper type.

Constructors

Bin (ManagedPtr Bin) 
Instances
Eq Bin Source # 
Instance details

Defined in GI.Gtk.Objects.Bin

Methods

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

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

GObject Bin Source # 
Instance details

Defined in GI.Gtk.Objects.Bin

Methods

gobjectType :: IO GType

IsGValue Bin Source #

Convert Bin to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.Bin

Methods

toGValue :: Bin -> IO GValue

fromGValue :: GValue -> IO Bin

HasParentTypes Bin Source # 
Instance details

Defined in GI.Gtk.Objects.Bin

type ParentTypes Bin Source # 
Instance details

Defined in GI.Gtk.Objects.Bin

type ParentTypes Bin = Container ': (Widget ': (Object ': (ImplementorIface ': (Buildable ': ([] :: [Type])))))

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
(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 tBin

-> m (Maybe Widget)

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

Gets the child of the tBin, 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.