Closure.this

A variant of g_closure_new_simple() which stores @object in the @data field of the closure and calls g_object_watch_closure() on @object and the created closure. This function is mainly useful when implementing new types of closures.

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

Parameters

sizeofClosure uint

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

object ObjectG

a #GObject pointer to store in the @data field of the newly allocated #GClosure

Return: a newly allocated #GClosure

Throws

ConstructionException GTK+ fails to create the object.

Meta