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

Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Declarative.SingleWidget

Description

A declarative representation of Widget in GTK without children.

Synopsis

Documentation

data SingleWidget widget event Source #

Declarative version of a leaf widget, i.e. a widget without any children.

Instances
Functor (SingleWidget widget) Source # 
Instance details

Defined in GI.Gtk.Declarative.SingleWidget

Methods

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

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

EventSource (SingleWidget widget) Source # 
Instance details

Defined in GI.Gtk.Declarative.SingleWidget

Methods

subscribe :: SingleWidget widget event -> Widget -> (event -> IO ()) -> IO Subscription Source #

Patchable (SingleWidget widget) Source # 
Instance details

Defined in GI.Gtk.Declarative.SingleWidget

Methods

create :: SingleWidget widget e -> IO Widget Source #

patch :: SingleWidget widget e1 -> SingleWidget widget e2 -> Patch Source #

(Typeable widget, Functor (SingleWidget widget)) => FromWidget (SingleWidget widget) event (Widget event) Source # 
Instance details

Defined in GI.Gtk.Declarative.SingleWidget

Methods

fromWidget :: SingleWidget widget event -> Widget event Source #

(Typeable widget, Functor (SingleWidget widget)) => FromWidget (SingleWidget widget) event (Markup event ()) Source # 
Instance details

Defined in GI.Gtk.Declarative.SingleWidget

Methods

fromWidget :: SingleWidget widget event -> Markup event () Source #

FromWidget (SingleWidget widget) event (MarkupOf (SingleWidget widget) event ()) Source # 
Instance details

Defined in GI.Gtk.Declarative.SingleWidget

Methods

fromWidget :: SingleWidget widget event -> MarkupOf (SingleWidget widget) event () Source #

widget Source #

Arguments

:: (Typeable widget, Typeable event, Functor (Attribute widget), IsWidget widget, FromWidget (SingleWidget widget) event target) 
=> (ManagedPtr widget -> widget)

A widget constructor from the underlying gi-gtk library.

-> [Attribute widget event]

List of Attributes.

-> target

The target, whose type is decided by FromWidget.

Construct a leaf widget, i.e. one without any children.