Package org.lwjgl.util.nfd
Class NFDOpenDialogArgs
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct nfdopendialogu8args_t {
nfdfilteritem_t const * filterList;
nfdfiltersize_t filterCount;
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 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
ConstructorsConstructorDescriptionNFDOpenDialogArgs(ByteBuffer container) Creates aNFDOpenDialogArgsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic NFDOpenDialogArgscalloc()Returns a newNFDOpenDialogArgsinstance allocated withmemCalloc.static NFDOpenDialogArgs.Buffercalloc(int capacity) Returns a newNFDOpenDialogArgs.Bufferinstance allocated withmemCalloc.static NFDOpenDialogArgs.Buffercalloc(int capacity, MemoryStack stack) Returns a newNFDOpenDialogArgs.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NFDOpenDialogArgscalloc(MemoryStack stack) Returns a newNFDOpenDialogArgsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NFDOpenDialogArgscreate()Returns a newNFDOpenDialogArgsinstance allocated withBufferUtils.static NFDOpenDialogArgs.Buffercreate(int capacity) Returns a newNFDOpenDialogArgs.Bufferinstance allocated withBufferUtils.static NFDOpenDialogArgscreate(long address) Returns a newNFDOpenDialogArgsinstance for the specified memory address.static NFDOpenDialogArgs.Buffercreate(long address, int capacity) Create aNFDOpenDialogArgs.Bufferinstance at the specified memory.static @Nullable NFDOpenDialogArgscreateSafe(long address) static @Nullable NFDOpenDialogArgs.BuffercreateSafe(long address, int capacity) @Nullable ByteBufferdefaultPath(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thedefaultPathfield.@Nullable Stringint@Nullable NFDFilterItem.BufferfilterList(@Nullable NFDFilterItem.Buffer value) Sets the address of the specifiedNFDFilterItem.Bufferto thefilterListfield.static NFDOpenDialogArgsmalloc()Returns a newNFDOpenDialogArgsinstance allocated withmemAlloc.static NFDOpenDialogArgs.Buffermalloc(int capacity) Returns a newNFDOpenDialogArgs.Bufferinstance allocated withmemAlloc.static NFDOpenDialogArgs.Buffermalloc(int capacity, MemoryStack stack) Returns a newNFDOpenDialogArgs.Bufferinstance allocated on the specifiedMemoryStack.static NFDOpenDialogArgsmalloc(MemoryStack stack) Returns a newNFDOpenDialogArgsinstance 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 intnfilterCount(long struct) Unsafe version offilterCount().static voidnfilterCount(long struct, int value) Sets the specified value to thefilterCountfield of the specifiedstruct.static @Nullable NFDFilterItem.BuffernfilterList(long struct) Unsafe version offilterList().static voidnfilterList(long struct, @Nullable NFDFilterItem.Buffer value) Unsafe version offilterList.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 NFDFilterItem.Buffer filterList, @Nullable ByteBuffer defaultPath, NFDWindowHandle parentWindow) Initializes this struct with the specified values.set(NFDOpenDialogArgs src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
FILTERLIST
public static final int FILTERLISTThe struct member offsets. -
FILTERCOUNT
public static final int FILTERCOUNTThe struct member offsets. -
DEFAULTPATH
public static final int DEFAULTPATHThe struct member offsets. -
PARENTWINDOW
public static final int PARENTWINDOWThe struct member offsets.
-
-
Constructor Details
-
NFDOpenDialogArgs
Creates aNFDOpenDialogArgsinstance 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<NFDOpenDialogArgs>
-
filterList
- Returns:
- a
NFDFilterItem.Bufferview of the struct array pointed to by thefilterListfield.
-
filterCount
public int filterCount()- Returns:
- the value of the
filterCountfield.
-
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.
-
filterList
Sets the address of the specifiedNFDFilterItem.Bufferto thefilterListfield. -
defaultPath
Sets the address of the specified encoded string to thedefaultPathfield. -
parentWindow
Copies the specifiedNFDWindowHandleto theparentWindowfield. -
parentWindow
Passes theparentWindowfield to the specifiedConsumer. -
set
public NFDOpenDialogArgs set(@Nullable NFDFilterItem.Buffer filterList, @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
Returns a newNFDOpenDialogArgsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNFDOpenDialogArgsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNFDOpenDialogArgsinstance allocated withBufferUtils. -
create
Returns a newNFDOpenDialogArgsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newNFDOpenDialogArgs.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNFDOpenDialogArgs.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNFDOpenDialogArgs.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNFDOpenDialogArgs.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newNFDOpenDialogArgsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNFDOpenDialogArgsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNFDOpenDialogArgs.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNFDOpenDialogArgs.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nfilterList
Unsafe version offilterList(). -
nfilterCount
public static int nfilterCount(long struct) Unsafe version offilterCount(). -
ndefaultPath
Unsafe version ofdefaultPath(). -
ndefaultPathString
Unsafe version ofdefaultPathString(). -
nparentWindow
Unsafe version ofparentWindow(). -
nfilterList
Unsafe version offilterList. -
nfilterCount
public static void nfilterCount(long struct, int value) Sets the specified value to thefilterCountfield of the specifiedstruct. -
ndefaultPath
Unsafe version ofdefaultPath. -
nparentWindow
Unsafe version ofparentWindow. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-