Closure.this

Allocates a struct of the given size and initializes the initial part as a GClosure. This function is mainly useful when implementing new types of closures.

  1. this(GClosure* gClosure)
  2. this(uint sizeofClosure, ObjectG object)
  3. this(uint sizeofClosure, void* data)
    class Closure
    this
    (,
    void* data
    )

Parameters

sizeofClosure uint

the size of the structure to allocate, must be at least sizeof (GClosure)

data void*

data to store in the data field of the newly allocated GClosure

Throws

ConstructionException GTK+ fails to create the object.

Meta