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

Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Declarative.Container.Box

Contents

Description

Implementation of Box as a declarative container.

Synopsis

Documentation

data BoxChild event Source #

Describes a child widget to be added with boxAppend to a Box.

Constructors

BoxChild 
Instances
Functor BoxChild Source # 
Instance details

Defined in GI.Gtk.Declarative.Container.Box

Methods

fmap :: (a -> b) -> BoxChild a -> BoxChild b #

(<$) :: a -> BoxChild b -> BoxChild a #

Patchable BoxChild Source # 
Instance details

Defined in GI.Gtk.Declarative.Container.Box

EventSource BoxChild Source # 
Instance details

Defined in GI.Gtk.Declarative.Container.Box

Methods

subscribe :: BoxChild event -> SomeState -> (event -> IO ()) -> IO Subscription Source #

IsContainer Box BoxChild Source # 
Instance details

Defined in GI.Gtk.Declarative.Container.Box

Methods

appendChild :: Box -> BoxChild event -> Widget -> IO () Source #

replaceChild :: Box -> BoxChild event -> Int32 -> Widget -> Widget -> IO () Source #

FromWidget widget Widget => FromWidget widget BoxChild Source #

Any widget that can be converted to a Widget can be wrapped as a BoxChild with the default properties.

Instance details

Defined in GI.Gtk.Declarative.Widget.Conversions

Methods

fromWidget :: widget event -> BoxChild event Source #

ToChildren Box Vector BoxChild Source # 
Instance details

Defined in GI.Gtk.Declarative.Container.Box

Methods

toChildren :: (ManagedPtr Box -> Box) -> Vector (BoxChild event) -> Children BoxChild event Source #

data BoxChildProperties Source #

Values used when packing child widgets into boxes.

Constructors

BoxChildProperties 

Fields

defaultBoxChildProperties :: BoxChildProperties Source #

Defaults for BoxChildProperties. Use these and override specific fields.

Orphan instances

IsContainer Box BoxChild Source # 
Instance details

Methods

appendChild :: Box -> BoxChild event -> Widget -> IO () Source #

replaceChild :: Box -> BoxChild event -> Int32 -> Widget -> Widget -> IO () Source #

ToChildren Box Vector BoxChild Source # 
Instance details

Methods

toChildren :: (ManagedPtr Box -> Box) -> Vector (BoxChild event) -> Children BoxChild event Source #