Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GTuples

[30:7] extends: object

The #GTuples struct is used to return records (or tuples) from the #GRelation by g_relation_select(). It only contains one public member - the number of records that matched. To access the matched records, you must use g_tuples_index().

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GTuples (Handle = null)

    Creates a new Tuples 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.
  • destroy ()

    Frees the records which were returned by g_relation_select(). This should always be called after g_relation_select() when you are finished with the records. The records are not removed from the #GRelation.

    • @r None.
  • index (int index_, int field)

    Gets a field from the records returned by g_relation_select(). It returns the given field of the record at the given index. The returned value should not be changed.

    • @p index_ is the index of the record..
    • @p field is the field to return..
    • @r the field of the record..

class: GTuplesLayout

[12:14] static extends: object

Generated struct layout helper for GIR record Tuples.

Methods

  • layout ()

    Returns the Panama struct layout for Tuples.