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:
- java.lang.AutoCloseable, NativeResource, Pointer
public class JAWTDrawingSurfaceInfo extends Struct
Member 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 and Description static classJAWTDrawingSurfaceInfo.BufferAn array ofJAWTDrawingSurfaceInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and Description JAWTRectanglebounds()Returns aJAWTRectangleview of theboundsfield.static JAWTDrawingSurfaceInfocalloc()Returns a newJAWTDrawingSurfaceInfoinstance allocated withmemCalloc.static JAWTDrawingSurfaceInfo.Buffercalloc(int capacity)Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated withmemCalloc.static JAWTDrawingSurfaceInfocallocStack()Returns a newJAWTDrawingSurfaceInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static JAWTDrawingSurfaceInfo.BuffercallocStack(int capacity)Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static JAWTDrawingSurfaceInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static JAWTDrawingSurfaceInfocallocStack(MemoryStack stack)Returns a newJAWTDrawingSurfaceInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.JAWTRectangle.Bufferclip()Returns aJAWTRectangle.Bufferview of the struct array pointed to by theclipfield.intclipSize()Returns the value of theclipSizefield.static JAWTDrawingSurfaceInfocreate()Returns a newJAWTDrawingSurfaceInfoinstance allocated withBufferUtils.static JAWTDrawingSurfaceInfo.Buffercreate(int capacity)Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated withBufferUtils.static JAWTDrawingSurfaceInfocreate(long address)Returns a newJAWTDrawingSurfaceInfoinstance for the specified memory address ornullif the address isNULL.static JAWTDrawingSurfaceInfo.Buffercreate(long address, int capacity)Create aJAWTDrawingSurfaceInfo.Bufferinstance at the specified memory.JAWTDrawingSurfaceds()Returns aJAWTDrawingSurfaceview of the struct pointed to by thedsfield.static JAWTDrawingSurfaceInfomalloc()Returns a newJAWTDrawingSurfaceInfoinstance allocated withmemAlloc.static JAWTDrawingSurfaceInfo.Buffermalloc(int capacity)Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated withmemAlloc.static JAWTDrawingSurfaceInfomallocStack()Returns a newJAWTDrawingSurfaceInfoinstance allocated on the thread-localMemoryStack.static JAWTDrawingSurfaceInfo.BuffermallocStack(int capacity)Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated on the thread-localMemoryStack.static JAWTDrawingSurfaceInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated on the specifiedMemoryStack.static JAWTDrawingSurfaceInfomallocStack(MemoryStack stack)Returns a newJAWTDrawingSurfaceInfoinstance allocated on the specifiedMemoryStack.longplatformInfo()Returns the value of theplatformInfofield.intsizeof()Returns thesizeof(struct).-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:StructReturns thesizeof(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.
-
malloc
public static JAWTDrawingSurfaceInfo malloc()
Returns a newJAWTDrawingSurfaceInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static JAWTDrawingSurfaceInfo calloc()
Returns a newJAWTDrawingSurfaceInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static JAWTDrawingSurfaceInfo create()
Returns a newJAWTDrawingSurfaceInfoinstance allocated withBufferUtils.
-
create
public static JAWTDrawingSurfaceInfo create(long address)
Returns a newJAWTDrawingSurfaceInfoinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static JAWTDrawingSurfaceInfo.Buffer malloc(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static JAWTDrawingSurfaceInfo.Buffer calloc(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static JAWTDrawingSurfaceInfo.Buffer create(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
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
-
mallocStack
public static JAWTDrawingSurfaceInfo mallocStack()
Returns a newJAWTDrawingSurfaceInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static JAWTDrawingSurfaceInfo callocStack()
Returns a newJAWTDrawingSurfaceInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static JAWTDrawingSurfaceInfo mallocStack(MemoryStack stack)
Returns a newJAWTDrawingSurfaceInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static JAWTDrawingSurfaceInfo callocStack(MemoryStack stack)
Returns a newJAWTDrawingSurfaceInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static JAWTDrawingSurfaceInfo.Buffer mallocStack(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static JAWTDrawingSurfaceInfo.Buffer callocStack(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static JAWTDrawingSurfaceInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static JAWTDrawingSurfaceInfo.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newJAWTDrawingSurfaceInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-