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_Win32DrawingSurfaceInfo
on Windows or aJAWT_X11DrawingSurfaceInfo
on Solaris. On Mac OS X this is a pointer to aNSObject
that conforms to theJAWT_SurfaceLayers
protocol.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_Rectangle
bounds; jint clipSize; JAWT_Rectangle * clip; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
JAWTDrawingSurfaceInfo.Buffer
An array ofJAWTDrawingSurfaceInfo
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The 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 aJAWTDrawingSurfaceInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description JAWTRectangle
bounds()
Returns aJAWTRectangle
view of thebounds
field.static JAWTDrawingSurfaceInfo
calloc()
Returns a newJAWTDrawingSurfaceInfo
instance allocated withmemCalloc
.static JAWTDrawingSurfaceInfo.Buffer
calloc(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Buffer
instance allocated withmemCalloc
.static JAWTDrawingSurfaceInfo
callocStack()
Returns a newJAWTDrawingSurfaceInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static JAWTDrawingSurfaceInfo.Buffer
callocStack(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static JAWTDrawingSurfaceInfo.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newJAWTDrawingSurfaceInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static JAWTDrawingSurfaceInfo
callocStack(MemoryStack stack)
Returns a newJAWTDrawingSurfaceInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.JAWTRectangle.Buffer
clip()
Returns aJAWTRectangle.Buffer
view of the struct array pointed to by theclip
field.int
clipSize()
Returns the value of theclipSize
field.static JAWTDrawingSurfaceInfo
create()
Returns a newJAWTDrawingSurfaceInfo
instance allocated withBufferUtils
.static JAWTDrawingSurfaceInfo.Buffer
create(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Buffer
instance allocated withBufferUtils
.static JAWTDrawingSurfaceInfo
create(long address)
Returns a newJAWTDrawingSurfaceInfo
instance for the specified memory address ornull
if the address isNULL
.static JAWTDrawingSurfaceInfo.Buffer
create(long address, int capacity)
Create aJAWTDrawingSurfaceInfo.Buffer
instance at the specified memory.JAWTDrawingSurface
ds()
Returns aJAWTDrawingSurface
view of the struct pointed to by theds
field.static JAWTDrawingSurfaceInfo
malloc()
Returns a newJAWTDrawingSurfaceInfo
instance allocated withmemAlloc
.static JAWTDrawingSurfaceInfo.Buffer
malloc(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Buffer
instance allocated withmemAlloc
.static JAWTDrawingSurfaceInfo
mallocStack()
Returns a newJAWTDrawingSurfaceInfo
instance allocated on the thread-localMemoryStack
.static JAWTDrawingSurfaceInfo.Buffer
mallocStack(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Buffer
instance allocated on the thread-localMemoryStack
.static JAWTDrawingSurfaceInfo.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newJAWTDrawingSurfaceInfo.Buffer
instance allocated on the specifiedMemoryStack
.static JAWTDrawingSurfaceInfo
mallocStack(MemoryStack stack)
Returns a newJAWTDrawingSurfaceInfo
instance allocated on the specifiedMemoryStack
.long
platformInfo()
Returns the value of theplatformInfo
field.int
sizeof()
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 aJAWTDrawingSurfaceInfo
instance at the current position of the specifiedByteBuffer
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
-
sizeof
public int sizeof()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
platformInfo
public long platformInfo()
Returns the value of theplatformInfo
field.
-
ds
public JAWTDrawingSurface ds()
Returns aJAWTDrawingSurface
view of the struct pointed to by theds
field.
-
bounds
public JAWTRectangle bounds()
Returns aJAWTRectangle
view of thebounds
field.
-
clipSize
public int clipSize()
Returns the value of theclipSize
field.
-
clip
public JAWTRectangle.Buffer clip()
Returns aJAWTRectangle.Buffer
view of the struct array pointed to by theclip
field.
-
malloc
public static JAWTDrawingSurfaceInfo malloc()
Returns a newJAWTDrawingSurfaceInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static JAWTDrawingSurfaceInfo calloc()
Returns a newJAWTDrawingSurfaceInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static JAWTDrawingSurfaceInfo create()
Returns a newJAWTDrawingSurfaceInfo
instance allocated withBufferUtils
.
-
create
public static JAWTDrawingSurfaceInfo create(long address)
Returns a newJAWTDrawingSurfaceInfo
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static JAWTDrawingSurfaceInfo.Buffer malloc(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static JAWTDrawingSurfaceInfo.Buffer calloc(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static JAWTDrawingSurfaceInfo.Buffer create(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static JAWTDrawingSurfaceInfo.Buffer create(long address, int capacity)
Create aJAWTDrawingSurfaceInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static JAWTDrawingSurfaceInfo mallocStack()
Returns a newJAWTDrawingSurfaceInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static JAWTDrawingSurfaceInfo callocStack()
Returns a newJAWTDrawingSurfaceInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static JAWTDrawingSurfaceInfo mallocStack(MemoryStack stack)
Returns a newJAWTDrawingSurfaceInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static JAWTDrawingSurfaceInfo callocStack(MemoryStack stack)
Returns a newJAWTDrawingSurfaceInfo
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static JAWTDrawingSurfaceInfo.Buffer callocStack(int capacity)
Returns a newJAWTDrawingSurfaceInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static JAWTDrawingSurfaceInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newJAWTDrawingSurfaceInfo.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-