gi-gtk-declarative-0.2.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 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, Functor child) => (ManagedPtr widget -> widget) -> Vector (Attribute widget event) -> child event -> Bin widget child event 
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, Patchable child) => Patchable (Bin parent child) Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

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

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

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

Defined in GI.Gtk.Declarative.Bin

Methods

subscribe :: Bin parent child event -> SomeState -> (event -> IO ()) -> IO Subscription 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 #

FromWidget (Bin widget child) event (Bin widget child event) Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

fromWidget :: Bin widget child event -> Bin widget child event 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) 
=> (ManagedPtr widget -> widget)

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

-> Vector (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.

class BinChild bin (child :: * -> *) | bin -> child Source #

Supported Bins.

Instances
BinChild Dialog Widget Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

BinChild ListBoxRow Widget Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

BinChild MenuItem Widget Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

BinChild ScrolledWindow Widget Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

BinChild Window Widget Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin