gi-glib-2.0.19: GLib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.GLib.Structs.PtrArray

Contents

Description

Contains the public fields of a pointer array.

Synopsis

Exported types

newtype PtrArray Source #

Memory-managed wrapper type.

Constructors

PtrArray (ManagedPtr PtrArray) 
Instances
BoxedObject PtrArray Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

Methods

boxedType :: PtrArray -> IO GType #

tag ~ AttrSet => Constructible PtrArray tag Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

Methods

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

newZeroPtrArray :: MonadIO m => m PtrArray Source #

Construct a PtrArray struct initialized to zero.

noPtrArray :: Maybe PtrArray Source #

A convenience alias for Nothing :: Maybe PtrArray.

Properties

len

number of pointers in the array

getPtrArrayLen :: MonadIO m => PtrArray -> m Word32 Source #

Get the value of the “len” field. When overloading is enabled, this is equivalent to

get ptrArray #len

setPtrArrayLen :: MonadIO m => PtrArray -> Word32 -> m () Source #

Set the value of the “len” field. When overloading is enabled, this is equivalent to

set ptrArray [ #len := value ]

pdata

points to the array of pointers, which may be moved when the array grows

clearPtrArrayPdata :: MonadIO m => PtrArray -> m () Source #

Set the value of the “pdata” field to Nothing. When overloading is enabled, this is equivalent to

clear #pdata

getPtrArrayPdata :: MonadIO m => PtrArray -> m (Ptr ()) Source #

Get the value of the “pdata” field. When overloading is enabled, this is equivalent to

get ptrArray #pdata

setPtrArrayPdata :: MonadIO m => PtrArray -> Ptr () -> m () Source #

Set the value of the “pdata” field. When overloading is enabled, this is equivalent to

set ptrArray [ #pdata := value ]