Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GtkCClosureExpression

[12:7] extends: object

A variant of GtkClosureExpression using a C closure.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GtkCClosureExpression (value_type = null, marshal = null, n_params = null, params = null, callback_func = null, user_data = null, user_destroy = null)

    Creates a GtkExpression that calls callback_func when it is evaluated. This function is a variant of [ctor@Gtk.ClosureExpression.new] that creates a GClosure by calling g_cclosure_new() with the given callback_func, user_data and user_destroy.

    • @p value_type is the type of the value that this expression evaluates to.
    • @p marshal is marshaller used for creating a closure.
    • @p n_params is the number of params needed for evaluating @closure.
    • @p params is expressions for each parameter.
    • @p callback_func is callback used for creating a closure.
    • @p user_data is user data used for creating a closure.
    • @p user_destroy is destroy notify for @user_data.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asExpression ()

    Wraps this handle as GtkExpression.

    • @r A GtkExpression object.