public class WINDOWPLACEMENT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
length –
the length of the structure, in bytes. Before calling the User32.GetWindowPlacement(long, org.lwjgl.system.windows.WINDOWPLACEMENT) or User32.SetWindowPlacement(long, org.lwjgl.system.windows.WINDOWPLACEMENT) functions, set this member to
SIZEOF.flags – the flags that control the position of the minimized window and the method by which the window is restored. This member can be one or more of thefollowing values:User32.WPF_SETMINPOSITION User32.WPF_RESTORETOMAXIMIZED User32.WPF_ASYNCWINDOWPLACEMENTshowCmd – the current show state of the windowptMinPosition – the coordinates of the window's upper-left corner when the window is minimizedptMaxPosition – the coordinates of the window's upper-left corner when the window is maximizedrcNormalPosition – the window's coordinates when the window is in the restored position
struct WINDOWPLACEMENT {
UINT length;
UINT flags;
UINT showCmd;
POINT ptMinPosition;
POINT ptMaxPosition;
RECT rcNormalPosition;
}| Modifier and Type | Class and Description |
|---|---|
static class |
WINDOWPLACEMENT.Buffer
An array of
WINDOWPLACEMENT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
LENGTH
The struct member offsets.
|
static int |
PTMAXPOSITION
The struct member offsets.
|
static int |
PTMINPOSITION
The struct member offsets.
|
static int |
RCNORMALPOSITION
The struct member offsets.
|
static int |
SHOWCMD
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
WINDOWPLACEMENT(java.nio.ByteBuffer container)
Creates a
WINDOWPLACEMENT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static WINDOWPLACEMENT |
calloc()
Returns a new
WINDOWPLACEMENT instance allocated with memCalloc. |
static WINDOWPLACEMENT.Buffer |
calloc(int capacity)
Returns a new
WINDOWPLACEMENT.Buffer instance allocated with memCalloc. |
static WINDOWPLACEMENT |
callocStack()
Returns a new
WINDOWPLACEMENT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static WINDOWPLACEMENT.Buffer |
callocStack(int capacity)
Returns a new
WINDOWPLACEMENT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static WINDOWPLACEMENT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
WINDOWPLACEMENT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static WINDOWPLACEMENT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
WINDOWPLACEMENT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static WINDOWPLACEMENT |
create()
Returns a new
WINDOWPLACEMENT instance allocated with BufferUtils. |
static WINDOWPLACEMENT.Buffer |
create(int capacity)
Returns a new
WINDOWPLACEMENT.Buffer instance allocated with BufferUtils. |
static WINDOWPLACEMENT |
create(long address)
Returns a new
WINDOWPLACEMENT instance for the specified memory address. |
static WINDOWPLACEMENT.Buffer |
create(long address,
int capacity)
Create a
WINDOWPLACEMENT.Buffer instance at the specified memory. |
static WINDOWPLACEMENT |
createSafe(long address)
|
static WINDOWPLACEMENT.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
WINDOWPLACEMENT |
flags(int value)
Sets the specified value to the
flags field. |
int |
length()
Returns the value of the
length field. |
WINDOWPLACEMENT |
length(int value)
Sets the specified value to the
length field. |
static WINDOWPLACEMENT |
malloc()
Returns a new
WINDOWPLACEMENT instance allocated with memAlloc. |
static WINDOWPLACEMENT.Buffer |
malloc(int capacity)
Returns a new
WINDOWPLACEMENT.Buffer instance allocated with memAlloc. |
static WINDOWPLACEMENT |
mallocStack()
Returns a new
WINDOWPLACEMENT instance allocated on the thread-local MemoryStack. |
static WINDOWPLACEMENT.Buffer |
mallocStack(int capacity)
Returns a new
WINDOWPLACEMENT.Buffer instance allocated on the thread-local MemoryStack. |
static WINDOWPLACEMENT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
WINDOWPLACEMENT.Buffer instance allocated on the specified MemoryStack. |
static WINDOWPLACEMENT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
WINDOWPLACEMENT instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static int |
nlength(long struct)
Unsafe version of
length(). |
static void |
nlength(long struct,
int value)
Unsafe version of
length. |
static POINT |
nptMaxPosition(long struct)
Unsafe version of
ptMaxPosition(). |
static void |
nptMaxPosition(long struct,
POINT value)
Unsafe version of
ptMaxPosition. |
static POINT |
nptMinPosition(long struct)
Unsafe version of
ptMinPosition(). |
static void |
nptMinPosition(long struct,
POINT value)
Unsafe version of
ptMinPosition. |
static RECT |
nrcNormalPosition(long struct)
Unsafe version of
rcNormalPosition(). |
static void |
nrcNormalPosition(long struct,
RECT value)
Unsafe version of
rcNormalPosition. |
static int |
nshowCmd(long struct)
Unsafe version of
showCmd(). |
static void |
nshowCmd(long struct,
int value)
Unsafe version of
showCmd. |
POINT |
ptMaxPosition()
Returns a
POINT view of the ptMaxPosition field. |
WINDOWPLACEMENT |
ptMaxPosition(java.util.function.Consumer<POINT> consumer)
Passes the
ptMaxPosition field to the specified Consumer. |
WINDOWPLACEMENT |
ptMaxPosition(POINT value)
Copies the specified
POINT to the ptMaxPosition field. |
POINT |
ptMinPosition()
Returns a
POINT view of the ptMinPosition field. |
WINDOWPLACEMENT |
ptMinPosition(java.util.function.Consumer<POINT> consumer)
Passes the
ptMinPosition field to the specified Consumer. |
WINDOWPLACEMENT |
ptMinPosition(POINT value)
Copies the specified
POINT to the ptMinPosition field. |
RECT |
rcNormalPosition()
Returns a
RECT view of the rcNormalPosition field. |
WINDOWPLACEMENT |
rcNormalPosition(java.util.function.Consumer<RECT> consumer)
Passes the
rcNormalPosition field to the specified Consumer. |
WINDOWPLACEMENT |
rcNormalPosition(RECT value)
Copies the specified
RECT to the rcNormalPosition field. |
WINDOWPLACEMENT |
set(int length,
int flags,
int showCmd,
POINT ptMinPosition,
POINT ptMaxPosition,
RECT rcNormalPosition)
Initializes this struct with the specified values.
|
WINDOWPLACEMENT |
set(WINDOWPLACEMENT src)
Copies the specified struct data to this struct.
|
int |
showCmd()
Returns the value of the
showCmd field. |
WINDOWPLACEMENT |
showCmd(int value)
Sets the specified value to the
showCmd field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int LENGTH
public static final int FLAGS
public static final int SHOWCMD
public static final int PTMINPOSITION
public static final int PTMAXPOSITION
public static final int RCNORMALPOSITION
public WINDOWPLACEMENT(java.nio.ByteBuffer container)
WINDOWPLACEMENT instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int length()
length field.public int flags()
flags field.public int showCmd()
showCmd field.public WINDOWPLACEMENT length(int value)
length field.public WINDOWPLACEMENT flags(int value)
flags field.public WINDOWPLACEMENT showCmd(int value)
showCmd field.public WINDOWPLACEMENT ptMinPosition(POINT value)
POINT to the ptMinPosition field.public WINDOWPLACEMENT ptMinPosition(java.util.function.Consumer<POINT> consumer)
ptMinPosition field to the specified Consumer.public WINDOWPLACEMENT ptMaxPosition(POINT value)
POINT to the ptMaxPosition field.public WINDOWPLACEMENT ptMaxPosition(java.util.function.Consumer<POINT> consumer)
ptMaxPosition field to the specified Consumer.public WINDOWPLACEMENT rcNormalPosition(RECT value)
RECT to the rcNormalPosition field.public WINDOWPLACEMENT rcNormalPosition(java.util.function.Consumer<RECT> consumer)
rcNormalPosition field to the specified Consumer.public WINDOWPLACEMENT set(int length, int flags, int showCmd, POINT ptMinPosition, POINT ptMaxPosition, RECT rcNormalPosition)
public WINDOWPLACEMENT set(WINDOWPLACEMENT src)
src - the source structpublic static WINDOWPLACEMENT malloc()
WINDOWPLACEMENT instance allocated with memAlloc. The instance must be explicitly freed.public static WINDOWPLACEMENT calloc()
WINDOWPLACEMENT instance allocated with memCalloc. The instance must be explicitly freed.public static WINDOWPLACEMENT create()
WINDOWPLACEMENT instance allocated with BufferUtils.public static WINDOWPLACEMENT create(long address)
WINDOWPLACEMENT instance for the specified memory address.@Nullable public static WINDOWPLACEMENT createSafe(long address)
public static WINDOWPLACEMENT.Buffer malloc(int capacity)
WINDOWPLACEMENT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static WINDOWPLACEMENT.Buffer calloc(int capacity)
WINDOWPLACEMENT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static WINDOWPLACEMENT.Buffer create(int capacity)
WINDOWPLACEMENT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static WINDOWPLACEMENT.Buffer create(long address, int capacity)
WINDOWPLACEMENT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static WINDOWPLACEMENT.Buffer createSafe(long address, int capacity)
public static WINDOWPLACEMENT mallocStack()
WINDOWPLACEMENT instance allocated on the thread-local MemoryStack.public static WINDOWPLACEMENT callocStack()
WINDOWPLACEMENT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static WINDOWPLACEMENT mallocStack(org.lwjgl.system.MemoryStack stack)
WINDOWPLACEMENT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static WINDOWPLACEMENT callocStack(org.lwjgl.system.MemoryStack stack)
WINDOWPLACEMENT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static WINDOWPLACEMENT.Buffer mallocStack(int capacity)
WINDOWPLACEMENT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static WINDOWPLACEMENT.Buffer callocStack(int capacity)
WINDOWPLACEMENT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static WINDOWPLACEMENT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
WINDOWPLACEMENT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static WINDOWPLACEMENT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
WINDOWPLACEMENT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nlength(long struct)
length().public static int nflags(long struct)
flags().public static int nshowCmd(long struct)
showCmd().public static POINT nptMinPosition(long struct)
ptMinPosition().public static POINT nptMaxPosition(long struct)
ptMaxPosition().public static RECT nrcNormalPosition(long struct)
rcNormalPosition().public static void nlength(long struct,
int value)
length.public static void nflags(long struct,
int value)
flags.public static void nshowCmd(long struct,
int value)
showCmd.public static void nptMinPosition(long struct,
POINT value)
ptMinPosition.public static void nptMaxPosition(long struct,
POINT value)
ptMaxPosition.public static void nrcNormalPosition(long struct,
RECT value)
rcNormalPosition.Copyright LWJGL. All Rights Reserved. License terms.