public class JAWTDrawingSurfaceInfo
extends org.lwjgl.system.Struct
platformInfo –
Pointer to the platform-specific information. This can be safely cast to a JAWT_Win32DrawingSurfaceInfo on Windows or a
JAWT_X11DrawingSurfaceInfo on Solaris. On Mac OS X this is a pointer to a NSObject that conforms to the JAWT_SurfaceLayers
protocol.ds – Cached pointer to the underlying drawing surface.bounds – Bounding rectangle of the drawing surface.clipSize – Number of rectangles in the clip.clip – Clip rectangle array.
struct JAWT_DrawingSurfaceInfo {
void * platformInfo;
JAWT_DrawingSurface * ds;
JAWT_Rectangle bounds;
jint clipSize;
JAWT_Rectangle * clip;
}| Modifier and Type | Class and Description |
|---|---|
static class |
JAWTDrawingSurfaceInfo.Buffer
An array of
JAWTDrawingSurfaceInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BOUNDS
The struct member offsets.
|
static int |
CLIP
The struct member offsets.
|
static int |
CLIPSIZE
The struct member offsets.
|
static int |
DS
The struct member offsets.
|
static int |
PLATFORMINFO
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
JAWTDrawingSurfaceInfo(java.nio.ByteBuffer container)
Creates a
JAWTDrawingSurfaceInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
JAWTRectangle |
bounds()
Returns a
JAWTRectangle view of the bounds field. |
JAWTRectangle.Buffer |
clip()
Returns a
JAWTRectangle.Buffer view of the struct array pointed to by the clip field. |
int |
clipSize()
Returns the value of the
clipSize field. |
static JAWTDrawingSurfaceInfo |
create(long address)
Returns a new
JAWTDrawingSurfaceInfo instance for the specified memory address. |
static JAWTDrawingSurfaceInfo.Buffer |
create(long address,
int capacity)
Create a
JAWTDrawingSurfaceInfo.Buffer instance at the specified memory. |
static JAWTDrawingSurfaceInfo |
createSafe(long address)
|
static JAWTDrawingSurfaceInfo.Buffer |
createSafe(long address,
int capacity)
|
JAWTDrawingSurface |
ds()
Returns a
JAWTDrawingSurface view of the struct pointed to by the ds field. |
static JAWTRectangle |
nbounds(long struct)
Unsafe version of
bounds(). |
static JAWTRectangle.Buffer |
nclip(long struct)
Unsafe version of
clip(). |
static int |
nclipSize(long struct)
Unsafe version of
clipSize(). |
static JAWTDrawingSurface |
nds(long struct)
Unsafe version of
ds(). |
static long |
nplatformInfo(long struct)
Unsafe version of
platformInfo(). |
long |
platformInfo()
Returns the value of the
platformInfo field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PLATFORMINFO
public static final int DS
public static final int BOUNDS
public static final int CLIPSIZE
public static final int CLIP
public JAWTDrawingSurfaceInfo(java.nio.ByteBuffer container)
JAWTDrawingSurfaceInfo 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 long platformInfo()
platformInfo field.public JAWTDrawingSurface ds()
JAWTDrawingSurface view of the struct pointed to by the ds field.public JAWTRectangle bounds()
JAWTRectangle view of the bounds field.public int clipSize()
clipSize field.public JAWTRectangle.Buffer clip()
JAWTRectangle.Buffer view of the struct array pointed to by the clip field.public static JAWTDrawingSurfaceInfo create(long address)
JAWTDrawingSurfaceInfo instance for the specified memory address.@Nullable public static JAWTDrawingSurfaceInfo createSafe(long address)
public static JAWTDrawingSurfaceInfo.Buffer create(long address, int capacity)
JAWTDrawingSurfaceInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static JAWTDrawingSurfaceInfo.Buffer createSafe(long address, int capacity)
public static long nplatformInfo(long struct)
platformInfo().public static JAWTDrawingSurface nds(long struct)
ds().public static JAWTRectangle nbounds(long struct)
bounds().public static int nclipSize(long struct)
clipSize().public static JAWTRectangle.Buffer nclip(long struct)
clip().Copyright LWJGL. All Rights Reserved. License terms.