- genericWidget :: WxGen a => Window w -> a -> IO (GenWid a)
- genericWidgetEx :: WxGen a => (GenWidParameters -> GenWidParameters) -> (Outer a -> Outer a) -> Window w -> a -> IO (GenWid a)
- modalValuedDialog :: WxGen a => Window w -> String -> String -> a -> IO (Maybe a)
- data Outer a = Outer PriLabel (Either (GenWidIO a) (String -> GenWidIO a))
- toOuter :: forall a. WxGen a => GenWidIO a -> Outer a
- withLabel :: forall a. WxGen a => (String -> GenWidIO a) -> Outer a
- fromOuter :: Parms w -> Outer a -> IO (GenWid a)
- getUnlabeld :: Outer a -> Maybe String
- setOuterLabel :: PriLabel -> Outer a -> Outer a
- replacePoorConstrLabel :: String -> Outer a -> Outer a
- class Data WxGenD a => WxGen a where
- mkWid :: a -> Outer a
- generateLabel :: a -> PriLabel
- data WxGenD a = WxGenD {}
- wxGenCtx :: Proxy WxGenD
- singleConstr :: WxGen a => Bool -> a -> Outer a
- polyConstr :: forall a. (WxGen a, Data WxGenD a) => a -> Outer a
- extOuter :: (Typeable a, Typeable b) => (a -> Outer a) -> (b -> Outer b) -> a -> Outer a
- module Graphics.UI.WxGeneric.GenericWidget
- module Graphics.UI.WxGeneric.Composite
- module Graphics.UI.WxGeneric.Layout
Turning datatypes into widgets
genericWidget :: WxGen a => Window w -> a -> IO (GenWid a)Source
Creates a widget from any type that implements WxGen.
genericWidgetEx :: WxGen a => (GenWidParameters -> GenWidParameters) -> (Outer a -> Outer a) -> Window w -> a -> IO (GenWid a)Source
Creates a widget from any type that implements WxGen.
:: WxGen a | |
=> Window w | |
-> String | Dialog title |
-> String | Text at ok-button |
-> a | Initial value |
-> IO (Maybe a) | Returns Just x if the user presses the ok-button. Otherwise Nothing is returned. |
Creates a modal dialog containing the x
value, an
ok-buuton and a cancel-button.
Outer type
toOuter :: forall a. WxGen a => GenWidIO a -> Outer aSource
Creates an Outer
type. The encapsulated widget is labelless.
withLabel :: forall a. WxGen a => (String -> GenWidIO a) -> Outer aSource
Creates an Outer
type. The encapsulated widget has a label.
getUnlabeld :: Outer a -> Maybe StringSource
Returns label if the widget do not show it itself
replacePoorConstrLabel :: String -> Outer a -> Outer aSource
Generic class (WxGen) and making instancs of WxGen
The dictionary type for the WxEcCreator class
singleConstr :: WxGen a => Bool -> a -> Outer aSource
Creates an Outer
type for a type with a single constructor.
polyConstr :: forall a. (WxGen a, Data WxGenD a) => a -> Outer aSource
Creates an Outer
type for a type with more than one constructor.
extOuter :: (Typeable a, Typeable b) => (a -> Outer a) -> (b -> Outer b) -> a -> Outer aSource
Makes it possible to choose between competing instances without allowing overlapping instances.
module Graphics.UI.WxGeneric.Layout