Safe Haskell | None |
---|---|
Language | Haskell2010 |
Shared interfaces for containers.
Synopsis
- class IsContainer container child | container -> child where
- newtype Children child event = Children {
- unChildren :: Vector (child event)
- class ToChildren widget parent child | widget -> parent, widget -> child where
Documentation
class IsContainer container child | container -> child where Source #
Describes supported GTK+ containers and their specialized APIs for appending and replacing child widgets.
:: container | Container widget |
-> child event | Declarative child widget |
-> Widget | GTK child widget to append |
-> IO () |
Append a child widget to the container.
:: container | Container widget |
-> child event | Declarative child widget |
-> Int32 | Index to replace at |
-> Widget | Old GTK widget to replace |
-> Widget | New GTK widget to replace with |
-> IO () |
Replace the child widget at the given index in the container.
Instances
IsContainer Box BoxChild Source # | |
Defined in GI.Gtk.Declarative.Container.Patch | |
IsContainer Menu MenuItem Source # | |
Defined in GI.Gtk.Declarative.Container.MenuItem | |
IsContainer MenuBar MenuItem Source # | |
Defined in GI.Gtk.Declarative.Container.MenuItem | |
IsContainer MenuShell MenuItem Source # | |
Defined in GI.Gtk.Declarative.Container.MenuItem | |
IsContainer Paned Pane Source # | |
Defined in GI.Gtk.Declarative.Container.Paned | |
IsContainer ListBox (Bin ListBoxRow Widget) Source # | |
Defined in GI.Gtk.Declarative.Container.Patch |
newtype Children child event Source #
Common collection type for child widgets, used when patching containers.
Children | |
|
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
.
toChildren :: (ManagedPtr widget -> widget) -> parent (child event) -> Children child event Source #
toChildren :: parent ~ [] => (ManagedPtr widget -> widget) -> parent (child event) -> Children child event Source #
Instances
ToChildren Box [] BoxChild Source # | |
Defined in GI.Gtk.Declarative.Container.Box | |
ToChildren Menu [] MenuItem Source # | |
Defined in GI.Gtk.Declarative.Container.MenuItem | |
ToChildren MenuBar [] MenuItem Source # | |
Defined in GI.Gtk.Declarative.Container.MenuItem | |
ToChildren ListBox [] (Bin ListBoxRow Widget) Source # | |
Defined in GI.Gtk.Declarative.Container.ListBox |