Safe Haskell | Safe-Infered |
---|
Module for parameters for editors
- type Parameters = [Parameter]
- data Parameter
- = ParaName String
- | ParaSynopsis String
- | ParaDirection Direction
- | ParaShadow ShadowType
- | ParaShowLabel Bool
- | ParaOuterAlignment (Float, Float, Float, Float)
- | ParaOuterPadding (Int, Int, Int, Int)
- | ParaInnerAlignment (Float, Float, Float, Float)
- | ParaInnerPadding (Int, Int, Int, Int)
- | ParaMinSize (Int, Int)
- | ParaHorizontal HorizontalAlign
- | ParaStockId String
- | ParaMultiSel Bool
- | ParaPack Packing
- paraName :: Parameter -> Maybe String
- paraSynopsis :: Parameter -> Maybe String
- paraDirection :: Parameter -> Maybe Direction
- paraShowLabel :: Parameter -> Maybe Bool
- paraShadow :: Parameter -> Maybe ShadowType
- paraOuterAlignment :: Parameter -> Maybe (Float, Float, Float, Float)
- paraInnerAlignment :: Parameter -> Maybe (Float, Float, Float, Float)
- paraOuterPadding :: Parameter -> Maybe (Int, Int, Int, Int)
- paraInnerPadding :: Parameter -> Maybe (Int, Int, Int, Int)
- paraMinSize :: Parameter -> Maybe (Int, Int)
- paraHorizontal :: Parameter -> Maybe HorizontalAlign
- paraStockId :: Parameter -> Maybe String
- paraMultiSel :: Parameter -> Maybe Bool
- paraPack :: Parameter -> Maybe Packing
- getParameter :: (Parameter -> Maybe beta) -> Parameters -> beta
- getParameterPrim :: (Parameter -> Maybe beta) -> Parameters -> Maybe beta
- (<<<-) :: (Parameter -> Maybe beta) -> Parameter -> Parameters -> Parameters
- emptyParams :: [Parameter]
- data Direction
- = Horizontal
- | Vertical
- data HorizontalAlign
Documentation
type Parameters = [Parameter]Source
A type for parameters for editors
ParaName String | |
ParaSynopsis String | |
ParaDirection Direction | |
ParaShadow ShadowType | |
ParaShowLabel Bool | |
ParaOuterAlignment (Float, Float, Float, Float) | |
ParaOuterPadding (Int, Int, Int, Int) | xalign yalign xscale yscale |
ParaInnerAlignment (Float, Float, Float, Float) | |
ParaInnerPadding (Int, Int, Int, Int) | xalign yalign xscale yscale |
ParaMinSize (Int, Int) | |
ParaHorizontal HorizontalAlign | |
ParaStockId String | |
ParaMultiSel Bool | |
ParaPack Packing |
paraMultiSel :: Parameter -> Maybe BoolSource
getParameter :: (Parameter -> Maybe beta) -> Parameters -> betaSource
Convenience method to get a parameter, or if not set the default parameter
getParameterPrim :: (Parameter -> Maybe beta) -> Parameters -> Maybe betaSource
(<<<-) :: (Parameter -> Maybe beta) -> Parameter -> Parameters -> ParametersSource