Class FileList

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class FileList extends ProxyInstance
An opaque type representing a list of files.
Since:
4.6
  • Constructor Details

    • FileList

      public FileList(MemorySegment address)
      Create a FileList proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the FileList class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • fromArray

      public static FileList fromArray(@Nullable File @Nullable [] files)

      Creates a new GdkFileList for the given array of files.

      This function is meant to be used by language bindings.

      Parameters:
      files - the files to add to the list
      Returns:
      the newly create files list
      Since:
      4.8
    • fromList

      public static FileList fromList(SList<File> files)

      Creates a new files list container from a singly linked list of GFile instances.

      This function is meant to be used by language bindings

      Parameters:
      files - a list of files
      Returns:
      the newly created files list
      Since:
      4.8
    • getFiles

      public SList<File> getFiles()

      Retrieves the list of files inside a GdkFileList.

      This function is meant for language bindings.

      Returns:
      the files inside the list
      Since:
      4.6