Package org.lwjgl.system.jawt
Class JAWTDrawingSurfaceInfo
- All Implemented Interfaces:
Pointer
struct JAWT_DrawingSurfaceInfo {
void * platformInfo;
{@link JAWTDrawingSurface JAWT_DrawingSurface} * ds;
{@link JAWTRectangle JAWT_Rectangle} bounds;
jint clipSize;
{@link JAWTRectangle JAWT_Rectangle} * clip;
}
-
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
ConstructorsConstructorDescriptionJAWTDrawingSurfaceInfo
(ByteBuffer container) Creates aJAWTDrawingSurfaceInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbounds()
clip()
int
clipSize()
static JAWTDrawingSurfaceInfo
create
(long address) Returns a newJAWTDrawingSurfaceInfo
instance for the specified memory address.create
(long address, int capacity) Create aJAWTDrawingSurfaceInfo.Buffer
instance at the specified memory.static @Nullable JAWTDrawingSurfaceInfo
createSafe
(long address) static @Nullable JAWTDrawingSurfaceInfo.Buffer
createSafe
(long address, int capacity) ds()
static JAWTRectangle
nbounds
(long struct) Unsafe version ofbounds()
.static JAWTRectangle.Buffer
nclip
(long struct) Unsafe version ofclip()
.static int
nclipSize
(long struct) Unsafe version ofclipSize()
.static JAWTDrawingSurface
nds
(long struct) Unsafe version ofds()
.static long
nplatformInfo
(long struct) Unsafe version ofplatformInfo()
.long
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
PLATFORMINFO
public static final int PLATFORMINFOThe struct member offsets. -
DS
public static final int DSThe struct member offsets. -
BOUNDS
public static final int BOUNDSThe struct member offsets. -
CLIPSIZE
public static final int CLIPSIZEThe struct member offsets. -
CLIP
public static final int CLIPThe struct member offsets.
-
-
Constructor Details
-
JAWTDrawingSurfaceInfo
Creates aJAWTDrawingSurfaceInfo
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<JAWTDrawingSurfaceInfo>
-
platformInfo
public long platformInfo()- Returns:
- the value of the
platformInfo
field.
-
ds
- Returns:
- a
JAWTDrawingSurface
view of the struct pointed to by theds
field.
-
bounds
- Returns:
- a
JAWTRectangle
view of thebounds
field.
-
clipSize
public int clipSize()- Returns:
- the value of the
clipSize
field.
-
clip
- Returns:
- a
JAWTRectangle.Buffer
view of the struct array pointed to by theclip
field.
-
create
Returns a newJAWTDrawingSurfaceInfo
instance for the specified memory address. -
createSafe
-
create
Create aJAWTDrawingSurfaceInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nplatformInfo
public static long nplatformInfo(long struct) Unsafe version ofplatformInfo()
. -
nds
Unsafe version ofds()
. -
nbounds
Unsafe version ofbounds()
. -
nclipSize
public static int nclipSize(long struct) Unsafe version ofclipSize()
. -
nclip
Unsafe version ofclip()
.
-