Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GFileAttributeInfoList

[15:7] extends: object

Acts as a lightweight registry for possible valid file attributes. The registry stores Key-Value pair formats as #GFileAttributeInfos.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GFileAttributeInfoList (Handle = null)

    Creates a new file attribute info list.

    • @p Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.
  • 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.
  • add (string name, string type, string flags)

    Adds a new attribute with @name to the @list, setting its @type and

    • @flags. ``
    • @p name is the name of the attribute to add..
    • @p type is the #GFileAttributeType for the attribute..
    • @p flags is #GFileAttributeInfoFlags for the attribute..
    • @r None.
  • dup ()

    Makes a duplicate of a file attribute info list.

    • @r a copy of the given @list..
  • lookup (string name)

    Gets the file attribute with the name @name from @list.

    • @p name is the name of the attribute to look up..
    • @r a #GFileAttributeInfo for the @name, or %NULL if an attribute isn't found..
  • ref ()

    References a file attribute info list.

    • @r #GFileAttributeInfoList or %NULL on error..
  • unref ()

    Removes a reference from the given @list. If the reference count falls to zero, the @list is deleted.

    • @r None.