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

Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Declarative.Bin

Description

A declarative representation of Bin in GTK.

Synopsis
  • data Bin widget child event where
    • Bin :: (Typeable widget, IsContainer widget, IsBin widget, IsWidget widget, Functor child) => (ManagedPtr widget -> widget) -> Vector (Attribute widget event) -> child event -> Bin widget child event
  • bin :: (Patchable (Bin widget child), Typeable widget, Typeable child, Typeable event, Functor child, IsContainer widget, IsBin widget, IsWidget widget, FromWidget (Bin widget child) target) => (ManagedPtr widget -> widget) -> Vector (Attribute widget event) -> child event -> target event
  • class BinChild bin (child :: * -> *) | bin -> child

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
ToChildren ListBox Vector (Bin ListBoxRow Widget) Source # 
Instance details

Defined in GI.Gtk.Declarative.Container.ListBox

Methods

toChildren :: (ManagedPtr ListBox -> ListBox) -> Vector (Bin ListBoxRow Widget event) -> Children (Bin ListBoxRow Widget) event Source #

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, Patchable child, EventSource child) => FromWidget (Bin widget child) Widget Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

Methods

fromWidget :: (Typeable (Bin widget child), Typeable event) => Bin widget child event -> Widget event Source #

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

Defined in GI.Gtk.Declarative.Bin

Methods

fromWidget :: (Typeable (Bin a c), Typeable event) => Bin a c event -> Bin b d event 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) 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 event

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 ApplicationWindow Widget Source # 
Instance details

Defined in GI.Gtk.Declarative.Bin

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