Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GdkFileListCtors

[138:14] static extends: object

Alternate constructors for GdkFileList. Usage: GdkFileListCtors.<name>(...). The primary constructor lives directly on GdkFileList.

Methods

  • newFromArray (list files)

    Creates a new GdkFileList for the given array of files. This function is meant to be used by language bindings.

    • @p files is the files to add to the list.
    • @p n_files is the number of files in the array.
    • @r A new GdkFileList.

class: GdkFileList

[12:7] extends: object

An opaque type representing a list of files.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GdkFileList (files = null)

    Creates a new files list container from a singly linked list of GFile instances. This function is meant to be used by language bindings

    • @p files is a list of files.
  • 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.
  • get_files ()

    Retrieves the list of files inside a GdkFileList. This function is meant for language bindings.

    • @r the files inside the list.
  • files ()

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

    • @r An Aussom list of elements.