Package org.lwjgl.system.jawt
Class JAWTDrawingSurfaceInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.jawt.JAWTDrawingSurfaceInfo
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class JAWTDrawingSurfaceInfo extends org.lwjgl.system.StructMember documentation
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– Number of rectangles in the clip.clip– Clip rectangle array.
Layout
struct JAWT_DrawingSurfaceInfo { void * platformInfo;JAWT_DrawingSurface* ds;JAWT_Rectanglebounds; jint clipSize;JAWT_Rectangle* clip; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJAWTDrawingSurfaceInfo.BufferAn array ofJAWTDrawingSurfaceInfostructs.
-
Constructor Summary
Constructors Constructor Description JAWTDrawingSurfaceInfo(java.nio.ByteBuffer container)Creates aJAWTDrawingSurfaceInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JAWTRectanglebounds()Returns aJAWTRectangleview of theboundsfield.JAWTRectangle.Bufferclip()Returns aJAWTRectangle.Bufferview of the struct array pointed to by theclipfield.intclipSize()Returns the value of theclipSizefield.static JAWTDrawingSurfaceInfocreate(long address)Returns a newJAWTDrawingSurfaceInfoinstance for the specified memory address.static JAWTDrawingSurfaceInfo.Buffercreate(long address, int capacity)Create aJAWTDrawingSurfaceInfo.Bufferinstance at the specified memory.static JAWTDrawingSurfaceInfocreateSafe(long address)static JAWTDrawingSurfaceInfo.BuffercreateSafe(long address, int capacity)JAWTDrawingSurfaceds()Returns aJAWTDrawingSurfaceview of the struct pointed to by thedsfield.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().longplatformInfo()Returns the value of theplatformInfofield.intsizeof()
-
-
-
Constructor Detail
-
JAWTDrawingSurfaceInfo
public JAWTDrawingSurfaceInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
platformInfo
public long platformInfo()
Returns the value of theplatformInfofield.
-
ds
public JAWTDrawingSurface ds()
Returns aJAWTDrawingSurfaceview of the struct pointed to by thedsfield.
-
bounds
public JAWTRectangle bounds()
Returns aJAWTRectangleview of theboundsfield.
-
clipSize
public int clipSize()
Returns the value of theclipSizefield.
-
clip
public JAWTRectangle.Buffer clip()
Returns aJAWTRectangle.Bufferview of the struct array pointed to by theclipfield.
-
create
public static JAWTDrawingSurfaceInfo create(long address)
Returns a newJAWTDrawingSurfaceInfoinstance for the specified memory address.
-
createSafe
@Nullable public static JAWTDrawingSurfaceInfo createSafe(long address)
-
create
public static JAWTDrawingSurfaceInfo.Buffer create(long address, int capacity)
Create aJAWTDrawingSurfaceInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static JAWTDrawingSurfaceInfo.Buffer createSafe(long address, int capacity)
-
nplatformInfo
public static long nplatformInfo(long struct)
Unsafe version ofplatformInfo().
-
nds
public static JAWTDrawingSurface nds(long struct)
Unsafe version ofds().
-
nbounds
public static JAWTRectangle nbounds(long struct)
Unsafe version ofbounds().
-
nclipSize
public static int nclipSize(long struct)
Unsafe version ofclipSize().
-
nclip
public static JAWTRectangle.Buffer nclip(long struct)
Unsafe version ofclip().
-
-