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 |
StateKey
is an opaque structure whose
members cannot be accessed directly
Since: 1.4
Synopsis
- newtype StateKey = StateKey (ManagedPtr StateKey)
- stateKeyGetMode :: (HasCallStack, MonadIO m) => StateKey -> m CULong
- stateKeyGetObject :: (HasCallStack, MonadIO m) => StateKey -> m Object
- stateKeyGetPostDelay :: (HasCallStack, MonadIO m) => StateKey -> m Double
- stateKeyGetPreDelay :: (HasCallStack, MonadIO m) => StateKey -> m Double
- stateKeyGetPropertyName :: (HasCallStack, MonadIO m) => StateKey -> m Text
- stateKeyGetPropertyType :: (HasCallStack, MonadIO m) => StateKey -> m GType
- stateKeyGetSourceStateName :: (HasCallStack, MonadIO m) => StateKey -> m Text
- stateKeyGetTargetStateName :: (HasCallStack, MonadIO m) => StateKey -> m Text
- stateKeyGetValue :: (HasCallStack, MonadIO m) => StateKey -> GValue -> m Bool
Exported types
Memory-managed wrapper type.
Instances
Eq StateKey Source # | |
GBoxed StateKey Source # | |
Defined in GI.Clutter.Structs.StateKey | |
ManagedPtrNewtype StateKey Source # | |
Defined in GI.Clutter.Structs.StateKey toManagedPtr :: StateKey -> ManagedPtr StateKey | |
TypedObject StateKey Source # | |
Defined in GI.Clutter.Structs.StateKey | |
HasParentTypes StateKey Source # | |
Defined in GI.Clutter.Structs.StateKey | |
IsGValue (Maybe StateKey) Source # | Convert |
Defined in GI.Clutter.Structs.StateKey gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe StateKey -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe StateKey) | |
type ParentTypes StateKey Source # | |
Defined in GI.Clutter.Structs.StateKey |
Methods
Click to display all available methods, including inherited ones
Methods
None.
Getters
getMode, getObject, getPostDelay, getPreDelay, getPropertyName, getPropertyType, getSourceStateName, getTargetStateName, getValue.
Setters
None.
getMode
:: (HasCallStack, MonadIO m) | |
=> StateKey |
|
-> m CULong | Returns: the mode of a |
Deprecated: (Since version 1.12)Use KeyframeTransition
and TransitionGroup
instead
Retrieves the easing mode used for stateKey
.
Since: 1.4
getObject
:: (HasCallStack, MonadIO m) | |
=> StateKey |
|
-> m Object | Returns: the object this state key applies to. |
Deprecated: (Since version 1.12)Use KeyframeTransition
and TransitionGroup
instead
Retrieves the object instance this StateKey
applies to.
Since: 1.4
getPostDelay
:: (HasCallStack, MonadIO m) | |
=> StateKey |
|
-> m Double | Returns: the post delay, used after doing the transition. |
Deprecated: (Since version 1.12)Use KeyframeTransition
and TransitionGroup
instead
Retrieves the duration of the pause after transitioning is complete as a fraction of the total transition time.
Since: 1.4
getPreDelay
:: (HasCallStack, MonadIO m) | |
=> StateKey |
|
-> m Double | Returns: the pre delay used before starting the transition. |
Deprecated: (Since version 1.12)Use KeyframeTransition
and TransitionGroup
instead
Retrieves the pause before transitioning starts as a fraction of the total transition time.
Since: 1.4
getPropertyName
stateKeyGetPropertyName Source #
:: (HasCallStack, MonadIO m) | |
=> StateKey |
|
-> m Text | Returns: the name of the property. The returned string is owned
by the |
Deprecated: (Since version 1.12)Use KeyframeTransition
and TransitionGroup
instead
Retrieves the name of the property this StateKey
applies to
Since: 1.4
getPropertyType
stateKeyGetPropertyType Source #
:: (HasCallStack, MonadIO m) | |
=> StateKey |
|
-> m GType | Returns: the |
Deprecated: (Since version 1.12)Use KeyframeTransition
and TransitionGroup
instead
Retrieves the GType
of the property a key applies to
You can use this type to initialize the Value
to pass to
stateKeyGetValue
Since: 1.4
getSourceStateName
stateKeyGetSourceStateName Source #
:: (HasCallStack, MonadIO m) | |
=> StateKey |
|
-> m Text | Returns: the name of the source state for this key, or |
Deprecated: (Since version 1.12)Use KeyframeTransition
and TransitionGroup
instead
Retrieves the name of the source state of the stateKey
Since: 1.4
getTargetStateName
stateKeyGetTargetStateName Source #
:: (HasCallStack, MonadIO m) | |
=> StateKey |
|
-> m Text | Returns: the name of the source state for this key, or NULL if the key is generic |
Deprecated: (Since version 1.12)Use KeyframeTransition
and TransitionGroup
instead
Get the name of the source state this StateKey
contains,
or NULL if this is the generic state key for the given property
when transitioning to the target state.
Since: 1.4
getValue
:: (HasCallStack, MonadIO m) | |
=> StateKey |
|
-> GValue |
|
-> m Bool | Returns: |
Deprecated: (Since version 1.12)Use KeyframeTransition
and TransitionGroup
instead
Retrieves a copy of the value for a StateKey
.
The Value
needs to be already initialized for the value type
of the property or to a type that allow transformation from the value
type of the key.
Use valueUnset
when done.
Since: 1.4