gi-clutter-1.0.5: clutter GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Clutter.Objects.BrightnessContrastEffect

Description

BrightnessContrastEffect is an opaque structure whose members cannot be directly accessed

Since: 1.10

Synopsis

Exported types

newtype BrightnessContrastEffect Source #

Memory-managed wrapper type.

class (GObject o, IsDescendantOf BrightnessContrastEffect o) => IsBrightnessContrastEffect o Source #

Type class for types which can be safely cast to BrightnessContrastEffect, for instance with toBrightnessContrastEffect.

Instances

Instances details
(GObject o, IsDescendantOf BrightnessContrastEffect o) => IsBrightnessContrastEffect o Source # 
Instance details

Defined in GI.Clutter.Objects.BrightnessContrastEffect

toBrightnessContrastEffect :: (MonadIO m, IsBrightnessContrastEffect o) => o -> m BrightnessContrastEffect Source #

Cast to BrightnessContrastEffect, for types for which this is known to be safe. For general casts, use castTo.

Methods

getBrightness

brightnessContrastEffectGetBrightness Source #

Retrieves the change in brightness used by effect.

Since: 1.10

getContrast

brightnessContrastEffectGetContrast Source #

Retrieves the contrast value used by effect.

Since: 1.10

new

brightnessContrastEffectNew Source #

Arguments

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

Returns: the newly created BrightnessContrastEffect or Nothing. Use objectUnref when done.

Creates a new BrightnessContrastEffect to be used with actorAddEffect

Since: 1.10

setBrightness

brightnessContrastEffectSetBrightness Source #

Arguments

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

effect: a BrightnessContrastEffect

-> Float

brightness: the brightness change for all three components (r, g, b)

-> m () 

The range of brightness is [-1.0, 1.0], where 0.0 designates no change; a value below 0.0 indicates a decrease in brightness; and a value above 0.0 indicates an increase of brightness.

Since: 1.10

setBrightnessFull

brightnessContrastEffectSetBrightnessFull Source #

Arguments

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

effect: a BrightnessContrastEffect

-> Float

red: red component of the change in brightness

-> Float

green: green component of the change in brightness

-> Float

blue: blue component of the change in brightness

-> m () 

The range for each component is [-1.0, 1.0] where 0.0 designates no change, values below 0.0 mean a decrease in brightness, and values above indicate an increase.

Since: 1.10

setContrast

brightnessContrastEffectSetContrast Source #

Arguments

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

effect: a BrightnessContrastEffect

-> Float

contrast: contrast change for all three channels

-> m () 

The range for contrast is [-1.0, 1.0], where 0.0 designates no change; a value below 0.0 indicates a decrease in contrast; and a value above 0.0 indicates an increase.

Since: 1.10

setContrastFull

brightnessContrastEffectSetContrastFull Source #

Arguments

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

effect: a BrightnessContrastEffect

-> Float

red: red component of the change in contrast

-> Float

green: green component of the change in contrast

-> Float

blue: blue component of the change in contrast

-> m () 

The range for each component is [-1.0, 1.0] where 0.0 designates no change, values below 0.0 mean a decrease in contrast, and values above indicate an increase.

Since: 1.10

Properties

brightness

The brightness change to apply to the effect.

This property uses a Color to represent the changes to each color channel. The range is [ 0, 255 ], with 127 as the value used to indicate no change; values smaller than 127 indicate a decrease in brightness, and values larger than 127 indicate an increase in brightness.

Since: 1.10

clearBrightnessContrastEffectBrightness :: (MonadIO m, IsBrightnessContrastEffect o) => o -> m () Source #

Set the value of the “brightness” property to Nothing. When overloading is enabled, this is equivalent to

clear #brightness

constructBrightnessContrastEffectBrightness :: (IsBrightnessContrastEffect o, MonadIO m) => Color -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “brightness” property. This is rarely needed directly, but it is used by new.

getBrightnessContrastEffectBrightness :: (MonadIO m, IsBrightnessContrastEffect o) => o -> m (Maybe Color) Source #

Get the value of the “brightness” property. When overloading is enabled, this is equivalent to

get brightnessContrastEffect #brightness

setBrightnessContrastEffectBrightness :: (MonadIO m, IsBrightnessContrastEffect o) => o -> Color -> m () Source #

Set the value of the “brightness” property. When overloading is enabled, this is equivalent to

set brightnessContrastEffect [ #brightness := value ]

contrast

The contrast change to apply to the effect.

This property uses a Color to represent the changes to each color channel. The range is [ 0, 255 ], with 127 as the value used to indicate no change; values smaller than 127 indicate a decrease in contrast, and values larger than 127 indicate an increase in contrast.

Since: 1.10

clearBrightnessContrastEffectContrast :: (MonadIO m, IsBrightnessContrastEffect o) => o -> m () Source #

Set the value of the “contrast” property to Nothing. When overloading is enabled, this is equivalent to

clear #contrast

constructBrightnessContrastEffectContrast :: (IsBrightnessContrastEffect o, MonadIO m) => Color -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “contrast” property. This is rarely needed directly, but it is used by new.

getBrightnessContrastEffectContrast :: (MonadIO m, IsBrightnessContrastEffect o) => o -> m (Maybe Color) Source #

Get the value of the “contrast” property. When overloading is enabled, this is equivalent to

get brightnessContrastEffect #contrast

setBrightnessContrastEffectContrast :: (MonadIO m, IsBrightnessContrastEffect o) => o -> Color -> m () Source #

Set the value of the “contrast” property. When overloading is enabled, this is equivalent to

set brightnessContrastEffect [ #contrast := value ]