gi-dazzle-1.0.2: libdazzle bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Dazzle.Structs.Counter

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Counter Source #

Memory-managed wrapper type.

Constructors

Counter (ManagedPtr Counter) 

Instances

Instances details
Eq Counter Source # 
Instance details

Defined in GI.Dazzle.Structs.Counter

Methods

(==) :: Counter -> Counter -> Bool #

(/=) :: Counter -> Counter -> Bool #

BoxedPtr Counter Source # 
Instance details

Defined in GI.Dazzle.Structs.Counter

CallocPtr Counter Source # 
Instance details

Defined in GI.Dazzle.Structs.Counter

ManagedPtrNewtype Counter Source # 
Instance details

Defined in GI.Dazzle.Structs.Counter

Methods

toManagedPtr :: Counter -> ManagedPtr Counter

tag ~ 'AttrSet => Constructible Counter tag Source # 
Instance details

Defined in GI.Dazzle.Structs.Counter

Methods

new :: MonadIO m => (ManagedPtr Counter -> Counter) -> [AttrOp Counter tag] -> m Counter

newZeroCounter :: MonadIO m => m Counter Source #

Construct a Counter struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

get, reset.

Getters

None.

Setters

None.

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 ]