| 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.Dazzle.Structs.CounterValue
Description
No description available in the introspection data.
Synopsis
- newtype CounterValue = CounterValue (ManagedPtr CounterValue)
- newZeroCounterValue :: MonadIO m => m CounterValue
- getCounterValueValue :: MonadIO m => CounterValue -> m Int64
- setCounterValueValue :: MonadIO m => CounterValue -> Int64 -> m ()
Exported types
newtype CounterValue Source #
Memory-managed wrapper type.
Constructors
| CounterValue (ManagedPtr CounterValue) |
Instances
| Eq CounterValue Source # | |
Defined in GI.Dazzle.Structs.CounterValue | |
| BoxedPtr CounterValue Source # | |
Defined in GI.Dazzle.Structs.CounterValue | |
| CallocPtr CounterValue Source # | |
Defined in GI.Dazzle.Structs.CounterValue Methods boxedPtrCalloc :: IO (Ptr CounterValue) | |
| ManagedPtrNewtype CounterValue Source # | |
Defined in GI.Dazzle.Structs.CounterValue Methods toManagedPtr :: CounterValue -> ManagedPtr CounterValue | |
| tag ~ 'AttrSet => Constructible CounterValue tag Source # | |
Defined in GI.Dazzle.Structs.CounterValue Methods new :: MonadIO m => (ManagedPtr CounterValue -> CounterValue) -> [AttrOp CounterValue tag] -> m CounterValue | |
newZeroCounterValue :: MonadIO m => m CounterValue Source #
Construct a CounterValue struct initialized to zero.
Methods
Properties
value
No description available in the introspection data.
getCounterValueValue :: MonadIO m => CounterValue -> m Int64 Source #
Get the value of the “value” field.
When overloading is enabled, this is equivalent to
get counterValue #value
setCounterValueValue :: MonadIO m => CounterValue -> Int64 -> m () Source #
Set the value of the “value” field.
When overloading is enabled, this is equivalent to
setcounterValue [ #value:=value ]