Package org.lwjgl.system.windows
Class WINDOWPLACEMENT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct WINDOWPLACEMENT {
UINT length;
UINT flags;
UINT showCmd;
{@link POINT POINT} ptMinPosition;
{@link POINT POINT} ptMaxPosition;
{@link RECT RECT} rcNormalPosition;
}
-
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 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
ConstructorsConstructorDescriptionWINDOWPLACEMENT
(ByteBuffer container) Creates aWINDOWPLACEMENT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic WINDOWPLACEMENT
calloc()
Returns a newWINDOWPLACEMENT
instance allocated withmemCalloc
.static WINDOWPLACEMENT.Buffer
calloc
(int capacity) Returns a newWINDOWPLACEMENT.Buffer
instance allocated withmemCalloc
.static WINDOWPLACEMENT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newWINDOWPLACEMENT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static WINDOWPLACEMENT
calloc
(MemoryStack stack) Returns a newWINDOWPLACEMENT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static WINDOWPLACEMENT
Deprecated.static WINDOWPLACEMENT.Buffer
callocStack
(int capacity) Deprecated.static WINDOWPLACEMENT.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static WINDOWPLACEMENT
callocStack
(MemoryStack stack) Deprecated.static WINDOWPLACEMENT
create()
Returns a newWINDOWPLACEMENT
instance allocated withBufferUtils
.static WINDOWPLACEMENT.Buffer
create
(int capacity) Returns a newWINDOWPLACEMENT.Buffer
instance allocated withBufferUtils
.static WINDOWPLACEMENT
create
(long address) Returns a newWINDOWPLACEMENT
instance for the specified memory address.static WINDOWPLACEMENT.Buffer
create
(long address, int capacity) Create aWINDOWPLACEMENT.Buffer
instance at the specified memory.static @Nullable WINDOWPLACEMENT
createSafe
(long address) static @Nullable WINDOWPLACEMENT.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.int
length()
length
(int value) Sets the specified value to thelength
field.static WINDOWPLACEMENT
malloc()
Returns a newWINDOWPLACEMENT
instance allocated withmemAlloc
.static WINDOWPLACEMENT.Buffer
malloc
(int capacity) Returns a newWINDOWPLACEMENT.Buffer
instance allocated withmemAlloc
.static WINDOWPLACEMENT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newWINDOWPLACEMENT.Buffer
instance allocated on the specifiedMemoryStack
.static WINDOWPLACEMENT
malloc
(MemoryStack stack) Returns a newWINDOWPLACEMENT
instance allocated on the specifiedMemoryStack
.static WINDOWPLACEMENT
Deprecated.static WINDOWPLACEMENT.Buffer
mallocStack
(int capacity) Deprecated.static WINDOWPLACEMENT.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static WINDOWPLACEMENT
mallocStack
(MemoryStack stack) Deprecated.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nlength
(long struct) Unsafe version oflength()
.static void
nlength
(long struct, int value) Unsafe version oflength
.static POINT
nptMaxPosition
(long struct) Unsafe version ofptMaxPosition()
.static void
nptMaxPosition
(long struct, POINT value) Unsafe version ofptMaxPosition
.static POINT
nptMinPosition
(long struct) Unsafe version ofptMinPosition()
.static void
nptMinPosition
(long struct, POINT value) Unsafe version ofptMinPosition
.static RECT
nrcNormalPosition
(long struct) Unsafe version ofrcNormalPosition()
.static void
nrcNormalPosition
(long struct, RECT value) Unsafe version ofrcNormalPosition
.static int
nshowCmd
(long struct) Unsafe version ofshowCmd()
.static void
nshowCmd
(long struct, int value) Unsafe version ofshowCmd
.ptMaxPosition
(Consumer<POINT> consumer) Passes theptMaxPosition
field to the specifiedConsumer
.ptMaxPosition
(POINT value) Copies the specifiedPOINT
to theptMaxPosition
field.ptMinPosition
(Consumer<POINT> consumer) Passes theptMinPosition
field to the specifiedConsumer
.ptMinPosition
(POINT value) Copies the specifiedPOINT
to theptMinPosition
field.rcNormalPosition
(Consumer<RECT> consumer) Passes thercNormalPosition
field to the specifiedConsumer
.rcNormalPosition
(RECT value) Copies the specifiedRECT
to thercNormalPosition
field.set
(int length, int flags, int showCmd, POINT ptMinPosition, POINT ptMaxPosition, RECT rcNormalPosition) Initializes this struct with the specified values.set
(WINDOWPLACEMENT src) Copies the specified struct data to this struct.int
showCmd()
showCmd
(int value) Sets the specified value to theshowCmd
field.int
sizeof()
Returnssizeof(struct)
.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. -
LENGTH
public static final int LENGTHThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
SHOWCMD
public static final int SHOWCMDThe struct member offsets. -
PTMINPOSITION
public static final int PTMINPOSITIONThe struct member offsets. -
PTMAXPOSITION
public static final int PTMAXPOSITIONThe struct member offsets. -
RCNORMALPOSITION
public static final int RCNORMALPOSITIONThe struct member offsets.
-
-
Constructor Details
-
WINDOWPLACEMENT
Creates aWINDOWPLACEMENT
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<WINDOWPLACEMENT>
-
length
public int length()- Returns:
- the value of the
length
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
showCmd
public int showCmd()- Returns:
- the value of the
showCmd
field.
-
ptMinPosition
- Returns:
- a
POINT
view of theptMinPosition
field.
-
ptMaxPosition
- Returns:
- a
POINT
view of theptMaxPosition
field.
-
rcNormalPosition
- Returns:
- a
RECT
view of thercNormalPosition
field.
-
length
Sets the specified value to thelength
field. -
flags
Sets the specified value to theflags
field. -
showCmd
Sets the specified value to theshowCmd
field. -
ptMinPosition
Copies the specifiedPOINT
to theptMinPosition
field. -
ptMinPosition
Passes theptMinPosition
field to the specifiedConsumer
. -
ptMaxPosition
Copies the specifiedPOINT
to theptMaxPosition
field. -
ptMaxPosition
Passes theptMaxPosition
field to the specifiedConsumer
. -
rcNormalPosition
Copies the specifiedRECT
to thercNormalPosition
field. -
rcNormalPosition
Passes thercNormalPosition
field to the specifiedConsumer
. -
set
public WINDOWPLACEMENT set(int length, int flags, int showCmd, POINT ptMinPosition, POINT ptMaxPosition, RECT rcNormalPosition) 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 newWINDOWPLACEMENT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newWINDOWPLACEMENT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newWINDOWPLACEMENT
instance allocated withBufferUtils
. -
create
Returns a newWINDOWPLACEMENT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newWINDOWPLACEMENT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newWINDOWPLACEMENT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newWINDOWPLACEMENT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aWINDOWPLACEMENT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newWINDOWPLACEMENT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newWINDOWPLACEMENT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newWINDOWPLACEMENT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newWINDOWPLACEMENT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nlength
public static int nlength(long struct) Unsafe version oflength()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nshowCmd
public static int nshowCmd(long struct) Unsafe version ofshowCmd()
. -
nptMinPosition
Unsafe version ofptMinPosition()
. -
nptMaxPosition
Unsafe version ofptMaxPosition()
. -
nrcNormalPosition
Unsafe version ofrcNormalPosition()
. -
nlength
public static void nlength(long struct, int value) Unsafe version oflength
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nshowCmd
public static void nshowCmd(long struct, int value) Unsafe version ofshowCmd
. -
nptMinPosition
Unsafe version ofptMinPosition
. -
nptMaxPosition
Unsafe version ofptMaxPosition
. -
nrcNormalPosition
Unsafe version ofrcNormalPosition
.
-