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 |
The BehaviourOpacity
structure contains only private data and
should be accessed using the provided API
Since: 0.2
Synopsis
- newtype BehaviourOpacity = BehaviourOpacity (ManagedPtr BehaviourOpacity)
- class (GObject o, IsDescendantOf BehaviourOpacity o) => IsBehaviourOpacity o
- toBehaviourOpacity :: (MonadIO m, IsBehaviourOpacity o) => o -> m BehaviourOpacity
- behaviourOpacityGetBounds :: (HasCallStack, MonadIO m, IsBehaviourOpacity a) => a -> m (Word8, Word8)
- behaviourOpacityNew :: (HasCallStack, MonadIO m, IsAlpha a) => Maybe a -> Word8 -> Word8 -> m BehaviourOpacity
- behaviourOpacitySetBounds :: (HasCallStack, MonadIO m, IsBehaviourOpacity a) => a -> Word8 -> Word8 -> m ()
- constructBehaviourOpacityOpacityEnd :: (IsBehaviourOpacity o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getBehaviourOpacityOpacityEnd :: (MonadIO m, IsBehaviourOpacity o) => o -> m Word32
- setBehaviourOpacityOpacityEnd :: (MonadIO m, IsBehaviourOpacity o) => o -> Word32 -> m ()
- constructBehaviourOpacityOpacityStart :: (IsBehaviourOpacity o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getBehaviourOpacityOpacityStart :: (MonadIO m, IsBehaviourOpacity o) => o -> m Word32
- setBehaviourOpacityOpacityStart :: (MonadIO m, IsBehaviourOpacity o) => o -> Word32 -> m ()
Exported types
newtype BehaviourOpacity Source #
Memory-managed wrapper type.
BehaviourOpacity (ManagedPtr BehaviourOpacity) |
Instances
Eq BehaviourOpacity Source # | |
Defined in GI.Clutter.Objects.BehaviourOpacity (==) :: BehaviourOpacity -> BehaviourOpacity -> Bool # (/=) :: BehaviourOpacity -> BehaviourOpacity -> Bool # | |
GObject BehaviourOpacity Source # | |
Defined in GI.Clutter.Objects.BehaviourOpacity | |
ManagedPtrNewtype BehaviourOpacity Source # | |
Defined in GI.Clutter.Objects.BehaviourOpacity toManagedPtr :: BehaviourOpacity -> ManagedPtr BehaviourOpacity | |
TypedObject BehaviourOpacity Source # | |
Defined in GI.Clutter.Objects.BehaviourOpacity | |
HasParentTypes BehaviourOpacity Source # | |
Defined in GI.Clutter.Objects.BehaviourOpacity | |
IsGValue (Maybe BehaviourOpacity) Source # | Convert |
Defined in GI.Clutter.Objects.BehaviourOpacity gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe BehaviourOpacity -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe BehaviourOpacity) | |
type ParentTypes BehaviourOpacity Source # | |
Defined in GI.Clutter.Objects.BehaviourOpacity |
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
(GObject o, IsDescendantOf BehaviourOpacity o) => IsBehaviourOpacity o Source # | |
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
Click to display all available methods, including inherited ones
Methods
actorsForeach, apply, bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isApplied, isFloating, notify, notifyByPspec, parseCustomNode, ref, refSink, remove, removeAll, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActors, getAlpha, getBounds, getData, getId, getNActors, getNthActor, getProperty, getQdata.
Setters
setAlpha, setBounds, setCustomProperty, setData, setDataFull, setId, setProperty.
getBounds
behaviourOpacityGetBounds Source #
:: (HasCallStack, MonadIO m, IsBehaviourOpacity a) | |
=> a |
|
-> 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
:: (HasCallStack, MonadIO m, IsAlpha a) | |
=> Maybe a | |
-> Word8 |
|
-> Word8 |
|
-> m BehaviourOpacity | Returns: the newly created |
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 #
:: (HasCallStack, MonadIO m, IsBehaviourOpacity a) | |
=> a |
|
-> Word8 |
|
-> Word8 |
|
-> 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 ]