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.StructLayout
struct JAWT_DrawingSurfaceInfo { void *platformInfo();JAWT_DrawingSurface*ds();JAWT_Rectanglebounds(); jintclipSize();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()Bounding rectangle of the drawing surface.JAWTRectangle.Bufferclip()Clip rectangle array.intclipSize()Number of rectangles in the clip.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()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().longplatformInfo()Pointer to the platform-specific information.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()
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
public JAWTDrawingSurface ds()
Cached pointer to the underlying drawing surface.
-
bounds
public JAWTRectangle bounds()
Bounding rectangle of the drawing surface.
-
clipSize
public int clipSize()
Number of rectangles in the clip.
-
clip
public JAWTRectangle.Buffer clip()
Clip rectangle array.
-
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().
-
-