Package org.lwjgl.system.windows
Class WINDOWPLACEMENT.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<WINDOWPLACEMENT,WINDOWPLACEMENT.Buffer>
-
- org.lwjgl.system.windows.WINDOWPLACEMENT.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<WINDOWPLACEMENT>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- WINDOWPLACEMENT
public static class WINDOWPLACEMENT.Buffer extends org.lwjgl.system.StructBuffer<WINDOWPLACEMENT,WINDOWPLACEMENT.Buffer> implements org.lwjgl.system.NativeResource
An array ofWINDOWPLACEMENT
structs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newWINDOWPLACEMENT.Buffer
instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byWINDOWPLACEMENT.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
length
public int length()
- Returns:
- the value of the
WINDOWPLACEMENT.length()
field.
-
flags
public int flags()
- Returns:
- the value of the
WINDOWPLACEMENT.flags()
field.
-
showCmd
public int showCmd()
- Returns:
- the value of the
WINDOWPLACEMENT.showCmd()
field.
-
ptMinPosition
public POINT ptMinPosition()
- Returns:
- a
POINT
view of theWINDOWPLACEMENT.ptMinPosition()
field.
-
ptMaxPosition
public POINT ptMaxPosition()
- Returns:
- a
POINT
view of theWINDOWPLACEMENT.ptMaxPosition()
field.
-
rcNormalPosition
public RECT rcNormalPosition()
- Returns:
- a
RECT
view of theWINDOWPLACEMENT.rcNormalPosition()
field.
-
length
public WINDOWPLACEMENT.Buffer length(int value)
Sets the specified value to theWINDOWPLACEMENT.length()
field.
-
flags
public WINDOWPLACEMENT.Buffer flags(int value)
Sets the specified value to theWINDOWPLACEMENT.flags()
field.
-
showCmd
public WINDOWPLACEMENT.Buffer showCmd(int value)
Sets the specified value to theWINDOWPLACEMENT.showCmd()
field.
-
ptMinPosition
public WINDOWPLACEMENT.Buffer ptMinPosition(POINT value)
Copies the specifiedPOINT
to theWINDOWPLACEMENT.ptMinPosition()
field.
-
ptMinPosition
public WINDOWPLACEMENT.Buffer ptMinPosition(java.util.function.Consumer<POINT> consumer)
Passes theWINDOWPLACEMENT.ptMinPosition()
field to the specifiedConsumer
.
-
ptMaxPosition
public WINDOWPLACEMENT.Buffer ptMaxPosition(POINT value)
Copies the specifiedPOINT
to theWINDOWPLACEMENT.ptMaxPosition()
field.
-
ptMaxPosition
public WINDOWPLACEMENT.Buffer ptMaxPosition(java.util.function.Consumer<POINT> consumer)
Passes theWINDOWPLACEMENT.ptMaxPosition()
field to the specifiedConsumer
.
-
rcNormalPosition
public WINDOWPLACEMENT.Buffer rcNormalPosition(RECT value)
Copies the specifiedRECT
to theWINDOWPLACEMENT.rcNormalPosition()
field.
-
rcNormalPosition
public WINDOWPLACEMENT.Buffer rcNormalPosition(java.util.function.Consumer<RECT> consumer)
Passes theWINDOWPLACEMENT.rcNormalPosition()
field to the specifiedConsumer
.
-
-