gi-gtk-declarative-0.1.0: 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 child event Source #

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

Instances
IsContainer ListBox (Bin ListBoxRow Widget) Source # 
Instance details

Defined in GI.Gtk.Declarative.Container.Patch

Methods

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

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

Functor (Bin widget child) Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

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

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

(BinChild parent child, EventSource child) => EventSource (Bin parent child) Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

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

(BinChild parent child, Patchable child) => Patchable (Bin parent child) Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

create :: Bin parent child e -> IO Widget Source #

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

(BinChild widget child, Typeable widget, Patchable child, EventSource child, Functor (Bin widget child)) => FromWidget (Bin widget child) event (Widget event) Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

fromWidget :: Bin widget child event -> Widget event Source #

(BinChild widget child, a ~ (), Typeable widget, Patchable child, EventSource child, Functor (Bin widget child)) => FromWidget (Bin widget child) event (Markup event a) Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

fromWidget :: Bin widget child event -> Markup event a Source #

a ~ () => FromWidget (Bin widget child) event (MarkupOf (Bin widget child) event a) Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

fromWidget :: Bin widget child event -> MarkupOf (Bin widget child) event a Source #

bin Source #

Arguments

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

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

-> [Attribute widget event]

List of Attributes.

-> child event

The bin's child widget, whose type is decided by the BinChild instance.

-> target

The target, whose type is decided by FromWidget.

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