Package org.lwjgl.system.jawt
Class JAWTDrawingSurfaceInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<JAWTDrawingSurfaceInfo>
org.lwjgl.system.jawt.JAWTDrawingSurfaceInfo
- All Implemented Interfaces:
org.lwjgl.system.Pointer
Layout
struct JAWT_DrawingSurfaceInfo {
void * platformInfo();
JAWT_DrawingSurface * ds();
JAWT_Rectangle bounds();
jint clipSize();
JAWT_Rectangle * clip();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 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 aJAWTDrawingSurfaceInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Bounding rectangle of the drawing surface.clip()Clip rectangle array.intclipSize()Number of rectangles in the clip.static JAWTDrawingSurfaceInfocreate(long address) Returns a newJAWTDrawingSurfaceInfoinstance for the specified memory address.create(long address, int capacity) Create aJAWTDrawingSurfaceInfo.Bufferinstance at the specified memory.static JAWTDrawingSurfaceInfocreateSafe(long address) createSafe(long address, int capacity) ds()Cached pointer to the underlying drawing surface.static JAWTRectanglenbounds(long struct) Unsafe version ofbounds().static JAWTRectangle.Buffernclip(long struct) Unsafe version ofclip().static intnclipSize(long struct) Unsafe version ofclipSize().static JAWTDrawingSurfacends(long struct) Unsafe version ofds().static longnplatformInfo(long struct) Unsafe version ofplatformInfo().longPointer to the platform-specific information.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validateMethods 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 aJAWTDrawingSurfaceInfoinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<JAWTDrawingSurfaceInfo>
-
platformInfo
public long platformInfo()Pointer to the platform-specific information. This can be safely cast to aJAWT_Win32DrawingSurfaceInfoon Windows or aJAWT_X11DrawingSurfaceInfoon Solaris. On Mac OS X this is a pointer to aNSObjectthat conforms to theJAWT_SurfaceLayersprotocol. -
ds
Cached pointer to the underlying drawing surface. -
bounds
Bounding rectangle of the drawing surface. -
clipSize
public int clipSize()Number of rectangles in the clip. -
clip
Clip rectangle array. -
create
Returns a newJAWTDrawingSurfaceInfoinstance for the specified memory address. -
createSafe
-
create
Create aJAWTDrawingSurfaceInfo.Bufferinstance 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().
-