gi-gtk-declarative-0.2.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 #

Patchable (SingleWidget widget) Source # 
Instance details

Defined in GI.Gtk.Declarative.SingleWidget

Methods

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

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

EventSource (SingleWidget widget) Source # 
Instance details

Defined in GI.Gtk.Declarative.SingleWidget

Methods

subscribe :: SingleWidget widget event -> SomeState -> (event -> IO ()) -> IO Subscription 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.

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