Package org.lwjgl.util.nfd
Class NFDOpenDialogArgs
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct nfdopendialogu8args_t {
{@link NFDFilterItem nfdfilteritem_t} const * filterList;
nfdfiltersize_t filterCount;
nfdchar_t const * defaultPath;
{@link NFDWindowHandle nfdwindowhandle_t} parentWindow;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aNFDOpenDialogArgs
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic NFDOpenDialogArgs
calloc()
Returns a newNFDOpenDialogArgs
instance allocated withmemCalloc
.static NFDOpenDialogArgs.Buffer
calloc
(int capacity) Returns a newNFDOpenDialogArgs.Buffer
instance allocated withmemCalloc
.static NFDOpenDialogArgs.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNFDOpenDialogArgs.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NFDOpenDialogArgs
calloc
(MemoryStack stack) Returns a newNFDOpenDialogArgs
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NFDOpenDialogArgs
create()
Returns a newNFDOpenDialogArgs
instance allocated withBufferUtils
.static NFDOpenDialogArgs.Buffer
create
(int capacity) Returns a newNFDOpenDialogArgs.Buffer
instance allocated withBufferUtils
.static NFDOpenDialogArgs
create
(long address) Returns a newNFDOpenDialogArgs
instance for the specified memory address.static NFDOpenDialogArgs.Buffer
create
(long address, int capacity) Create aNFDOpenDialogArgs.Buffer
instance at the specified memory.static @Nullable NFDOpenDialogArgs
createSafe
(long address) static @Nullable NFDOpenDialogArgs.Buffer
createSafe
(long address, int capacity) @Nullable ByteBuffer
defaultPath
(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thedefaultPath
field.@Nullable String
int
@Nullable NFDFilterItem.Buffer
filterList
(@Nullable NFDFilterItem.Buffer value) Sets the address of the specifiedNFDFilterItem.Buffer
to thefilterList
field.static NFDOpenDialogArgs
malloc()
Returns a newNFDOpenDialogArgs
instance allocated withmemAlloc
.static NFDOpenDialogArgs.Buffer
malloc
(int capacity) Returns a newNFDOpenDialogArgs.Buffer
instance allocated withmemAlloc
.static NFDOpenDialogArgs.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNFDOpenDialogArgs.Buffer
instance allocated on the specifiedMemoryStack
.static NFDOpenDialogArgs
malloc
(MemoryStack stack) Returns a newNFDOpenDialogArgs
instance allocated on the specifiedMemoryStack
.static @Nullable ByteBuffer
ndefaultPath
(long struct) Unsafe version ofdefaultPath()
.static void
ndefaultPath
(long struct, @Nullable ByteBuffer value) Unsafe version ofdefaultPath
.static @Nullable String
ndefaultPathString
(long struct) Unsafe version ofdefaultPathString()
.static int
nfilterCount
(long struct) Unsafe version offilterCount()
.static void
nfilterCount
(long struct, int value) Sets the specified value to thefilterCount
field of the specifiedstruct
.static @Nullable NFDFilterItem.Buffer
nfilterList
(long struct) Unsafe version offilterList()
.static void
nfilterList
(long struct, @Nullable NFDFilterItem.Buffer value) Unsafe version offilterList
.static NFDWindowHandle
nparentWindow
(long struct) Unsafe version ofparentWindow()
.static void
nparentWindow
(long struct, NFDWindowHandle value) Unsafe version ofparentWindow
.parentWindow
(Consumer<NFDWindowHandle> consumer) Passes theparentWindow
field to the specifiedConsumer
.parentWindow
(NFDWindowHandle value) Copies the specifiedNFDWindowHandle
to theparentWindow
field.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.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aNFDOpenDialogArgs
instance at the current position of the specifiedByteBuffer
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()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NFDOpenDialogArgs>
-
filterList
- Returns:
- a
NFDFilterItem.Buffer
view of the struct array pointed to by thefilterList
field.
-
filterCount
public int filterCount()- Returns:
- the value of the
filterCount
field.
-
defaultPath
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thedefaultPath
field.
-
defaultPathString
- Returns:
- the null-terminated string pointed to by the
defaultPath
field.
-
parentWindow
- Returns:
- a
NFDWindowHandle
view of theparentWindow
field.
-
filterList
Sets the address of the specifiedNFDFilterItem.Buffer
to thefilterList
field. -
defaultPath
Sets the address of the specified encoded string to thedefaultPath
field. -
parentWindow
Copies the specifiedNFDWindowHandle
to theparentWindow
field. -
parentWindow
Passes theparentWindow
field 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 newNFDOpenDialogArgs
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNFDOpenDialogArgs
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNFDOpenDialogArgs
instance allocated withBufferUtils
. -
create
Returns a newNFDOpenDialogArgs
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNFDOpenDialogArgs.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNFDOpenDialogArgs.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNFDOpenDialogArgs.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNFDOpenDialogArgs.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newNFDOpenDialogArgs
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNFDOpenDialogArgs
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNFDOpenDialogArgs.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNFDOpenDialogArgs.Buffer
instance allocated on the specifiedMemoryStack
and 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 thefilterCount
field 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
-