Top Description Inners Fields Constructors Methods
org.lwjgl.system.jawt

public Class JAWTDrawingSurfaceInfo

extends Struct<JAWTDrawingSurfaceInfo>
Class Inheritance
Annotations
@NativeType:struct JAWT_DrawingSurfaceInfo
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Layout


struct JAWT_DrawingSurfaceInfo {
    void * platformInfo;
    JAWT_DrawingSurface * ds;
    JAWT_Rectangle bounds;
    jint clipSize;
    JAWT_Rectangle * clip;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BOUNDS

The struct member offsets.

public static final int
CLIP

The struct member offsets.

public static final int
CLIPSIZE

The struct member offsets.

public static final int
DS

The struct member offsets.

public static final int
PLATFORMINFO

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
JAWTDrawingSurfaceInfo(long address, ByteBuffer container)

public
JAWTDrawingSurfaceInfo(ByteBuffer container)

Creates a JAWTDrawingSurfaceInfo instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public JAWTRectangle
bounds()

Bounding rectangle of the drawing surface.

public JAWTRectangle.Buffer
clip()

Clip rectangle array.

public int
clipSize()

Number of rectangles in the clip.

protected JAWTDrawingSurfaceInfo
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static JAWTDrawingSurfaceInfo
create(long address)

Returns a new JAWTDrawingSurfaceInfo instance for the specified memory address.

public static JAWTDrawingSurfaceInfo.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a JAWTDrawingSurfaceInfo.Buffer instance at the specified memory.

public static JAWTDrawingSurfaceInfo
createSafe(long address)

Like create, but returns null if address is NULL.

public static JAWTDrawingSurfaceInfo.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public JAWTDrawingSurface
ds()

Cached pointer to the underlying drawing surface.

public static JAWTRectangle
nbounds(long struct)

Unsafe version of bounds.

public static JAWTRectangle.Buffer
nclip(long struct)

Unsafe version of clip.

public static int
nclipSize(long struct)

Unsafe version of clipSize.

public static JAWTDrawingSurface
nds(long struct)

Unsafe version of ds.

public static long
nplatformInfo(long struct)

Unsafe version of platformInfo.

public long
platformInfo()

Pointer to the platform-specific information.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

BOUNDSback to summary
public static final int BOUNDS

The struct member offsets.

CLIPback to summary
public static final int CLIP

The struct member offsets.

CLIPSIZEback to summary
public static final int CLIPSIZE

The struct member offsets.

DSback to summary
public static final int DS

The struct member offsets.

PLATFORMINFOback to summary
public static final int PLATFORMINFO

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Constructor Detail

JAWTDrawingSurfaceInfoback to summary
protected JAWTDrawingSurfaceInfo(long address, ByteBuffer container)
JAWTDrawingSurfaceInfoback to summary
public JAWTDrawingSurfaceInfo(ByteBuffer container)

Creates a 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.

Method Detail

boundsback to summary
public JAWTRectangle bounds()

Bounding rectangle of the drawing surface.

Annotations
@NativeType:JAWT_Rectangle
clipback to summary
public JAWTRectangle.Buffer clip()

Clip rectangle array.

Annotations
@NativeType:JAWT_Rectangle *
clipSizeback to summary
public int clipSize()

Number of rectangles in the clip.

Annotations
@NativeType:jint
createback to summary
protected JAWTDrawingSurfaceInfo create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static JAWTDrawingSurfaceInfo create(long address)

Returns a new JAWTDrawingSurfaceInfo instance for the specified memory address.

createback to summary
public static JAWTDrawingSurfaceInfo.Buffer create(long address, int capacity)

Create a JAWTDrawingSurfaceInfo.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static JAWTDrawingSurfaceInfo createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static JAWTDrawingSurfaceInfo.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
dsback to summary
public JAWTDrawingSurface ds()

Cached pointer to the underlying drawing surface.

Annotations
@NativeType:JAWT_DrawingSurface *
nboundsback to summary
public static JAWTRectangle nbounds(long struct)

Unsafe version of bounds.

nclipback to summary
public static JAWTRectangle.Buffer nclip(long struct)

Unsafe version of clip.

nclipSizeback to summary
public static int nclipSize(long struct)

Unsafe version of clipSize.

ndsback to summary
public static JAWTDrawingSurface nds(long struct)

Unsafe version of ds.

nplatformInfoback to summary
public static long nplatformInfo(long struct)

Unsafe version of platformInfo.

platformInfoback to summary
public long 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.

Annotations
@NativeType:void *
sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
org.lwjgl.system.jawt back to summary

public Class JAWTDrawingSurfaceInfo.Buffer

extends StructBuffer<JAWTDrawingSurfaceInfo, JAWTDrawingSurfaceInfo.Buffer>
Class Inheritance

An array of JAWTDrawingSurfaceInfo structs.

Field Summary

Modifier and TypeField and Description
private static final JAWTDrawingSurfaceInfo

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new JAWTDrawingSurfaceInfo.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public JAWTRectangle

Returns:

a JAWTRectangle view of the JAWTDrawingSurfaceInfo#bounds field.
bounds
()

public JAWTRectangle.Buffer

Returns:

a JAWTRectangle.Buffer view of the struct array pointed to by the JAWTDrawingSurfaceInfo#clip field.
clip
()

public int

Returns:

the value of the JAWTDrawingSurfaceInfo#clipSize field.
clipSize
()

public JAWTDrawingSurface

Returns:

a JAWTDrawingSurface view of the struct pointed to by the JAWTDrawingSurfaceInfo#ds field.
ds
()

protected JAWTDrawingSurfaceInfo
public long

Returns:

the value of the JAWTDrawingSurfaceInfo#platformInfo field.
platformInfo
()

protected JAWTDrawingSurfaceInfo.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final JAWTDrawingSurfaceInfo ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new JAWTDrawingSurfaceInfo.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 by JAWTDrawingSurfaceInfo#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

boundsback to summary
public JAWTRectangle bounds()
Returns:JAWTRectangle

a JAWTRectangle view of the JAWTDrawingSurfaceInfo#bounds field.

Annotations
@NativeType:JAWT_Rectangle
clipback to summary
public JAWTRectangle.Buffer clip()
Returns:JAWTRectangle.Buffer

a JAWTRectangle.Buffer view of the struct array pointed to by the JAWTDrawingSurfaceInfo#clip field.

Annotations
@NativeType:JAWT_Rectangle *
clipSizeback to summary
public int clipSize()
Returns:int

the value of the JAWTDrawingSurfaceInfo#clipSize field.

Annotations
@NativeType:jint
dsback to summary
public JAWTDrawingSurface ds()
Returns:JAWTDrawingSurface

a JAWTDrawingSurface view of the struct pointed to by the JAWTDrawingSurfaceInfo#ds field.

Annotations
@NativeType:JAWT_DrawingSurface *
getElementFactoryback to summary
protected JAWTDrawingSurfaceInfo getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
platformInfoback to summary
public long platformInfo()
Returns:long

the value of the JAWTDrawingSurfaceInfo#platformInfo field.

Annotations
@NativeType:void *
selfback to summary
protected JAWTDrawingSurfaceInfo.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override