Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- colorChooserNew :: Rectangle -> Maybe Text -> IO (Ref ColorChooser)
- colorChooserCustom :: Rectangle -> Maybe Text -> Maybe (Ref ColorChooser -> IO ()) -> Maybe (CustomColorChooserFuncs ColorChooser) -> Maybe (CustomWidgetFuncs ColorChooser) -> IO (Ref ColorChooser)
- rgb2Hsv :: (Between0And1, Between0And1, Between0And1) -> IO (Maybe (Between0And6, Between0And1, Between0And1))
- hsv2Rgb :: (Between0And6, Between0And1, Between0And1) -> IO (Maybe (Between0And1, Between0And1, Between0And1))
- flcColorChooser :: Text -> ColorChooserRGB -> Maybe ColorChooserMode -> IO (Maybe ColorChooserRGB)
- data CustomColorChooserFuncs a = CustomColorChooserFuncs {
- getModeCustom :: Ref a -> IO ColorChooserMode
- setModeCustom :: Ref a -> ColorChooserMode -> IO ()
- hueCustom :: Ref a -> IO Between0And6
- saturationCustom :: Ref a -> IO Between0And1
- valueCustom :: Ref a -> IO Between0And1
- rCustom :: Ref a -> IO Between0And1
- gCustom :: Ref a -> IO Between0And1
- bCustom :: Ref a -> IO Between0And1
- hsvCustom :: Ref a -> (Between0And6, Between0And1, Between0And1) -> IO Int
- rgbCustom :: Ref a -> (Between0And1, Between0And1, Between0And1) -> IO Int
- getModeColorChooserBase :: Ref ColorChooserBase -> IO ColorChooserMode
- setModeColorChooserBase :: Ref ColorChooserBase -> ColorChooserMode -> IO ()
- getHueColorChooserBase :: Ref ColorChooserBase -> IO (Either OutOfRange Between0And6)
- getSaturationColorChooserBase :: Ref ColorChooserBase -> IO (Either OutOfRange Between0And1)
- getValueColorChooserBase :: Ref ColorChooserBase -> IO (Either OutOfRange Between0And1)
- getRColorChooserBase :: Ref ColorChooserBase -> IO (Either OutOfRange Between0And1)
- getGColorChooserBase :: Ref ColorChooserBase -> IO (Either OutOfRange Between0And1)
- getBColorChooserBase :: Ref ColorChooserBase -> IO (Either OutOfRange Between0And1)
- setHsvColorChooserBase :: Ref ColorChooserBase -> (Between0And6, Between0And1, Between0And1) -> IO (Either NoChange ())
- setRgbColorChooserBase :: Ref ColorChooserBase -> (Between0And1, Between0And1, Between0And1) -> IO (Either NoChange ())
- drawColorChooserBase :: Ref ColorChooserBase -> IO ()
- handleColorChooserBase :: Ref ColorChooserBase -> Event -> IO (Either UnknownEvent ())
- resizeColorChooserBase :: Ref ColorChooserBase -> Rectangle -> IO ()
- hideColorChooserBase :: Ref ColorChooserBase -> IO ()
- showWidgetColorChooserBase :: Ref ColorChooserBase -> IO ()
Constructor
colorChooserNew :: Rectangle -> Maybe Text -> IO (Ref ColorChooser) Source #
:: Rectangle | The bounds of this ColorChooser |
-> Maybe Text | The ColorChooser label |
-> Maybe (Ref ColorChooser -> IO ()) | Optional custom drawing function |
-> Maybe (CustomColorChooserFuncs ColorChooser) | |
-> Maybe (CustomWidgetFuncs ColorChooser) | Optional custom widget functions |
-> IO (Ref ColorChooser) |
rgb2Hsv :: (Between0And1, Between0And1, Between0And1) -> IO (Maybe (Between0And6, Between0And1, Between0And1)) Source #
hsv2Rgb :: (Between0And6, Between0And1, Between0And1) -> IO (Maybe (Between0And1, Between0And1, Between0And1)) Source #
flcColorChooser :: Text -> ColorChooserRGB -> Maybe ColorChooserMode -> IO (Maybe ColorChooserRGB) Source #
data CustomColorChooserFuncs a Source #
CustomColorChooserFuncs | |
|
setModeColorChooserBase :: Ref ColorChooserBase -> ColorChooserMode -> IO () Source #
getSaturationColorChooserBase :: Ref ColorChooserBase -> IO (Either OutOfRange Between0And1) Source #
setHsvColorChooserBase :: Ref ColorChooserBase -> (Between0And6, Between0And1, Between0And1) -> IO (Either NoChange ()) Source #
setRgbColorChooserBase :: Ref ColorChooserBase -> (Between0And1, Between0And1, Between0And1) -> IO (Either NoChange ()) Source #
drawColorChooserBase :: Ref ColorChooserBase -> IO () Source #
handleColorChooserBase :: Ref ColorChooserBase -> Event -> IO (Either UnknownEvent ()) Source #
resizeColorChooserBase :: Ref ColorChooserBase -> Rectangle -> IO () Source #
hideColorChooserBase :: Ref ColorChooserBase -> IO () Source #
showWidgetColorChooserBase :: Ref ColorChooserBase -> IO () Source #
Hierarchy
Graphics.UI.FLTK.LowLevel.Base.Widget | v Graphics.UI.FLTK.LowLevel.Base.Group | v Graphics.UI.FLTK.LowLevel.Base.ColorChooser
Functions
draw ::Ref
ColorChooserBase
->IO
() getB ::Ref
ColorChooserBase
->IO
(Either
OutOfRange
Between0And1
) getG ::Ref
ColorChooserBase
->IO
(Either
OutOfRange
Between0And1
) getHsv ::Ref
ColorChooserBase
->IO
(Either
OutOfRange
(Between0And6
,Between0And1
,Between0And1
)) getHue ::Ref
ColorChooserBase
->IO
(Either
OutOfRange
Between0And6
) getMode ::Ref
ColorChooserBase
->IO
(ColorChooserMode
) getR ::Ref
ColorChooserBase
->IO
(Either
OutOfRange
Between0And1
) getRgb ::Ref
ColorChooserBase
->IO
(Either
OutOfRange
(Between0And1
,Between0And1
,Between0And1
)) getSaturation ::Ref
ColorChooserBase
->IO
(Either
OutOfRange
Between0And1
) getValue ::Ref
ColorChooserBase
->IO
(Either
OutOfRange
Between0And1
) handle ::Ref
ColorChooserBase
->Event
->IO
(Either
UnknownEvent
()) hide ::Ref
ColorChooserBase
->IO
() resize ::Ref
ColorChooserBase
->Rectangle
->IO
() setHsv ::Ref
ColorChooserBase
-> (Between0And6
,Between0And1
,Between0And1
) ->IO
(Either
NoChange
()) setMode ::Ref
ColorChooserBase
->ColorChooserMode
->IO
() setRgb ::Ref
ColorChooserBase
-> (Between0And1
,Between0And1
,Between0And1
) ->IO
(Either
NoChange
()) showWidget ::Ref
ColorChooserBase
->IO
()