gi-gtk-3.0.28: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.Bin

Contents

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

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

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.