WxGeneric-0.5.0: Library which constructing generic (SYB3-based) widgets for WxHaskellContentsIndex
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
fromWidget :: forall w a. (Observable (Window w), ValuedWidget a (Window w)) => (forall w'. Window w' -> IO (Window w)) -> GenWidIO a
valuedCompose :: (Panel () -> IO (Layout, IO a, a -> IO (), IO (IO ()), IO () -> IO ())) -> GenWidIO a
mkGenWid :: forall w a. Window w -> IO a -> (a -> IO ()) -> IO (IO ()) -> (IO () -> IO ()) -> GenWid a
mkSingleObservable :: forall w a. Observable (Window w) => Window w -> IO a -> (a -> IO ()) -> GenWid a
data GenWid a
type GenWidIO a = forall w. Window w -> IO (GenWid a)
class MapValue valued where
mapValue :: old -> new -> old -> new -> old -> valued old -> valued new
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
show/hide Instances
MapValue GenWid
ValuedWidget a (GenWid a)
Widget (GenWid a)
Able (GenWid a)
Bordered (GenWid a)
Child (GenWid a)
Dimensions (GenWid a)
Identity (GenWid a)
Literate (GenWid a)
Visible (GenWid a)
Observable (GenWid a)
Reactive (GenWid a)
type GenWidIO a = forall w. Window w -> IO (GenWid a)
class MapValue valued where
Methods
mapValue
::
=> old -> newold to new conversion
-> old -> new -> oldnew to old conversion. This functions also get the current old value as input.
-> valued oldold type
-> valued newnew type
Maps the value a type.
show/hide Instances
Produced by Haddock version 2.1.0