gi-clutter-1.0.6: 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.BehaviourOpacity

Description

The BehaviourOpacity structure contains only private data and should be accessed using the provided API

Since: 0.2

Synopsis

Exported types

newtype BehaviourOpacity Source #

Memory-managed wrapper type.

Constructors

BehaviourOpacity (ManagedPtr BehaviourOpacity) 

Instances

Instances details
Eq BehaviourOpacity Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourOpacity

GObject BehaviourOpacity Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourOpacity

ManagedPtrNewtype BehaviourOpacity Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourOpacity

TypedObject BehaviourOpacity Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourOpacity

Methods

glibType :: IO GType

HasParentTypes BehaviourOpacity Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourOpacity

IsGValue (Maybe BehaviourOpacity) Source #

Convert BehaviourOpacity to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Clutter.Objects.BehaviourOpacity

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe BehaviourOpacity -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe BehaviourOpacity)

type ParentTypes BehaviourOpacity Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourOpacity

type ParentTypes BehaviourOpacity = '[Behaviour, Object, Scriptable]

class (GObject o, IsDescendantOf BehaviourOpacity o) => IsBehaviourOpacity o Source #

Type class for types which can be safely cast to BehaviourOpacity, for instance with toBehaviourOpacity.

Instances

Instances details
(GObject o, IsDescendantOf BehaviourOpacity o) => IsBehaviourOpacity o Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourOpacity

toBehaviourOpacity :: (MonadIO m, IsBehaviourOpacity o) => o -> m BehaviourOpacity Source #

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

Methods

getBounds

behaviourOpacityGetBounds Source #

Arguments

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

behaviour: a BehaviourOpacity

-> m (Word8, Word8) 

Deprecated: (Since version 1.6)

Gets the initial and final levels of the opacity applied by behaviour on each actor it controls.

Since: 0.6

new

behaviourOpacityNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsAlpha a) 
=> Maybe a

alpha: a Alpha instance, or Nothing

-> Word8

opacityStart: minimum level of opacity

-> Word8

opacityEnd: maximum level of opacity

-> m BehaviourOpacity

Returns: the newly created BehaviourOpacity

Deprecated: (Since version 1.6)

Creates a new BehaviourOpacity object, driven by alpha which controls the opacity property of every actor, making it change in the interval between opacityStart and opacityEnd.

If alpha is not Nothing, the Behaviour will take ownership of the Alpha instance. In the case when alpha is Nothing, it can be set later with behaviourSetAlpha.

Since: 0.2

setBounds

behaviourOpacitySetBounds Source #

Arguments

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

behaviour: a BehaviourOpacity

-> Word8

opacityStart: minimum level of opacity

-> Word8

opacityEnd: maximum level of opacity

-> m () 

Deprecated: (Since version 1.6)

Sets the initial and final levels of the opacity applied by behaviour on each actor it controls.

Since: 0.6

Properties

opacityEnd

Final opacity level of the behaviour.

Since: 0.2

constructBehaviourOpacityOpacityEnd :: (IsBehaviourOpacity o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

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

getBehaviourOpacityOpacityEnd :: (MonadIO m, IsBehaviourOpacity o) => o -> m Word32 Source #

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

get behaviourOpacity #opacityEnd

setBehaviourOpacityOpacityEnd :: (MonadIO m, IsBehaviourOpacity o) => o -> Word32 -> m () Source #

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

set behaviourOpacity [ #opacityEnd := value ]

opacityStart

Initial opacity level of the behaviour.

Since: 0.2

constructBehaviourOpacityOpacityStart :: (IsBehaviourOpacity o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

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

getBehaviourOpacityOpacityStart :: (MonadIO m, IsBehaviourOpacity o) => o -> m Word32 Source #

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

get behaviourOpacity #opacityStart

setBehaviourOpacityOpacityStart :: (MonadIO m, IsBehaviourOpacity o) => o -> Word32 -> m () Source #

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

set behaviourOpacity [ #opacityStart := value ]