Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- getCurrentAlpha
- getCurrentColor
- getCurrentRgba
- getHasOpacityControl
- getHasPalette
- getPreviousAlpha
- getPreviousColor
- getPreviousRgba
- isAdjusting
- new
- paletteFromString
- paletteToString
- setCurrentAlpha
- setCurrentColor
- setCurrentRgba
- setHasOpacityControl
- setHasPalette
- setPreviousAlpha
- setPreviousColor
- setPreviousRgba
- Properties
- Signals
- newtype ColorSelection = ColorSelection (ManagedPtr ColorSelection)
- class GObject o => IsColorSelection o
- toColorSelection :: IsColorSelection o => o -> IO ColorSelection
- noColorSelection :: Maybe ColorSelection
- data ColorSelectionGetCurrentAlphaMethodInfo
- colorSelectionGetCurrentAlpha :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> m Word16
- data ColorSelectionGetCurrentColorMethodInfo
- colorSelectionGetCurrentColor :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> m Color
- data ColorSelectionGetCurrentRgbaMethodInfo
- colorSelectionGetCurrentRgba :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> m RGBA
- data ColorSelectionGetHasOpacityControlMethodInfo
- colorSelectionGetHasOpacityControl :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> m Bool
- data ColorSelectionGetHasPaletteMethodInfo
- colorSelectionGetHasPalette :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> m Bool
- data ColorSelectionGetPreviousAlphaMethodInfo
- colorSelectionGetPreviousAlpha :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> m Word16
- data ColorSelectionGetPreviousColorMethodInfo
- colorSelectionGetPreviousColor :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> m Color
- data ColorSelectionGetPreviousRgbaMethodInfo
- colorSelectionGetPreviousRgba :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> m RGBA
- data ColorSelectionIsAdjustingMethodInfo
- colorSelectionIsAdjusting :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> m Bool
- colorSelectionNew :: (HasCallStack, MonadIO m) => m ColorSelection
- colorSelectionPaletteFromString :: (HasCallStack, MonadIO m) => Text -> m (Bool, [Color])
- colorSelectionPaletteToString :: (HasCallStack, MonadIO m) => [Color] -> m Text
- data ColorSelectionSetCurrentAlphaMethodInfo
- colorSelectionSetCurrentAlpha :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> Word16 -> m ()
- data ColorSelectionSetCurrentColorMethodInfo
- colorSelectionSetCurrentColor :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> Color -> m ()
- data ColorSelectionSetCurrentRgbaMethodInfo
- colorSelectionSetCurrentRgba :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> RGBA -> m ()
- data ColorSelectionSetHasOpacityControlMethodInfo
- colorSelectionSetHasOpacityControl :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> Bool -> m ()
- data ColorSelectionSetHasPaletteMethodInfo
- colorSelectionSetHasPalette :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> Bool -> m ()
- data ColorSelectionSetPreviousAlphaMethodInfo
- colorSelectionSetPreviousAlpha :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> Word16 -> m ()
- data ColorSelectionSetPreviousColorMethodInfo
- colorSelectionSetPreviousColor :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> Color -> m ()
- data ColorSelectionSetPreviousRgbaMethodInfo
- colorSelectionSetPreviousRgba :: (HasCallStack, MonadIO m, IsColorSelection a) => a -> RGBA -> m ()
- data ColorSelectionCurrentAlphaPropertyInfo
- colorSelectionCurrentAlpha :: AttrLabelProxy "currentAlpha"
- constructColorSelectionCurrentAlpha :: IsColorSelection o => Word32 -> IO (GValueConstruct o)
- getColorSelectionCurrentAlpha :: (MonadIO m, IsColorSelection o) => o -> m Word32
- setColorSelectionCurrentAlpha :: (MonadIO m, IsColorSelection o) => o -> Word32 -> m ()
- data ColorSelectionCurrentColorPropertyInfo
- colorSelectionCurrentColor :: AttrLabelProxy "currentColor"
- constructColorSelectionCurrentColor :: IsColorSelection o => Color -> IO (GValueConstruct o)
- getColorSelectionCurrentColor :: (MonadIO m, IsColorSelection o) => o -> m (Maybe Color)
- setColorSelectionCurrentColor :: (MonadIO m, IsColorSelection o) => o -> Color -> m ()
- data ColorSelectionCurrentRgbaPropertyInfo
- colorSelectionCurrentRgba :: AttrLabelProxy "currentRgba"
- constructColorSelectionCurrentRgba :: IsColorSelection o => RGBA -> IO (GValueConstruct o)
- getColorSelectionCurrentRgba :: (MonadIO m, IsColorSelection o) => o -> m (Maybe RGBA)
- setColorSelectionCurrentRgba :: (MonadIO m, IsColorSelection o) => o -> RGBA -> m ()
- data ColorSelectionHasOpacityControlPropertyInfo
- colorSelectionHasOpacityControl :: AttrLabelProxy "hasOpacityControl"
- constructColorSelectionHasOpacityControl :: IsColorSelection o => Bool -> IO (GValueConstruct o)
- getColorSelectionHasOpacityControl :: (MonadIO m, IsColorSelection o) => o -> m Bool
- setColorSelectionHasOpacityControl :: (MonadIO m, IsColorSelection o) => o -> Bool -> m ()
- data ColorSelectionHasPalettePropertyInfo
- colorSelectionHasPalette :: AttrLabelProxy "hasPalette"
- constructColorSelectionHasPalette :: IsColorSelection o => Bool -> IO (GValueConstruct o)
- getColorSelectionHasPalette :: (MonadIO m, IsColorSelection o) => o -> m Bool
- setColorSelectionHasPalette :: (MonadIO m, IsColorSelection o) => o -> Bool -> m ()
- type C_ColorSelectionColorChangedCallback = Ptr () -> Ptr () -> IO ()
- type ColorSelectionColorChangedCallback = IO ()
- data ColorSelectionColorChangedSignalInfo
- afterColorSelectionColorChanged :: (GObject a, MonadIO m) => a -> ColorSelectionColorChangedCallback -> m SignalHandlerId
- genClosure_ColorSelectionColorChanged :: ColorSelectionColorChangedCallback -> IO Closure
- mk_ColorSelectionColorChangedCallback :: C_ColorSelectionColorChangedCallback -> IO (FunPtr C_ColorSelectionColorChangedCallback)
- noColorSelectionColorChangedCallback :: Maybe ColorSelectionColorChangedCallback
- onColorSelectionColorChanged :: (GObject a, MonadIO m) => a -> ColorSelectionColorChangedCallback -> m SignalHandlerId
- wrap_ColorSelectionColorChangedCallback :: ColorSelectionColorChangedCallback -> Ptr () -> Ptr () -> IO ()
Exported types
newtype ColorSelection Source #
GObject ColorSelection Source # | |
IsImplementorIface ColorSelection Source # | |
IsObject ColorSelection Source # | |
IsWidget ColorSelection Source # | |
IsContainer ColorSelection Source # | |
IsBox ColorSelection Source # | |
IsOrientable ColorSelection Source # | |
IsBuildable ColorSelection Source # | |
IsColorSelection ColorSelection Source # | |
((~) * info (ResolveColorSelectionMethod t ColorSelection), MethodInfo * info ColorSelection p) => IsLabel t (ColorSelection -> p) Source # | |
((~) * info (ResolveColorSelectionMethod t ColorSelection), MethodInfo * info ColorSelection p) => IsLabelProxy t (ColorSelection -> p) Source # | |
HasAttributeList * ColorSelection Source # | |
type AttributeList ColorSelection Source # | |
type SignalList ColorSelection Source # | |
class GObject o => IsColorSelection o Source #
toColorSelection :: IsColorSelection o => o -> IO ColorSelection Source #
Methods
getCurrentAlpha
data ColorSelectionGetCurrentAlphaMethodInfo Source #
((~) * signature (m Word16), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionGetCurrentAlphaMethodInfo a signature Source # | |
colorSelectionGetCurrentAlpha Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> m Word16 | Returns: an integer between 0 and 65535 |
Returns the current alpha value.
getCurrentColor
data ColorSelectionGetCurrentColorMethodInfo Source #
((~) * signature (m Color), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionGetCurrentColorMethodInfo a signature Source # | |
colorSelectionGetCurrentColor Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> m Color |
Deprecated: (Since version 3.4)Use colorSelectionGetCurrentRgba
instead.
Sets color
to be the current color in the GtkColorSelection widget.
getCurrentRgba
data ColorSelectionGetCurrentRgbaMethodInfo Source #
((~) * signature (m RGBA), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionGetCurrentRgbaMethodInfo a signature Source # | |
colorSelectionGetCurrentRgba Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> m RGBA |
Sets rgba
to be the current color in the GtkColorSelection widget.
Since: 3.0
getHasOpacityControl
data ColorSelectionGetHasOpacityControlMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionGetHasOpacityControlMethodInfo a signature Source # | |
colorSelectionGetHasOpacityControl Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> m Bool | Returns: |
Determines whether the colorsel has an opacity control.
getHasPalette
data ColorSelectionGetHasPaletteMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionGetHasPaletteMethodInfo a signature Source # | |
colorSelectionGetHasPalette Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> m Bool | Returns: |
Determines whether the color selector has a color palette.
getPreviousAlpha
data ColorSelectionGetPreviousAlphaMethodInfo Source #
((~) * signature (m Word16), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionGetPreviousAlphaMethodInfo a signature Source # | |
colorSelectionGetPreviousAlpha Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> m Word16 | Returns: an integer between 0 and 65535 |
Returns the previous alpha value.
getPreviousColor
data ColorSelectionGetPreviousColorMethodInfo Source #
((~) * signature (m Color), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionGetPreviousColorMethodInfo a signature Source # | |
colorSelectionGetPreviousColor Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> m Color |
Deprecated: (Since version 3.4)Use colorSelectionGetPreviousRgba
instead.
Fills color
in with the original color value.
getPreviousRgba
data ColorSelectionGetPreviousRgbaMethodInfo Source #
((~) * signature (m RGBA), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionGetPreviousRgbaMethodInfo a signature Source # | |
colorSelectionGetPreviousRgba Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> m RGBA |
Fills rgba
in with the original color value.
Since: 3.0
isAdjusting
data ColorSelectionIsAdjustingMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionIsAdjustingMethodInfo a signature Source # | |
colorSelectionIsAdjusting Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> m Bool | Returns: |
Gets the current state of the colorsel
.
new
:: (HasCallStack, MonadIO m) | |
=> m ColorSelection | Returns: a new |
Creates a new GtkColorSelection.
paletteFromString
colorSelectionPaletteFromString Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m (Bool, [Color]) | Returns: |
Parses a color palette string; the string is a colon-separated
list of color names readable by colorParse
.
paletteToString
colorSelectionPaletteToString Source #
:: (HasCallStack, MonadIO m) | |
=> [Color] |
|
-> m Text | Returns: allocated string encoding the palette |
Encodes a palette as a string, useful for persistent storage.
setCurrentAlpha
data ColorSelectionSetCurrentAlphaMethodInfo Source #
((~) * signature (Word16 -> m ()), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionSetCurrentAlphaMethodInfo a signature Source # | |
colorSelectionSetCurrentAlpha Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> Word16 |
|
-> m () |
Sets the current opacity to be alpha
.
The first time this is called, it will also set
the original opacity to be alpha
too.
setCurrentColor
data ColorSelectionSetCurrentColorMethodInfo Source #
((~) * signature (Color -> m ()), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionSetCurrentColorMethodInfo a signature Source # | |
colorSelectionSetCurrentColor Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> Color |
|
-> m () |
Deprecated: (Since version 3.4)Use colorSelectionSetCurrentRgba
instead.
Sets the current color to be color
.
The first time this is called, it will also set
the original color to be color
too.
setCurrentRgba
data ColorSelectionSetCurrentRgbaMethodInfo Source #
((~) * signature (RGBA -> m ()), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionSetCurrentRgbaMethodInfo a signature Source # | |
colorSelectionSetCurrentRgba Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> RGBA |
|
-> m () |
Sets the current color to be rgba
.
The first time this is called, it will also set
the original color to be rgba
too.
Since: 3.0
setHasOpacityControl
data ColorSelectionSetHasOpacityControlMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionSetHasOpacityControlMethodInfo a signature Source # | |
colorSelectionSetHasOpacityControl Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the colorsel
to use or not use opacity.
setHasPalette
data ColorSelectionSetHasPaletteMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionSetHasPaletteMethodInfo a signature Source # | |
colorSelectionSetHasPalette Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> Bool |
|
-> m () |
Shows and hides the palette based upon the value of hasPalette
.
setPreviousAlpha
data ColorSelectionSetPreviousAlphaMethodInfo Source #
((~) * signature (Word16 -> m ()), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionSetPreviousAlphaMethodInfo a signature Source # | |
colorSelectionSetPreviousAlpha Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> Word16 |
|
-> m () |
Sets the “previous” alpha to be alpha
.
This function should be called with some hesitations, as it might seem confusing to have that alpha change.
setPreviousColor
data ColorSelectionSetPreviousColorMethodInfo Source #
((~) * signature (Color -> m ()), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionSetPreviousColorMethodInfo a signature Source # | |
colorSelectionSetPreviousColor Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> Color |
|
-> m () |
Deprecated: (Since version 3.4)Use colorSelectionSetPreviousRgba
instead.
Sets the “previous” color to be color
.
This function should be called with some hesitations,
as it might seem confusing to have that color change.
Calling colorSelectionSetCurrentColor
will also
set this color the first time it is called.
setPreviousRgba
data ColorSelectionSetPreviousRgbaMethodInfo Source #
((~) * signature (RGBA -> m ()), MonadIO m, IsColorSelection a) => MethodInfo * ColorSelectionSetPreviousRgbaMethodInfo a signature Source # | |
colorSelectionSetPreviousRgba Source #
:: (HasCallStack, MonadIO m, IsColorSelection a) | |
=> a |
|
-> RGBA |
|
-> m () |
Sets the “previous” color to be rgba
.
This function should be called with some hesitations,
as it might seem confusing to have that color change.
Calling colorSelectionSetCurrentRgba
will also
set this color the first time it is called.
Since: 3.0
Properties
currentAlpha
data ColorSelectionCurrentAlphaPropertyInfo Source #
colorSelectionCurrentAlpha :: AttrLabelProxy "currentAlpha" Source #
constructColorSelectionCurrentAlpha :: IsColorSelection o => Word32 -> IO (GValueConstruct o) Source #
getColorSelectionCurrentAlpha :: (MonadIO m, IsColorSelection o) => o -> m Word32 Source #
setColorSelectionCurrentAlpha :: (MonadIO m, IsColorSelection o) => o -> Word32 -> m () Source #
currentColor
data ColorSelectionCurrentColorPropertyInfo Source #
colorSelectionCurrentColor :: AttrLabelProxy "currentColor" Source #
constructColorSelectionCurrentColor :: IsColorSelection o => Color -> IO (GValueConstruct o) Source #
getColorSelectionCurrentColor :: (MonadIO m, IsColorSelection o) => o -> m (Maybe Color) Source #
setColorSelectionCurrentColor :: (MonadIO m, IsColorSelection o) => o -> Color -> m () Source #
currentRgba
data ColorSelectionCurrentRgbaPropertyInfo Source #
colorSelectionCurrentRgba :: AttrLabelProxy "currentRgba" Source #
constructColorSelectionCurrentRgba :: IsColorSelection o => RGBA -> IO (GValueConstruct o) Source #
getColorSelectionCurrentRgba :: (MonadIO m, IsColorSelection o) => o -> m (Maybe RGBA) Source #
setColorSelectionCurrentRgba :: (MonadIO m, IsColorSelection o) => o -> RGBA -> m () Source #
hasOpacityControl
data ColorSelectionHasOpacityControlPropertyInfo Source #
colorSelectionHasOpacityControl :: AttrLabelProxy "hasOpacityControl" Source #
constructColorSelectionHasOpacityControl :: IsColorSelection o => Bool -> IO (GValueConstruct o) Source #
getColorSelectionHasOpacityControl :: (MonadIO m, IsColorSelection o) => o -> m Bool Source #
setColorSelectionHasOpacityControl :: (MonadIO m, IsColorSelection o) => o -> Bool -> m () Source #
hasPalette
data ColorSelectionHasPalettePropertyInfo Source #
colorSelectionHasPalette :: AttrLabelProxy "hasPalette" Source #
constructColorSelectionHasPalette :: IsColorSelection o => Bool -> IO (GValueConstruct o) Source #
getColorSelectionHasPalette :: (MonadIO m, IsColorSelection o) => o -> m Bool Source #
setColorSelectionHasPalette :: (MonadIO m, IsColorSelection o) => o -> Bool -> m () Source #
Signals
colorChanged
type ColorSelectionColorChangedCallback = IO () Source #
afterColorSelectionColorChanged :: (GObject a, MonadIO m) => a -> ColorSelectionColorChangedCallback -> m SignalHandlerId Source #
mk_ColorSelectionColorChangedCallback :: C_ColorSelectionColorChangedCallback -> IO (FunPtr C_ColorSelectionColorChangedCallback) Source #
onColorSelectionColorChanged :: (GObject a, MonadIO m) => a -> ColorSelectionColorChangedCallback -> m SignalHandlerId Source #
wrap_ColorSelectionColorChangedCallback :: ColorSelectionColorChangedCallback -> Ptr () -> Ptr () -> IO () Source #