Package org.lwjgl.system.windows
Class WINDOWPLACEMENT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
-
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 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
ConstructorsConstructorDescriptionWINDOWPLACEMENT(ByteBuffer container) Creates aWINDOWPLACEMENTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic WINDOWPLACEMENTcalloc()Returns a newWINDOWPLACEMENTinstance allocated withmemCalloc.static WINDOWPLACEMENT.Buffercalloc(int capacity) Returns a newWINDOWPLACEMENT.Bufferinstance allocated withmemCalloc.static WINDOWPLACEMENT.Buffercalloc(int capacity, MemoryStack stack) Returns a newWINDOWPLACEMENT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static WINDOWPLACEMENTcalloc(MemoryStack stack) Returns a newWINDOWPLACEMENTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static WINDOWPLACEMENTcreate()Returns a newWINDOWPLACEMENTinstance allocated withBufferUtils.static WINDOWPLACEMENT.Buffercreate(int capacity) Returns a newWINDOWPLACEMENT.Bufferinstance allocated withBufferUtils.static WINDOWPLACEMENTcreate(long address) Returns a newWINDOWPLACEMENTinstance for the specified memory address.static WINDOWPLACEMENT.Buffercreate(long address, int capacity) Create aWINDOWPLACEMENT.Bufferinstance at the specified memory.static @Nullable WINDOWPLACEMENTcreateSafe(long address) static @Nullable WINDOWPLACEMENT.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.intlength()length(int value) Sets the specified value to thelengthfield.static WINDOWPLACEMENTmalloc()Returns a newWINDOWPLACEMENTinstance allocated withmemAlloc.static WINDOWPLACEMENT.Buffermalloc(int capacity) Returns a newWINDOWPLACEMENT.Bufferinstance allocated withmemAlloc.static WINDOWPLACEMENT.Buffermalloc(int capacity, MemoryStack stack) Returns a newWINDOWPLACEMENT.Bufferinstance allocated on the specifiedMemoryStack.static WINDOWPLACEMENTmalloc(MemoryStack stack) Returns a newWINDOWPLACEMENTinstance allocated on the specifiedMemoryStack.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnlength(long struct) Unsafe version oflength().static voidnlength(long struct, int value) Unsafe version oflength.static POINTnptMaxPosition(long struct) Unsafe version ofptMaxPosition().static voidnptMaxPosition(long struct, POINT value) Unsafe version ofptMaxPosition.static POINTnptMinPosition(long struct) Unsafe version ofptMinPosition().static voidnptMinPosition(long struct, POINT value) Unsafe version ofptMinPosition.static RECTnrcNormalPosition(long struct) Unsafe version ofrcNormalPosition().static voidnrcNormalPosition(long struct, RECT value) Unsafe version ofrcNormalPosition.static intnshowCmd(long struct) Unsafe version ofshowCmd().static voidnshowCmd(long struct, int value) Unsafe version ofshowCmd.ptMaxPosition(Consumer<POINT> consumer) Passes theptMaxPositionfield to the specifiedConsumer.ptMaxPosition(POINT value) Copies the specifiedPOINTto theptMaxPositionfield.ptMinPosition(Consumer<POINT> consumer) Passes theptMinPositionfield to the specifiedConsumer.ptMinPosition(POINT value) Copies the specifiedPOINTto theptMinPositionfield.rcNormalPosition(Consumer<RECT> consumer) Passes thercNormalPositionfield to the specifiedConsumer.rcNormalPosition(RECT value) Copies the specifiedRECTto thercNormalPositionfield.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.intshowCmd()showCmd(int value) Sets the specified value to theshowCmdfield.intsizeof()Returnssizeof(struct).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. -
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 aWINDOWPLACEMENTinstance 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<WINDOWPLACEMENT>
-
length
public int length()- Returns:
- the value of the
lengthfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
showCmd
public int showCmd()- Returns:
- the value of the
showCmdfield.
-
ptMinPosition
- Returns:
- a
POINTview of theptMinPositionfield.
-
ptMaxPosition
- Returns:
- a
POINTview of theptMaxPositionfield.
-
rcNormalPosition
- Returns:
- a
RECTview of thercNormalPositionfield.
-
length
Sets the specified value to thelengthfield. -
flags
Sets the specified value to theflagsfield. -
showCmd
Sets the specified value to theshowCmdfield. -
ptMinPosition
Copies the specifiedPOINTto theptMinPositionfield. -
ptMinPosition
Passes theptMinPositionfield to the specifiedConsumer. -
ptMaxPosition
Copies the specifiedPOINTto theptMaxPositionfield. -
ptMaxPosition
Passes theptMaxPositionfield to the specifiedConsumer. -
rcNormalPosition
Copies the specifiedRECTto thercNormalPositionfield. -
rcNormalPosition
Passes thercNormalPositionfield 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 newWINDOWPLACEMENTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newWINDOWPLACEMENTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newWINDOWPLACEMENTinstance allocated withBufferUtils. -
create
Returns a newWINDOWPLACEMENTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newWINDOWPLACEMENT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newWINDOWPLACEMENT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newWINDOWPLACEMENT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aWINDOWPLACEMENT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newWINDOWPLACEMENTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newWINDOWPLACEMENTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newWINDOWPLACEMENT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newWINDOWPLACEMENT.Bufferinstance allocated on the specifiedMemoryStackand 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.
-