ArrayG.this

Creates a new #GArray with a reference count of 1.

  1. this(GArray* gArray, bool ownedRef)
  2. this(bool zeroTerminated, bool clear, uint elementSize)
    class ArrayG
    this

Parameters

zeroTerminated bool

%TRUE if the array should have an extra element at the end which is set to 0

clear bool

%TRUE if #GArray elements should be automatically cleared to 0 when they are allocated

elementSize uint

the size of each element in bytes

Return Value

the new #GArray

Throws

ConstructionException GTK+ fails to create the object.

Meta