Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
A 'color wheel' widget
- Module available since Gtk+ version 2.14
- data HSV
- class WidgetClass o => HSVClass o
- castToHSV :: GObjectClass obj => obj -> HSV
- toHSV :: HSVClass o => o -> HSV
- hsvNew :: IO HSV
- hsvIsAdjusting :: HSVClass self => self -> IO Bool
- hsvToRgb :: (Double, Double, Double) -> (Double, Double, Double)
- rgbToHsv :: (Double, Double, Double) -> (Double, Double, Double)
- hsvColor :: HSVClass self => Attr self (Double, Double, Double)
- hsvMetrics :: HSVClass self => Attr self (Int, Int)
- hsvChanged :: HSVClass self => Signal self (IO ())
- hsvMove :: HSVClass self => Signal self (DirectionType -> IO ())
Detail
HSV
is the 'color wheel' part of a complete color selector widget. It
allows to select a color by determining its HSV
components in an intuitive
way. Moving the selection around the outer ring changes the hue, and moving
the selection point inside the inner triangle changes value and saturation.
Class Hierarchy
Types
class WidgetClass o => HSVClass o Source
castToHSV :: GObjectClass obj => obj -> HSV Source
Constructors
Methods
:: (Double, Double, Double) |
|
-> (Double, Double, Double) |
|
Converts a color from HSV
space to RGB. Input values must be in the [0.0,
1.0] range; output values will be in the same range.
:: (Double, Double, Double) |
|
-> (Double, Double, Double) |
|
Converts a color from RGB space to HSV
. Input values must be in the [0.0, 1.0] range; output values
will be in the same range.
Attributes
hsvColor :: HSVClass self => Attr self (Double, Double, Double) Source
Color in an HSV
color selector.
Color component values must be in the [0.0, 1.0] range.
hsvMetrics :: HSVClass self => Attr self (Int, Int) Source
The size and ring width of an HSV
color selector.
Signals
hsvChanged :: HSVClass self => Signal self (IO ()) Source