wx-0.12.1.2: wxHaskell

Portabilityportable
Stabilityprovisional
Maintainerwxhaskell-devel@lists.sourceforge.net

Graphics.UI.WX.Layout

Contents

Description

Just re-exports functionality of Graphics.UI.WXCore.Layout. See that module for a description of layout combinators.

Any object in the Form class has a layout attribute to specify the layout. Here is a short example:

 do f <- frame [text := "layout demo"]
    q <- button f [text := "quit", on command := close f]
    set f [layout := margin 10 $
                     floatCentre $
                     column 5 [label "hi",widget q]]

Synopsis

Classes

class Form w whereSource

Forms can contain other widgets.

Methods

layout :: Attr w LayoutSource

Set the layout of the child widgets.

Instances

Form (Panel a) 
Form (Frame a) 
Form (Dialog a) 

Layout