gi-gtk-declarative-0.4.2: Declarative GTK+ programming in Haskell

Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Declarative.Bin

Description

A declarative representation of Bin in GTK.

Synopsis

Documentation

data Bin widget event where Source #

Declarative version of a bin widget, i.e. a widget with exactly one child.

Constructors

Bin :: (Typeable widget, IsContainer widget, IsBin widget, IsWidget widget) => (ManagedPtr widget -> widget) -> Vector (Attribute widget event) -> Widget event -> Bin widget event 
Instances
ToChildren ListBox Vector (Bin ListBoxRow) Source # 
Instance details

Defined in GI.Gtk.Declarative.Container.ListBox

IsContainer ListBox (Bin ListBoxRow) Source # 
Instance details

Defined in GI.Gtk.Declarative.Container.ListBox

Methods

appendChild :: ListBox -> Bin ListBoxRow event -> Widget -> IO () Source #

replaceChild :: ListBox -> Bin ListBoxRow event -> Int32 -> Widget -> Widget -> IO () Source #

Functor (Bin widget) Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

fmap :: (a -> b) -> Bin widget a -> Bin widget b #

(<$) :: a -> Bin widget b -> Bin widget a #

IsBin parent => Patchable (Bin parent) Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

create :: Bin parent e -> IO SomeState Source #

patch :: SomeState -> Bin parent e1 -> Bin parent e2 -> Patch Source #

IsBin parent => EventSource (Bin parent) Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

subscribe :: Bin parent event -> SomeState -> (event -> IO ()) -> IO Subscription Source #

a ~ b => FromWidget (Bin a) (Bin b) Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

fromWidget :: Bin a event -> Bin b event Source #

bin Source #

Arguments

:: (Patchable (Bin widget), Typeable widget, Typeable event, IsContainer widget, IsBin widget, IsWidget widget, FromWidget (Bin widget) target) 
=> (ManagedPtr widget -> widget)

A bin widget constructor from the underlying gi-gtk library.

-> Vector (Attribute widget event)

List of Attributes.

-> Widget event

The bin's child widget

-> target event

The target, whose type is decided by FromWidget.

Construct a bin widget, i.e. a widget with exactly one child.