Package org.lwjgl.util.nfd
Class NFDSaveDialogArgs
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct nfdsavedialogu8args_t {
{@link NFDFilterItem nfdfilteritem_t} const * filterList;
nfdfiltersize_t filterCount;
nfdchar_t const * defaultPath;
nfdchar_t const * defaultName;
{@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 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
ConstructorsConstructorDescriptionNFDSaveDialogArgs
(ByteBuffer container) Creates aNFDSaveDialogArgs
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic NFDSaveDialogArgs
calloc()
Returns a newNFDSaveDialogArgs
instance allocated withmemCalloc
.static NFDSaveDialogArgs.Buffer
calloc
(int capacity) Returns a newNFDSaveDialogArgs.Buffer
instance allocated withmemCalloc
.static NFDSaveDialogArgs.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newNFDSaveDialogArgs.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NFDSaveDialogArgs
calloc
(MemoryStack stack) Returns a newNFDSaveDialogArgs
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static NFDSaveDialogArgs
create()
Returns a newNFDSaveDialogArgs
instance allocated withBufferUtils
.static NFDSaveDialogArgs.Buffer
create
(int capacity) Returns a newNFDSaveDialogArgs.Buffer
instance allocated withBufferUtils
.static NFDSaveDialogArgs
create
(long address) Returns a newNFDSaveDialogArgs
instance for the specified memory address.static NFDSaveDialogArgs.Buffer
create
(long address, int capacity) Create aNFDSaveDialogArgs.Buffer
instance at the specified memory.static @Nullable NFDSaveDialogArgs
createSafe
(long address) static @Nullable NFDSaveDialogArgs.Buffer
createSafe
(long address, int capacity) @Nullable ByteBuffer
defaultName
(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thedefaultName
field.@Nullable String
@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 NFDSaveDialogArgs
malloc()
Returns a newNFDSaveDialogArgs
instance allocated withmemAlloc
.static NFDSaveDialogArgs.Buffer
malloc
(int capacity) Returns a newNFDSaveDialogArgs.Buffer
instance allocated withmemAlloc
.static NFDSaveDialogArgs.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newNFDSaveDialogArgs.Buffer
instance allocated on the specifiedMemoryStack
.static NFDSaveDialogArgs
malloc
(MemoryStack stack) Returns a newNFDSaveDialogArgs
instance allocated on the specifiedMemoryStack
.static @Nullable ByteBuffer
ndefaultName
(long struct) Unsafe version ofdefaultName()
.static void
ndefaultName
(long struct, @Nullable ByteBuffer value) Unsafe version ofdefaultName
.static @Nullable String
ndefaultNameString
(long struct) Unsafe version ofdefaultNameString()
.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, @Nullable ByteBuffer defaultName, NFDWindowHandle parentWindow) Initializes this struct with the specified values.set
(NFDSaveDialogArgs 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. -
DEFAULTNAME
public static final int DEFAULTNAMEThe struct member offsets. -
PARENTWINDOW
public static final int PARENTWINDOWThe struct member offsets.
-
-
Constructor Details
-
NFDSaveDialogArgs
Creates aNFDSaveDialogArgs
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<NFDSaveDialogArgs>
-
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.
-
defaultName
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thedefaultName
field.
-
defaultNameString
- Returns:
- the null-terminated string pointed to by the
defaultName
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. -
defaultName
Sets the address of the specified encoded string to thedefaultName
field. -
parentWindow
Copies the specifiedNFDWindowHandle
to theparentWindow
field. -
parentWindow
Passes theparentWindow
field to the specifiedConsumer
. -
set
public NFDSaveDialogArgs set(@Nullable NFDFilterItem.Buffer filterList, @Nullable ByteBuffer defaultPath, @Nullable ByteBuffer defaultName, 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 newNFDSaveDialogArgs
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newNFDSaveDialogArgs
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newNFDSaveDialogArgs
instance allocated withBufferUtils
. -
create
Returns a newNFDSaveDialogArgs
instance for the specified memory address. -
createSafe
-
malloc
Returns a newNFDSaveDialogArgs.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newNFDSaveDialogArgs.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newNFDSaveDialogArgs.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aNFDSaveDialogArgs.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newNFDSaveDialogArgs
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newNFDSaveDialogArgs
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newNFDSaveDialogArgs.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newNFDSaveDialogArgs.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()
. -
ndefaultName
Unsafe version ofdefaultName()
. -
ndefaultNameString
Unsafe version ofdefaultNameString()
. -
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
. -
ndefaultName
Unsafe version ofdefaultName
. -
nparentWindow
Unsafe version ofparentWindow
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-