| Copyright | Will Thompson and Iñaki García Etxebarria | 
|---|---|
| License | LGPL-2.1 | 
| Maintainer | Iñaki García Etxebarria | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
GI.Clutter.Objects.BrightnessContrastEffect
Description
BrightnessContrastEffect is an opaque structure
 whose members cannot be directly accessed
Since: 1.10
Synopsis
- newtype BrightnessContrastEffect = BrightnessContrastEffect (ManagedPtr BrightnessContrastEffect)
 - class (GObject o, IsDescendantOf BrightnessContrastEffect o) => IsBrightnessContrastEffect o
 - toBrightnessContrastEffect :: (MonadIO m, IsBrightnessContrastEffect o) => o -> m BrightnessContrastEffect
 - brightnessContrastEffectGetBrightness :: (HasCallStack, MonadIO m, IsBrightnessContrastEffect a) => a -> m (Float, Float, Float)
 - brightnessContrastEffectGetContrast :: (HasCallStack, MonadIO m, IsBrightnessContrastEffect a) => a -> m (Float, Float, Float)
 - brightnessContrastEffectNew :: (HasCallStack, MonadIO m) => m BrightnessContrastEffect
 - brightnessContrastEffectSetBrightness :: (HasCallStack, MonadIO m, IsBrightnessContrastEffect a) => a -> Float -> m ()
 - brightnessContrastEffectSetBrightnessFull :: (HasCallStack, MonadIO m, IsBrightnessContrastEffect a) => a -> Float -> Float -> Float -> m ()
 - brightnessContrastEffectSetContrast :: (HasCallStack, MonadIO m, IsBrightnessContrastEffect a) => a -> Float -> m ()
 - brightnessContrastEffectSetContrastFull :: (HasCallStack, MonadIO m, IsBrightnessContrastEffect a) => a -> Float -> Float -> Float -> m ()
 - clearBrightnessContrastEffectBrightness :: (MonadIO m, IsBrightnessContrastEffect o) => o -> m ()
 - constructBrightnessContrastEffectBrightness :: (IsBrightnessContrastEffect o, MonadIO m) => Color -> m (GValueConstruct o)
 - getBrightnessContrastEffectBrightness :: (MonadIO m, IsBrightnessContrastEffect o) => o -> m (Maybe Color)
 - setBrightnessContrastEffectBrightness :: (MonadIO m, IsBrightnessContrastEffect o) => o -> Color -> m ()
 - clearBrightnessContrastEffectContrast :: (MonadIO m, IsBrightnessContrastEffect o) => o -> m ()
 - constructBrightnessContrastEffectContrast :: (IsBrightnessContrastEffect o, MonadIO m) => Color -> m (GValueConstruct o)
 - getBrightnessContrastEffectContrast :: (MonadIO m, IsBrightnessContrastEffect o) => o -> m (Maybe Color)
 - setBrightnessContrastEffectContrast :: (MonadIO m, IsBrightnessContrastEffect o) => o -> Color -> m ()
 
Exported types
newtype BrightnessContrastEffect Source #
Memory-managed wrapper type.
Constructors
| BrightnessContrastEffect (ManagedPtr BrightnessContrastEffect) | 
Instances
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
| (GObject o, IsDescendantOf BrightnessContrastEffect o) => IsBrightnessContrastEffect o Source # | |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, createTexture, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, paintTarget, queueRepaint, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActor, getBrightness, getContrast, getData, getEnabled, getName, getProperty, getQdata, getTarget, getTargetRect, getTargetSize, getTexture.
Setters
setBrightness, setBrightnessFull, setContrast, setContrastFull, setData, setDataFull, setEnabled, setName, setProperty.
getBrightness
brightnessContrastEffectGetBrightness Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBrightnessContrastEffect a) | |
| => a | 
  | 
| -> m (Float, Float, Float) | 
Retrieves the change in brightness used by effect.
Since: 1.10
getContrast
brightnessContrastEffectGetContrast Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBrightnessContrastEffect a) | |
| => a | 
  | 
| -> m (Float, Float, Float) | 
Retrieves the contrast value used by effect.
Since: 1.10
new
brightnessContrastEffectNew Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m BrightnessContrastEffect | Returns: the newly created
     | 
Creates a new BrightnessContrastEffect to be used with
 actorAddEffect
Since: 1.10
setBrightness
brightnessContrastEffectSetBrightness Source #
Arguments
| :: (HasCallStack, MonadIO m, IsBrightnessContrastEffect a) | |
| => a | 
  | 
| -> Float | 
  | 
| -> 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 | 
  | 
| -> Float | 
  | 
| -> Float | 
  | 
| -> Float | 
  | 
| -> 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 | 
  | 
| -> Float | 
  | 
| -> 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 | 
  | 
| -> Float | 
  | 
| -> Float | 
  | 
| -> Float | 
  | 
| -> 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
setbrightnessContrastEffect [ #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
setbrightnessContrastEffect [ #contrast:=value ]