Copyright | (c) Daan Leijen 2003 |
---|---|
License | wxWindows |
Maintainer | wxhaskell-devel@lists.sourceforge.net |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
- type Window a = EvtHandler (CWindow a)
- window :: Window a -> [Prop (Window ())] -> IO (Window ())
- refit :: Window a -> IO ()
- refitMinimal :: Window a -> IO ()
- rootParent :: ReadAttr (Window a) (Window ())
- frameParent :: ReadAttr (Window a) (Window ())
- tabTraversal :: Attr (Window a) Bool
- type ScrolledWindow a = Panel (CScrolledWindow a)
- scrolledWindow :: Window a -> [Prop (ScrolledWindow ())] -> IO (ScrolledWindow ())
- scrollRate :: Attr (ScrolledWindow a) Size
- initialWindow :: (Id -> Rect -> [Prop (Window w)] -> Style -> a) -> [Prop (Window w)] -> Style -> a
- initialContainer :: (Id -> Rect -> [Prop (Window w)] -> Style -> a) -> [Prop (Window w)] -> Style -> a
- initialIdentity :: Identity w => (Id -> [Prop w] -> a) -> [Prop w] -> a
- initialStyle :: Styled w => ([Prop w] -> Style -> a) -> [Prop w] -> Style -> a
- initialText :: Textual w => (String -> [Prop w] -> a) -> [Prop w] -> a
- initialFullRepaintOnResize :: Visible w => ([Prop w] -> Style -> a) -> [Prop w] -> Style -> a
- initialClipChildren :: Parent w => ([Prop w] -> Style -> a) -> [Prop w] -> Style -> a
Window
type Window a = EvtHandler (CWindow a) #
Pointer to an object of type Window
, derived from EvtHandler
.
window :: Window a -> [Prop (Window ())] -> IO (Window ()) Source #
Create a plain window. Can be used to define custom controls for example.
- Attributes:
rootParent
,frameParent
,tabTraversal
- Instances:
Textual
,Literate
,Dimensions
,Colored
,Visible
,Child
,Able
,Tipped
,Identity
,Styled
,Reactive
,Paint
.
refit :: Window a -> IO () Source #
Ensure that a widget is refitted inside a window when
its size changes, for example when the text
of a
staticText
control changes. (Calls windowReFit
)
refitMinimal :: Window a -> IO () Source #
Ensure that a widget is refitted inside a window when
its size changes, for example when the text
of a
staticText
control changes. Always resizes the
window to its minimal acceptable size. (Calls windowReFitMinimal
)
ScrolledWindow
type ScrolledWindow a = Panel (CScrolledWindow a) #
Pointer to an object of type ScrolledWindow
, derived from Panel
.
scrolledWindow :: Window a -> [Prop (ScrolledWindow ())] -> IO (ScrolledWindow ()) Source #
A scrollable window. Use virtualSize
and scrollRate
to set the scrollbar
behaviour.
scrollRate :: Attr (ScrolledWindow a) Size Source #
The horizontal and vertical scroll rate of scrolled window. Use 0
to disable
scrolling in that direction.
Internal
initialWindow :: (Id -> Rect -> [Prop (Window w)] -> Style -> a) -> [Prop (Window w)] -> Style -> a Source #
Helper function that retrieves initial window settings, including |identity|, |style|, and |area| (or |position| and |outerSize|).
initialContainer :: (Id -> Rect -> [Prop (Window w)] -> Style -> a) -> [Prop (Window w)] -> Style -> a Source #
Helper function that retrieves initial window settings, including |clipChildren| and |fullRepaintOnResize|.
initialIdentity :: Identity w => (Id -> [Prop w] -> a) -> [Prop w] -> a Source #
Helper function that retrieves the initial |identity|.
initialStyle :: Styled w => ([Prop w] -> Style -> a) -> [Prop w] -> Style -> a Source #
Helper function that retrieves the initial |style|.
initialText :: Textual w => (String -> [Prop w] -> a) -> [Prop w] -> a Source #
Retrieve the initial title from the |text| attribute.
initialFullRepaintOnResize :: Visible w => ([Prop w] -> Style -> a) -> [Prop w] -> Style -> a Source #
Helper function that transforms the style accordding
to the fullRepaintOnResize
flag in of the properties
initialClipChildren :: Parent w => ([Prop w] -> Style -> a) -> [Prop w] -> Style -> a Source #
Helper function that transforms the style accordding
to the clipChildren
flag out of the properties
Orphan instances
Sized (Window a) Source # | |
Tipped (Window a) Source # | |
Styled (Window a) Source # | |
Identity (Window a) Source # | |
Able (Window a) Source # | |
Child (Window a) Source # | |
Bordered (Window a) Source # | |
Parent (Window a) Source # | |
Visible (Window a) Source # | |
Colored (Window a) Source # | |
Dimensions (Window a) Source # | |
Literate (Window a) Source # | |
Textual (Window a) Source # | |
Paint (Window a) Source # | |
Reactive (Window a) Source # | |