| 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.Interval
Description
The Interval structure contains only private data and should
be accessed using the provided functions.
Since: 1.0
Synopsis
- newtype Interval = Interval (ManagedPtr Interval)
- class (GObject o, IsDescendantOf Interval o) => IsInterval o
- toInterval :: (MonadIO m, IsInterval o) => o -> m Interval
- intervalClone :: (HasCallStack, MonadIO m, IsInterval a) => a -> m Interval
- intervalCompute :: (HasCallStack, MonadIO m, IsInterval a) => a -> Double -> m GValue
- intervalComputeValue :: (HasCallStack, MonadIO m, IsInterval a) => a -> Double -> m (Bool, GValue)
- intervalGetFinalValue :: (HasCallStack, MonadIO m, IsInterval a) => a -> m GValue
- intervalGetInitialValue :: (HasCallStack, MonadIO m, IsInterval a) => a -> m GValue
- intervalGetValueType :: (HasCallStack, MonadIO m, IsInterval a) => a -> m GType
- intervalIsValid :: (HasCallStack, MonadIO m, IsInterval a) => a -> m Bool
- intervalNewWithValues :: (HasCallStack, MonadIO m) => GType -> Maybe GValue -> Maybe GValue -> m Interval
- intervalPeekFinalValue :: (HasCallStack, MonadIO m, IsInterval a) => a -> m GValue
- intervalPeekInitialValue :: (HasCallStack, MonadIO m, IsInterval a) => a -> m GValue
- intervalSetFinal :: (HasCallStack, MonadIO m, IsInterval a) => a -> GValue -> m ()
- intervalSetInitial :: (HasCallStack, MonadIO m, IsInterval a) => a -> GValue -> m ()
- intervalValidate :: (HasCallStack, MonadIO m, IsInterval a) => a -> GParamSpec -> m Bool
- constructIntervalFinal :: (IsInterval o, MonadIO m) => GValue -> m (GValueConstruct o)
- getIntervalFinal :: (MonadIO m, IsInterval o) => o -> m (Maybe GValue)
- setIntervalFinal :: (MonadIO m, IsInterval o) => o -> GValue -> m ()
- constructIntervalInitial :: (IsInterval o, MonadIO m) => GValue -> m (GValueConstruct o)
- getIntervalInitial :: (MonadIO m, IsInterval o) => o -> m (Maybe GValue)
- setIntervalInitial :: (MonadIO m, IsInterval o) => o -> GValue -> m ()
- constructIntervalValueType :: (IsInterval o, MonadIO m) => GType -> m (GValueConstruct o)
- getIntervalValueType :: (MonadIO m, IsInterval o) => o -> m GType
Exported types
Memory-managed wrapper type.
Instances
| Eq Interval Source # | |
| GObject Interval Source # | |
Defined in GI.Clutter.Objects.Interval | |
| ManagedPtrNewtype Interval Source # | |
Defined in GI.Clutter.Objects.Interval Methods toManagedPtr :: Interval -> ManagedPtr Interval | |
| TypedObject Interval Source # | |
Defined in GI.Clutter.Objects.Interval | |
| HasParentTypes Interval Source # | |
Defined in GI.Clutter.Objects.Interval | |
| IsGValue (Maybe Interval) Source # | Convert |
Defined in GI.Clutter.Objects.Interval Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Interval -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Interval) | |
| type ParentTypes Interval Source # | |
Defined in GI.Clutter.Objects.Interval | |
class (GObject o, IsDescendantOf Interval o) => IsInterval o Source #
Type class for types which can be safely cast to Interval, for instance with toInterval.
Instances
| (GObject o, IsDescendantOf Interval o) => IsInterval o Source # | |
Defined in GI.Clutter.Objects.Interval | |
toInterval :: (MonadIO m, IsInterval o) => o -> m Interval Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, clone, compute, computeValue, forceFloating, freezeNotify, getv, isFloating, isValid, notify, notifyByPspec, parseCustomNode, peekFinalValue, peekInitialValue, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, validate, watchClosure.
Getters
getData, getFinalValue, getId, getInitialValue, getProperty, getQdata, getValueType.
Setters
setCustomProperty, setData, setDataFull, setFinal, setId, setInitial, setProperty.
clone
Arguments
| :: (HasCallStack, MonadIO m, IsInterval a) | |
| => a |
|
| -> m Interval | Returns: the newly created |
Creates a copy of interval.
Since: 1.0
compute
Arguments
| :: (HasCallStack, MonadIO m, IsInterval a) | |
| => a |
|
| -> Double |
|
| -> m GValue | Returns: a pointer to the computed value,
or |
Computes the value between the interval boundaries given the
progress factor
Unlike intervalComputeValue, this function will
return a const pointer to the computed value
You should use this function if you immediately pass the computed
value to another function that makes a copy of it, like
objectSetProperty
Since: 1.4
computeValue
Arguments
| :: (HasCallStack, MonadIO m, IsInterval a) | |
| => a |
|
| -> Double |
|
| -> m (Bool, GValue) | Returns: |
Computes the value between the interval boundaries given the
progress factor and copies it into value.
Since: 1.0
getFinalValue
intervalGetFinalValue Source #
Arguments
| :: (HasCallStack, MonadIO m, IsInterval a) | |
| => a |
|
| -> m GValue |
getInitialValue
intervalGetInitialValue Source #
Arguments
| :: (HasCallStack, MonadIO m, IsInterval a) | |
| => a |
|
| -> m GValue |
getValueType
Arguments
| :: (HasCallStack, MonadIO m, IsInterval a) | |
| => a |
|
| -> m GType | Returns: the type of the value, or G_TYPE_INVALID |
Retrieves the GType of the values inside interval.
Since: 1.0
isValid
Arguments
| :: (HasCallStack, MonadIO m, IsInterval a) | |
| => a |
|
| -> m Bool | Returns: |
Checks if the interval has a valid initial and final values.
Since: 1.12
newWithValues
intervalNewWithValues Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => GType |
|
| -> Maybe GValue |
|
| -> Maybe GValue |
|
| -> m Interval | Returns: the newly created |
Creates a new Interval of type gtype, between initial
and final.
This function is useful for language bindings.
Since: 1.0
peekFinalValue
intervalPeekFinalValue Source #
Arguments
| :: (HasCallStack, MonadIO m, IsInterval a) | |
| => a |
|
| -> m GValue | Returns: the final value of the interval.
The value is owned by the |
Gets the pointer to the final value of interval
Since: 1.0
peekInitialValue
intervalPeekInitialValue Source #
Arguments
| :: (HasCallStack, MonadIO m, IsInterval a) | |
| => a |
|
| -> m GValue | Returns: the initial value of the interval.
The value is owned by the |
Gets the pointer to the initial value of interval
Since: 1.0
setFinal
Arguments
| :: (HasCallStack, MonadIO m, IsInterval a) | |
| => a |
|
| -> GValue |
|
| -> m () |
Sets the final value of interval to value. The value is
copied inside the Interval.
Since: 1.0
setInitial
Arguments
| :: (HasCallStack, MonadIO m, IsInterval a) | |
| => a |
|
| -> GValue |
|
| -> m () |
Sets the initial value of interval to value. The value is copied
inside the Interval.
Since: 1.0
validate
Arguments
| :: (HasCallStack, MonadIO m, IsInterval a) | |
| => a |
|
| -> GParamSpec |
|
| -> m Bool |
Validates the initial and final values of interval against
a ParamSpec.
Since: 1.0
Properties
final
The final value of the interval.
Since: 1.12
constructIntervalFinal :: (IsInterval o, MonadIO m) => GValue -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “final” property. This is rarely needed directly, but it is used by new.
getIntervalFinal :: (MonadIO m, IsInterval o) => o -> m (Maybe GValue) Source #
Get the value of the “final” property.
When overloading is enabled, this is equivalent to
get interval #final
setIntervalFinal :: (MonadIO m, IsInterval o) => o -> GValue -> m () Source #
Set the value of the “final” property.
When overloading is enabled, this is equivalent to
setinterval [ #final:=value ]
initial
The initial value of the interval.
Since: 1.12
constructIntervalInitial :: (IsInterval o, MonadIO m) => GValue -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “initial” property. This is rarely needed directly, but it is used by new.
getIntervalInitial :: (MonadIO m, IsInterval o) => o -> m (Maybe GValue) Source #
Get the value of the “initial” property.
When overloading is enabled, this is equivalent to
get interval #initial
setIntervalInitial :: (MonadIO m, IsInterval o) => o -> GValue -> m () Source #
Set the value of the “initial” property.
When overloading is enabled, this is equivalent to
setinterval [ #initial:=value ]
valueType
The type of the values in the interval.
Since: 1.0
constructIntervalValueType :: (IsInterval o, MonadIO m) => GType -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “value-type” property. This is rarely needed directly, but it is used by new.
getIntervalValueType :: (MonadIO m, IsInterval o) => o -> m GType Source #
Get the value of the “value-type” property.
When overloading is enabled, this is equivalent to
get interval #valueType