Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GParamSpecPool

[15:7] extends: object

A #GParamSpecPool maintains a collection of #GParamSpecs which can be quickly accessed by owner and name. The implementation of the #GObject property system uses such a pool to store the #GParamSpecs of the properties all object types.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GParamSpecPool (Handle = null)

    Creates a new ParamSpecPool by wrapping a native handle or another wrapper.

    • @p Handle is the native handle or another wrapper whose handle to adopt.
  • 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.
  • free ()

    Frees the resources allocated by a #GParamSpecPool.

    • @r None.
  • insert (object pspec, int owner_type)

    Inserts a #GParamSpec in the pool.

    • @p pspec is the #GParamSpec to insert.
    • @p owner_type is a #GType identifying the owner of @pspec.
    • @r None.
  • FnList (int owner_type)

    Gets an array of all #GParamSpecs owned by @owner_type in the pool.

    • @p owner_type is the owner to look for.
    • @p n_pspecs_p is return location for the length of the returned array.
    • @r a newly allocated array containing pointers to all #GParamSpecs owned by @owner_type in the pool.
  • list_owned (int owner_type)

    Gets an #GList of all #GParamSpecs owned by @owner_type in the pool.

    • @p owner_type is the owner to look for.
    • @r a #GList of all #GParamSpecs owned by @owner_type in the pool#GParamSpecs..
  • lookup (string param_name, int owner_type, bool walk_ancestors)

    Looks up a #GParamSpec in the pool.

    • @p param_name is the name to look for.
    • @p owner_type is the owner to look for.
    • @p walk_ancestors is If %TRUE, also try to find a #GParamSpec with
    • @param_name owned by an ancestor of @owner_type..
    • @r The found #GParamSpec, or %NULL if no matching #GParamSpec was found..
  • remove (object pspec)

    Removes a #GParamSpec from the pool.

    • @p pspec is the #GParamSpec to remove.
    • @r None.
  • owned ()

    Returns list_owned as an Aussom list of wrapper objects. This companion method materializes the full collection up front; use list_owned() when lazy or change-notify access is required.

    • @r An Aussom list of elements.