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.Counter
Description
No description available in the introspection data.
Synopsis
- newtype Counter = Counter (ManagedPtr Counter)
- newZeroCounter :: MonadIO m => m Counter
- counterGet :: (HasCallStack, MonadIO m) => Counter -> m Int64
- counterReset :: (HasCallStack, MonadIO m) => Counter -> m ()
- clearCounterCategory :: MonadIO m => Counter -> m ()
- getCounterCategory :: MonadIO m => Counter -> m (Maybe Text)
- setCounterCategory :: MonadIO m => Counter -> CString -> m ()
- clearCounterDescription :: MonadIO m => Counter -> m ()
- getCounterDescription :: MonadIO m => Counter -> m (Maybe Text)
- setCounterDescription :: MonadIO m => Counter -> CString -> m ()
- clearCounterName :: MonadIO m => Counter -> m ()
- getCounterName :: MonadIO m => Counter -> m (Maybe Text)
- setCounterName :: MonadIO m => Counter -> CString -> m ()
- clearCounterValues :: MonadIO m => Counter -> m ()
- getCounterValues :: MonadIO m => Counter -> m (Maybe CounterValue)
- setCounterValues :: MonadIO m => Counter -> Ptr CounterValue -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Counter Source # | |
BoxedPtr Counter Source # | |
Defined in GI.Dazzle.Structs.Counter | |
CallocPtr Counter Source # | |
Defined in GI.Dazzle.Structs.Counter Methods boxedPtrCalloc :: IO (Ptr Counter) | |
ManagedPtrNewtype Counter Source # | |
Defined in GI.Dazzle.Structs.Counter Methods toManagedPtr :: Counter -> ManagedPtr Counter | |
tag ~ 'AttrSet => Constructible Counter tag Source # | |
Methods
Click to display all available methods, including inherited ones
get
counterGet :: (HasCallStack, MonadIO m) => Counter -> m Int64 Source #
No description available in the introspection data.
reset
counterReset :: (HasCallStack, MonadIO m) => Counter -> m () Source #
No description available in the introspection data.
Properties
category
No description available in the introspection data.
clearCounterCategory :: MonadIO m => Counter -> m () Source #
Set the value of the “category
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#category
getCounterCategory :: MonadIO m => Counter -> m (Maybe Text) Source #
Get the value of the “category
” field.
When overloading is enabled, this is equivalent to
get
counter #category
setCounterCategory :: MonadIO m => Counter -> CString -> m () Source #
Set the value of the “category
” field.
When overloading is enabled, this is equivalent to
set
counter [ #category:=
value ]
description
No description available in the introspection data.
clearCounterDescription :: MonadIO m => Counter -> m () Source #
Set the value of the “description
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#description
getCounterDescription :: MonadIO m => Counter -> m (Maybe Text) Source #
Get the value of the “description
” field.
When overloading is enabled, this is equivalent to
get
counter #description
setCounterDescription :: MonadIO m => Counter -> CString -> m () Source #
Set the value of the “description
” field.
When overloading is enabled, this is equivalent to
set
counter [ #description:=
value ]
name
No description available in the introspection data.
clearCounterName :: MonadIO m => Counter -> m () Source #
Set the value of the “name
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#name
getCounterName :: MonadIO m => Counter -> m (Maybe Text) Source #
Get the value of the “name
” field.
When overloading is enabled, this is equivalent to
get
counter #name
setCounterName :: MonadIO m => Counter -> CString -> m () Source #
Set the value of the “name
” field.
When overloading is enabled, this is equivalent to
set
counter [ #name:=
value ]
values
No description available in the introspection data.
clearCounterValues :: MonadIO m => Counter -> m () Source #
Set the value of the “values
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#values
getCounterValues :: MonadIO m => Counter -> m (Maybe CounterValue) Source #
Get the value of the “values
” field.
When overloading is enabled, this is equivalent to
get
counter #values
setCounterValues :: MonadIO m => Counter -> Ptr CounterValue -> m () Source #
Set the value of the “values
” field.
When overloading is enabled, this is equivalent to
set
counter [ #values:=
value ]