gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.ColorSelection

Contents

Description

 

Synopsis

Exported types

Methods

getCurrentAlpha

colorSelectionGetCurrentAlpha Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> m Word16

Returns: an integer between 0 and 65535

Returns the current alpha value.

getCurrentColor

colorSelectionGetCurrentColor Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> m Color 

Deprecated: (Since version 3.4)Use colorSelectionGetCurrentRgba instead.

Sets color to be the current color in the GtkColorSelection widget.

getCurrentRgba

colorSelectionGetCurrentRgba Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> m RGBA 

Sets rgba to be the current color in the GtkColorSelection widget.

Since: 3.0

getHasOpacityControl

colorSelectionGetHasOpacityControl Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> m Bool

Returns: True if the colorsel has an opacity control, False if it does't

Determines whether the colorsel has an opacity control.

getHasPalette

colorSelectionGetHasPalette Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> m Bool

Returns: True if the selector has a palette, False if it hasn't

Determines whether the color selector has a color palette.

getPreviousAlpha

colorSelectionGetPreviousAlpha Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> m Word16

Returns: an integer between 0 and 65535

Returns the previous alpha value.

getPreviousColor

colorSelectionGetPreviousColor Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> m Color 

Deprecated: (Since version 3.4)Use colorSelectionGetPreviousRgba instead.

Fills color in with the original color value.

getPreviousRgba

colorSelectionGetPreviousRgba Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> m RGBA 

Fills rgba in with the original color value.

Since: 3.0

isAdjusting

colorSelectionIsAdjusting Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> m Bool

Returns: True if the user is currently dragging a color around, and False if the selection has stopped

Gets the current state of the colorsel.

new

colorSelectionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m ColorSelection

Returns: a new ColorSelection

Creates a new GtkColorSelection.

paletteFromString

colorSelectionPaletteFromString Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

str: a string encoding a color palette

-> m (Bool, [Color])

Returns: True if a palette was successfully parsed

Parses a color palette string; the string is a colon-separated list of color names readable by colorParse.

paletteToString

colorSelectionPaletteToString Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> [Color]

colors: an array of colors

-> m Text

Returns: allocated string encoding the palette

Encodes a palette as a string, useful for persistent storage.

setCurrentAlpha

colorSelectionSetCurrentAlpha Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> Word16

alpha: an integer between 0 and 65535

-> 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

colorSelectionSetCurrentColor Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> Color

color: a Color to set the current color with

-> 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

colorSelectionSetCurrentRgba Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> RGBA

rgba: A RGBA to set the current color with

-> 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

colorSelectionSetHasOpacityControl Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> Bool

hasOpacity: True if colorsel can set the opacity, False otherwise

-> m () 

Sets the colorsel to use or not use opacity.

setHasPalette

colorSelectionSetHasPalette Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> Bool

hasPalette: True if palette is to be visible, False otherwise

-> m () 

Shows and hides the palette based upon the value of hasPalette.

setPreviousAlpha

colorSelectionSetPreviousAlpha Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> Word16

alpha: an integer between 0 and 65535

-> 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

colorSelectionSetPreviousColor Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> Color

color: a Color to set the previous color with

-> 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

colorSelectionSetPreviousRgba Source #

Arguments

:: (HasCallStack, MonadIO m, IsColorSelection a) 
=> a

colorsel: a ColorSelection

-> RGBA

rgba: a RGBA to set the previous color with

-> 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 #

Instances

AttrInfo ColorSelectionCurrentAlphaPropertyInfo Source # 
type AttrOrigin ColorSelectionCurrentAlphaPropertyInfo Source # 
type AttrLabel ColorSelectionCurrentAlphaPropertyInfo Source # 
type AttrGetType ColorSelectionCurrentAlphaPropertyInfo Source # 
type AttrBaseTypeConstraint ColorSelectionCurrentAlphaPropertyInfo Source # 
type AttrSetTypeConstraint ColorSelectionCurrentAlphaPropertyInfo Source # 
type AttrAllowedOps ColorSelectionCurrentAlphaPropertyInfo Source # 

currentColor

data ColorSelectionCurrentColorPropertyInfo Source #

Instances

AttrInfo ColorSelectionCurrentColorPropertyInfo Source # 
type AttrOrigin ColorSelectionCurrentColorPropertyInfo Source # 
type AttrLabel ColorSelectionCurrentColorPropertyInfo Source # 
type AttrGetType ColorSelectionCurrentColorPropertyInfo Source # 
type AttrBaseTypeConstraint ColorSelectionCurrentColorPropertyInfo Source # 
type AttrSetTypeConstraint ColorSelectionCurrentColorPropertyInfo Source # 
type AttrAllowedOps ColorSelectionCurrentColorPropertyInfo Source # 

currentRgba

data ColorSelectionCurrentRgbaPropertyInfo Source #

Instances

AttrInfo ColorSelectionCurrentRgbaPropertyInfo Source # 
type AttrOrigin ColorSelectionCurrentRgbaPropertyInfo Source # 
type AttrLabel ColorSelectionCurrentRgbaPropertyInfo Source # 
type AttrGetType ColorSelectionCurrentRgbaPropertyInfo Source # 
type AttrBaseTypeConstraint ColorSelectionCurrentRgbaPropertyInfo Source # 
type AttrSetTypeConstraint ColorSelectionCurrentRgbaPropertyInfo Source # 
type AttrAllowedOps ColorSelectionCurrentRgbaPropertyInfo Source # 

hasOpacityControl

data ColorSelectionHasOpacityControlPropertyInfo Source #

Instances

AttrInfo ColorSelectionHasOpacityControlPropertyInfo Source # 
type AttrOrigin ColorSelectionHasOpacityControlPropertyInfo Source # 
type AttrLabel ColorSelectionHasOpacityControlPropertyInfo Source # 
type AttrGetType ColorSelectionHasOpacityControlPropertyInfo Source # 
type AttrBaseTypeConstraint ColorSelectionHasOpacityControlPropertyInfo Source # 
type AttrSetTypeConstraint ColorSelectionHasOpacityControlPropertyInfo Source # 
type AttrAllowedOps ColorSelectionHasOpacityControlPropertyInfo Source # 

hasPalette

data ColorSelectionHasPalettePropertyInfo Source #

Instances

AttrInfo ColorSelectionHasPalettePropertyInfo Source # 
type AttrOrigin ColorSelectionHasPalettePropertyInfo Source # 
type AttrLabel ColorSelectionHasPalettePropertyInfo Source # 
type AttrGetType ColorSelectionHasPalettePropertyInfo Source # 
type AttrBaseTypeConstraint ColorSelectionHasPalettePropertyInfo Source # 
type AttrSetTypeConstraint ColorSelectionHasPalettePropertyInfo Source # 
type AttrAllowedOps ColorSelectionHasPalettePropertyInfo Source # 

Signals

colorChanged