| gtk-0.11.0: Binding to the Gtk+ graphical user interface library. | Contents | Index |
|
Graphics.UI.Gtk.Selectors.ColorSelection | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
Description |
A widget used to select a color
|
|
Synopsis |
|
|
|
|
Detail
|
|
The ColorSelection is a widget that is used to select a color. It
consists of a color wheel and number of sliders and entry boxes for color
parameters such as hue, saturation, value, red, green, blue, and opacity. It
is found on the standard color selection dialog box ColorSelectionDialog.
|
|
Class Hierarchy
|
|
| GObject
| +----Object
| +----Widget
| +----Container
| +----Box
| +----VBox
| +----ColorSelection
|
|
Types
|
|
data ColorSelection |
Instances | |
|
|
class VBoxClass o => ColorSelectionClass o |
| Instances | |
|
|
castToColorSelection :: GObjectClass obj => obj -> ColorSelection |
|
gTypeColorSelection :: GType |
|
toColorSelection :: ColorSelectionClass o => o -> ColorSelection |
|
Constructors
|
|
colorSelectionNew :: IO ColorSelection |
Creates a new ColorSelection.
|
|
Methods
|
|
colorSelectionGetCurrentAlpha |
|
|
colorSelectionSetCurrentAlpha |
:: ColorSelectionClass self | | => self | | -> Int | alpha - an integer between 0 and 65535.
| -> IO () | | Sets the current opacity to be alpha. The first time this is called, it
will also set the original opacity to be alpha too.
|
|
|
colorSelectionGetCurrentColor :: ColorSelectionClass self => self -> IO Color |
Gets the current color in the ColorSelection widget.
|
|
colorSelectionSetCurrentColor |
:: ColorSelectionClass self | | => self | | -> Color | color - A Color to set the current color with.
| -> IO () | | Sets the current color to be color. The first time this is called, it
will also set the original color to be color too.
|
|
|
colorSelectionGetHasOpacityControl |
|
|
colorSelectionSetHasOpacityControl |
|
|
colorSelectionGetHasPalette |
:: ColorSelectionClass self | | => self | | -> IO Bool | returns True if the selector has a palette. False if it
hasn't.
| Determines whether the color selector has a color palette.
|
|
|
colorSelectionSetHasPalette |
:: ColorSelectionClass self | | => self | | -> Bool | hasPalette - True if palette is to be visible, False
otherwise.
| -> IO () | | Sets whether to show or hide the palette.
|
|
|
colorSelectionGetPreviousAlpha |
|
|
colorSelectionSetPreviousAlpha |
:: ColorSelectionClass self | | => self | | -> Int | alpha - an integer between 0 and 65535.
| -> IO () | | 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.
|
|
|
colorSelectionGetPreviousColor :: ColorSelectionClass self => self -> IO Color |
Returns the original color value.
|
|
colorSelectionSetPreviousColor :: ColorSelectionClass self => self -> Color -> IO () |
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.
|
|
colorSelectionIsAdjusting :: ColorSelectionClass self => self -> IO Bool |
Gets the current state of the widget. Returns True if the user is currently
dragging a color around, and False if the selection has stopped.
|
|
Attributes
|
|
colorSelectionHasOpacityControl :: ColorSelectionClass self => Attr self Bool |
Whether the color selector should allow setting opacity.
Default value: False
|
|
colorSelectionHasPalette :: ColorSelectionClass self => Attr self Bool |
Whether a palette should be used.
Default value: False
|
|
colorSelectionCurrentAlpha :: ColorSelectionClass self => Attr self Int |
The current opacity value (0 fully transparent, 65535 fully opaque).
Allowed values: <= 65535
Default value: 65535
|
|
colorSelectionPreviousAlpha :: ColorSelectionClass self => Attr self Int |
'previousAlpha' property. See colorSelectionGetPreviousAlpha and
colorSelectionSetPreviousAlpha
|
|
Produced by Haddock version 2.4.2 |