Safe Haskell | None |
---|---|
Language | Haskell2010 |
A declarative representation of Widget
in GTK without children.
Synopsis
- data SingleWidget widget event
- widget :: (Typeable widget, IsWidget widget, FromWidget (SingleWidget widget) target) => (ManagedPtr widget -> widget) -> Vector (Attribute widget event) -> target event
Documentation
data SingleWidget widget event Source #
Declarative version of a leaf widget, i.e. a widget without any children.
Instances
Functor (SingleWidget widget) Source # | |
Defined in GI.Gtk.Declarative.SingleWidget fmap :: (a -> b) -> SingleWidget widget a -> SingleWidget widget b # (<$) :: a -> SingleWidget widget b -> SingleWidget widget a # | |
Patchable (SingleWidget widget) Source # | |
Defined in GI.Gtk.Declarative.SingleWidget create :: SingleWidget widget e -> IO SomeState Source # patch :: SomeState -> SingleWidget widget e1 -> SingleWidget widget e2 -> Patch Source # | |
EventSource (SingleWidget widget) Source # | |
Defined in GI.Gtk.Declarative.SingleWidget subscribe :: SingleWidget widget event -> SomeState -> (event -> IO ()) -> IO Subscription Source # |
:: (Typeable widget, IsWidget widget, FromWidget (SingleWidget widget) target) | |
=> (ManagedPtr widget -> widget) | A widget constructor from the underlying gi-gtk library. |
-> Vector (Attribute widget event) | List of |
-> target event | The target, whose type is decided by |
Construct a leaf widget, i.e. one without any children.