Class NFDPickFolderArgs

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<NFDPickFolderArgs>
org.lwjgl.util.nfd.NFDPickFolderArgs
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class NFDPickFolderArgs extends org.lwjgl.system.Struct<NFDPickFolderArgs> implements org.lwjgl.system.NativeResource

Layout


 struct nfdpickfolderu8args_t {
     nfdchar_t const * defaultPath;
     nfdwindowhandle_t parentWindow;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • DEFAULTPATH

      public static final int DEFAULTPATH
      The struct member offsets.
    • PARENTWINDOW

      public static final int PARENTWINDOW
      The struct member offsets.
  • Constructor Details

    • NFDPickFolderArgs

      public NFDPickFolderArgs(ByteBuffer container)
      Creates a NFDPickFolderArgs instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<NFDPickFolderArgs>
    • defaultPath

      public @Nullable ByteBuffer defaultPath()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the defaultPath field.
    • defaultPathString

      public @Nullable String defaultPathString()
      Returns:
      the null-terminated string pointed to by the defaultPath field.
    • parentWindow

      public NFDWindowHandle parentWindow()
      Returns:
      a NFDWindowHandle view of the parentWindow field.
    • defaultPath

      public NFDPickFolderArgs defaultPath(@Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the defaultPath field.
    • parentWindow

      public NFDPickFolderArgs parentWindow(NFDWindowHandle value)
      Copies the specified NFDWindowHandle to the parentWindow field.
    • parentWindow

      public NFDPickFolderArgs parentWindow(Consumer<NFDWindowHandle> consumer)
      Passes the parentWindow field to the specified Consumer.
    • set

      public NFDPickFolderArgs set(@Nullable ByteBuffer defaultPath, NFDWindowHandle parentWindow)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static NFDPickFolderArgs malloc()
      Returns a new NFDPickFolderArgs instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static NFDPickFolderArgs calloc()
      Returns a new NFDPickFolderArgs instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static NFDPickFolderArgs create()
      Returns a new NFDPickFolderArgs instance allocated with BufferUtils.
    • create

      public static NFDPickFolderArgs create(long address)
      Returns a new NFDPickFolderArgs instance for the specified memory address.
    • createSafe

      public static @Nullable NFDPickFolderArgs createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static NFDPickFolderArgs.Buffer malloc(int capacity)
      Returns a new NFDPickFolderArgs.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static NFDPickFolderArgs.Buffer calloc(int capacity)
      Returns a new NFDPickFolderArgs.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static NFDPickFolderArgs.Buffer create(int capacity)
      Returns a new NFDPickFolderArgs.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static NFDPickFolderArgs.Buffer create(long address, int capacity)
      Create a NFDPickFolderArgs.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable NFDPickFolderArgs.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static NFDPickFolderArgs malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new NFDPickFolderArgs instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static NFDPickFolderArgs calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new NFDPickFolderArgs instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static NFDPickFolderArgs.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new NFDPickFolderArgs.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static NFDPickFolderArgs.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new NFDPickFolderArgs.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ndefaultPath

      public static @Nullable ByteBuffer ndefaultPath(long struct)
      Unsafe version of defaultPath().
    • ndefaultPathString

      public static @Nullable String ndefaultPathString(long struct)
      Unsafe version of defaultPathString().
    • nparentWindow

      public static NFDWindowHandle nparentWindow(long struct)
      Unsafe version of parentWindow().
    • ndefaultPath

      public static void ndefaultPath(long struct, @Nullable ByteBuffer value)
      Unsafe version of defaultPath.
    • nparentWindow

      public static void nparentWindow(long struct, NFDWindowHandle value)
      Unsafe version of parentWindow.