Safe Haskell | None |
---|---|
Language | Haskell2010 |
Implementations for common Gtk.Container.
Synopsis
- data Container widget children event
- container :: (Patchable (Container widget (Children child)), Typeable widget, Typeable child, Typeable event, Functor child, IsWidget widget, IsContainer widget, FromWidget (Container widget (Children child)) target, ToChildren widget parent child) => (ManagedPtr widget -> widget) -> Vector (Attribute widget event) -> parent (child event) -> target event
- data Children child event
- class ToChildren widget parent child | widget -> parent, widget -> child where
- toChildren :: (ManagedPtr widget -> widget) -> parent (child event) -> Children child event
Documentation
data Container widget children event Source #
Declarative version of a container widget, i.e. a widget with zero
or more child widgets. The type of children
is parameterized, and differs
across the supported container widgets, as some containers require specific
types of child widgets. These type relations are decided by IsContainer
,
and instances can found in GI.Gtk.Declarative.Container.Patch.
Instances
Functor (Container widget children) Source # | |
(Patchable child, Typeable child, IsContainer container child) => Patchable (Container container (Children child)) Source # | |
(Typeable child, EventSource child) => EventSource (Container widget (Children child)) Source # | |
Defined in GI.Gtk.Declarative.Container | |
(Typeable widget, Typeable children, Patchable (Container widget children), EventSource (Container widget children), Functor (Container widget children)) => FromWidget (Container widget children) Widget Source # | |
Defined in GI.Gtk.Declarative.Container fromWidget :: Container widget children event -> Widget event Source # | |
a ~ b => FromWidget (Container a children) (Container b children) Source # | |
Defined in GI.Gtk.Declarative.Container fromWidget :: Container a children event -> Container b children event Source # |
:: (Patchable (Container widget (Children child)), Typeable widget, Typeable child, Typeable event, Functor child, IsWidget widget, IsContainer widget, FromWidget (Container widget (Children child)) target, ToChildren widget parent child) | |
=> (ManagedPtr widget -> widget) | A container widget constructor from the underlying gi-gtk library. |
-> Vector (Attribute widget event) | |
-> parent (child event) | The container's |
-> target event | The target, whose type is decided by |
Construct a container widget, i.e. a widget with zero or more children.
data Children child event Source #
Common collection type for child widgets, used when patching containers.
Instances
Functor child => Functor (Children child) Source # | |
(Patchable child, Typeable child, IsContainer container child) => Patchable (Container container (Children child)) Source # | |
(Typeable child, EventSource child) => EventSource (Container widget (Children child)) Source # | |
Defined in GI.Gtk.Declarative.Container |
class ToChildren widget parent child | widget -> parent, widget -> child where Source #
Converts a specific collection type to Children
.
Nothing
toChildren :: (ManagedPtr widget -> widget) -> parent (child event) -> Children child event Source #
toChildren :: parent ~ Vector => (ManagedPtr widget -> widget) -> parent (child event) -> Children child event Source #
Instances
ToChildren Box Vector BoxChild Source # | |
Defined in GI.Gtk.Declarative.Container.Box | |
ToChildren Menu Vector MenuItem Source # | |
Defined in GI.Gtk.Declarative.Container.MenuItem | |
ToChildren MenuBar Vector MenuItem Source # | |
Defined in GI.Gtk.Declarative.Container.MenuItem | |
ToChildren ListBox Vector (Bin ListBoxRow) Source # | |
Defined in GI.Gtk.Declarative.Container.ListBox |