Package org.lwjgl.util.nfd
Class NFDPickFolderArgs
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct nfdpickfolderu8args_t {
nfdchar_t const * defaultPath;
nfdwindowhandle_t parentWindow;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNFDPickFolderArgs(ByteBuffer container) Creates aNFDPickFolderArgsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic NFDPickFolderArgscalloc()Returns a newNFDPickFolderArgsinstance allocated withmemCalloc.static NFDPickFolderArgs.Buffercalloc(int capacity) Returns a newNFDPickFolderArgs.Bufferinstance allocated withmemCalloc.static NFDPickFolderArgs.Buffercalloc(int capacity, MemoryStack stack) Returns a newNFDPickFolderArgs.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NFDPickFolderArgscalloc(MemoryStack stack) Returns a newNFDPickFolderArgsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NFDPickFolderArgscreate()Returns a newNFDPickFolderArgsinstance allocated withBufferUtils.static NFDPickFolderArgs.Buffercreate(int capacity) Returns a newNFDPickFolderArgs.Bufferinstance allocated withBufferUtils.static NFDPickFolderArgscreate(long address) Returns a newNFDPickFolderArgsinstance for the specified memory address.static NFDPickFolderArgs.Buffercreate(long address, int capacity) Create aNFDPickFolderArgs.Bufferinstance at the specified memory.static @Nullable NFDPickFolderArgscreateSafe(long address) static @Nullable NFDPickFolderArgs.BuffercreateSafe(long address, int capacity) @Nullable ByteBufferdefaultPath(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thedefaultPathfield.@Nullable Stringstatic NFDPickFolderArgsmalloc()Returns a newNFDPickFolderArgsinstance allocated withmemAlloc.static NFDPickFolderArgs.Buffermalloc(int capacity) Returns a newNFDPickFolderArgs.Bufferinstance allocated withmemAlloc.static NFDPickFolderArgs.Buffermalloc(int capacity, MemoryStack stack) Returns a newNFDPickFolderArgs.Bufferinstance allocated on the specifiedMemoryStack.static NFDPickFolderArgsmalloc(MemoryStack stack) Returns a newNFDPickFolderArgsinstance allocated on the specifiedMemoryStack.static @Nullable ByteBufferndefaultPath(long struct) Unsafe version ofdefaultPath().static voidndefaultPath(long struct, @Nullable ByteBuffer value) Unsafe version ofdefaultPath.static @Nullable StringndefaultPathString(long struct) Unsafe version ofdefaultPathString().static NFDWindowHandlenparentWindow(long struct) Unsafe version ofparentWindow().static voidnparentWindow(long struct, NFDWindowHandle value) Unsafe version ofparentWindow.parentWindow(Consumer<NFDWindowHandle> consumer) Passes theparentWindowfield to the specifiedConsumer.parentWindow(NFDWindowHandle value) Copies the specifiedNFDWindowHandleto theparentWindowfield.set(@Nullable ByteBuffer defaultPath, NFDWindowHandle parentWindow) Initializes this struct with the specified values.set(NFDPickFolderArgs src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
DEFAULTPATH
public static final int DEFAULTPATHThe struct member offsets. -
PARENTWINDOW
public static final int PARENTWINDOWThe struct member offsets.
-
-
Constructor Details
-
NFDPickFolderArgs
Creates aNFDPickFolderArgsinstance at the current position of the specifiedByteBuffercontainer. 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NFDPickFolderArgs>
-
defaultPath
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thedefaultPathfield.
-
defaultPathString
- Returns:
- the null-terminated string pointed to by the
defaultPathfield.
-
parentWindow
- Returns:
- a
NFDWindowHandleview of theparentWindowfield.
-
defaultPath
Sets the address of the specified encoded string to thedefaultPathfield. -
parentWindow
Copies the specifiedNFDWindowHandleto theparentWindowfield. -
parentWindow
Passes theparentWindowfield to the specifiedConsumer. -
set
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
Returns a newNFDPickFolderArgsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNFDPickFolderArgsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNFDPickFolderArgsinstance allocated withBufferUtils. -
create
Returns a newNFDPickFolderArgsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newNFDPickFolderArgs.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNFDPickFolderArgs.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNFDPickFolderArgs.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNFDPickFolderArgs.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newNFDPickFolderArgsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNFDPickFolderArgsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNFDPickFolderArgs.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNFDPickFolderArgs.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ndefaultPath
Unsafe version ofdefaultPath(). -
ndefaultPathString
Unsafe version ofdefaultPathString(). -
nparentWindow
Unsafe version ofparentWindow(). -
ndefaultPath
Unsafe version ofdefaultPath. -
nparentWindow
Unsafe version ofparentWindow.
-