gi-glib
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.GLib.Structs.PtrArray

Description

Contains the public fields of a GPtrArray.

Synopsis

Exported types

newtype PtrArray Source #

Memory-managed wrapper type.

Constructors

PtrArray (ManagedPtr PtrArray) 

Instances

Instances details
Eq PtrArray Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

GBoxed PtrArray Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

ManagedPtrNewtype PtrArray Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

TypedObject PtrArray Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

Methods

glibType :: IO GType #

HasParentTypes PtrArray Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

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 #

HasAttributeList PtrArray Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

(info ~ ResolvePtrArrayMethod t PtrArray, OverloadedMethod info PtrArray p, HasField t PtrArray p) => HasField (t :: Symbol) PtrArray (p :: Type) Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

Methods

getField :: PtrArray -> p #

(info ~ ResolvePtrArrayMethod t PtrArray, OverloadedMethodInfo info PtrArray) => IsLabel t (MethodProxy info PtrArray) Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

(info ~ ResolvePtrArrayMethod t PtrArray, OverloadedMethod info PtrArray p) => IsLabel t (PtrArray -> p) Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

Methods

fromLabel :: PtrArray -> p #

IsGValue (Maybe PtrArray) Source #

Convert PtrArray to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GLib.Structs.PtrArray

type AttributeList PtrArray Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

type ParentTypes PtrArray Source # 
Instance details

Defined in GI.GLib.Structs.PtrArray

type ParentTypes PtrArray = '[] :: [Type]

newZeroPtrArray :: MonadIO m => m PtrArray Source #

Construct a PtrArray struct initialized to zero.

Methods

type family ResolvePtrArrayMethod (t :: Symbol) o where ... Source #

Properties

len

the 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

a pointer 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 ]