 | WxGeneric-0.5.0: Library which constructing generic (SYB3-based) widgets for WxHaskell | Contents | Index |
|
Graphics.UI.WxGeneric.GenericWidget |
|
|
Description |
Contains GenWid, which is the type used for the inner widget in WxGeneric. Plus
functions to create GenWid.
GenWid contains a valued version of Composite.
|
|
Synopsis |
|
|
|
Documentation |
|
fromWidget :: forall w a. (Observable (Window w), ValuedWidget a (Window w)) => (forall w'. Window w' -> IO (Window w)) -> GenWidIO a |
Makes a GenWid from a an ordinary WxHaskell 'Window w' (widget)
that implements Observable and ValuedWidget.
|
|
valuedCompose :: (Panel () -> IO (Layout, IO a, a -> IO (), IO (IO ()), IO () -> IO ())) -> GenWidIO a |
Composing multiple widgets into a composite GenWid. It is similar
to Composite.compose.
|
|
mkGenWid :: forall w a. Window w -> IO a -> (a -> IO ()) -> IO (IO ()) -> (IO () -> IO ()) -> GenWid a |
Creates a GenWid using monadic actions.
|
|
mkSingleObservable :: forall w a. Observable (Window w) => Window w -> IO a -> (a -> IO ()) -> GenWid a |
Creates a GenWid using an Observable widget, a get-value action
and a set-value action.
|
|
data GenWid a |
Instances | |
|
|
type GenWidIO a = forall w. Window w -> IO (GenWid a) |
|
class MapValue valued where |
| Methods | mapValue | :: | | => old -> new | old to new conversion
| -> old -> new -> old | new to old conversion. This functions also get the current
old value as input.
| -> valued old | old type
| -> valued new | new type
| Maps the value a type.
|
|
| | Instances | |
|
|
Produced by Haddock version 2.1.0 |