Package org.lwjgl.system.windows
Class GLYPHMETRICSFLOAT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.windows.GLYPHMETRICSFLOAT
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class GLYPHMETRICSFLOAT extends Struct
Contains information about the placement and orientation of a glyph in a character cell.Member documentation
gmfBlackBoxX– specifies the width of the smallest rectangle (the glyph's black box) that completely encloses the glyphgmfBlackBoxY– specifies the height of the smallest rectangle (the glyph's black box) that completely encloses the glyphgmfptGlyphOrigin– specifies the x and y coordinates of the upper-left corner of the smallest rectangle that completely encloses the glyphgmfCellIncX– specifies the horizontal distance from the origin of the current character cell to the origin of the next character cellgmfCellIncY– specifies the vertical distance from the origin of the current character cell to the origin of the next character cell
Layout
struct GLYPHMETRICSFLOAT { FLOAT gmfBlackBoxX; FLOAT gmfBlackBoxY;POINTFLOATgmfptGlyphOrigin; FLOAT gmfCellIncX; FLOAT gmfCellIncY; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classGLYPHMETRICSFLOAT.BufferAn array ofGLYPHMETRICSFLOATstructs.-
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 GLYPHMETRICSFLOAT(java.nio.ByteBuffer container)Creates aGLYPHMETRICSFLOATinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static GLYPHMETRICSFLOATcalloc()Returns a newGLYPHMETRICSFLOATinstance allocated withmemCalloc.static GLYPHMETRICSFLOAT.Buffercalloc(int capacity)Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated withmemCalloc.static GLYPHMETRICSFLOATcallocStack()Returns a newGLYPHMETRICSFLOATinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static GLYPHMETRICSFLOAT.BuffercallocStack(int capacity)Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static GLYPHMETRICSFLOAT.BuffercallocStack(int capacity, MemoryStack stack)Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GLYPHMETRICSFLOATcallocStack(MemoryStack stack)Returns a newGLYPHMETRICSFLOATinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GLYPHMETRICSFLOATcreate()Returns a newGLYPHMETRICSFLOATinstance allocated withBufferUtils.static GLYPHMETRICSFLOAT.Buffercreate(int capacity)Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated withBufferUtils.static GLYPHMETRICSFLOATcreate(long address)Returns a newGLYPHMETRICSFLOATinstance for the specified memory address ornullif the address isNULL.static GLYPHMETRICSFLOAT.Buffercreate(long address, int capacity)Create aGLYPHMETRICSFLOAT.Bufferinstance at the specified memory.floatgmfBlackBoxX()Returns the value of thegmfBlackBoxXfield.floatgmfBlackBoxY()Returns the value of thegmfBlackBoxYfield.floatgmfCellIncX()Returns the value of thegmfCellIncXfield.floatgmfCellIncY()Returns the value of thegmfCellIncYfield.POINTFLOATgmfptGlyphOrigin()Returns aPOINTFLOATview of thegmfptGlyphOriginfield.static GLYPHMETRICSFLOATmalloc()Returns a newGLYPHMETRICSFLOATinstance allocated withmemAlloc.static GLYPHMETRICSFLOAT.Buffermalloc(int capacity)Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated withmemAlloc.static GLYPHMETRICSFLOATmallocStack()Returns a newGLYPHMETRICSFLOATinstance allocated on the thread-localMemoryStack.static GLYPHMETRICSFLOAT.BuffermallocStack(int capacity)Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated on the thread-localMemoryStack.static GLYPHMETRICSFLOAT.BuffermallocStack(int capacity, MemoryStack stack)Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated on the specifiedMemoryStack.static GLYPHMETRICSFLOATmallocStack(MemoryStack stack)Returns a newGLYPHMETRICSFLOATinstance allocated on the specifiedMemoryStack.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
-
GLYPHMETRICSFLOAT
public GLYPHMETRICSFLOAT(java.nio.ByteBuffer container)
Creates aGLYPHMETRICSFLOATinstance 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).
-
gmfBlackBoxX
public float gmfBlackBoxX()
Returns the value of thegmfBlackBoxXfield.
-
gmfBlackBoxY
public float gmfBlackBoxY()
Returns the value of thegmfBlackBoxYfield.
-
gmfptGlyphOrigin
public POINTFLOAT gmfptGlyphOrigin()
Returns aPOINTFLOATview of thegmfptGlyphOriginfield.
-
gmfCellIncX
public float gmfCellIncX()
Returns the value of thegmfCellIncXfield.
-
gmfCellIncY
public float gmfCellIncY()
Returns the value of thegmfCellIncYfield.
-
malloc
public static GLYPHMETRICSFLOAT malloc()
Returns a newGLYPHMETRICSFLOATinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static GLYPHMETRICSFLOAT calloc()
Returns a newGLYPHMETRICSFLOATinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static GLYPHMETRICSFLOAT create()
Returns a newGLYPHMETRICSFLOATinstance allocated withBufferUtils.
-
create
public static GLYPHMETRICSFLOAT create(long address)
Returns a newGLYPHMETRICSFLOATinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static GLYPHMETRICSFLOAT.Buffer malloc(int capacity)
Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static GLYPHMETRICSFLOAT.Buffer calloc(int capacity)
Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static GLYPHMETRICSFLOAT.Buffer create(int capacity)
Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static GLYPHMETRICSFLOAT.Buffer create(long address, int capacity)
Create aGLYPHMETRICSFLOAT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static GLYPHMETRICSFLOAT mallocStack()
Returns a newGLYPHMETRICSFLOATinstance allocated on the thread-localMemoryStack.
-
callocStack
public static GLYPHMETRICSFLOAT callocStack()
Returns a newGLYPHMETRICSFLOATinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static GLYPHMETRICSFLOAT mallocStack(MemoryStack stack)
Returns a newGLYPHMETRICSFLOATinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static GLYPHMETRICSFLOAT callocStack(MemoryStack stack)
Returns a newGLYPHMETRICSFLOATinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static GLYPHMETRICSFLOAT.Buffer mallocStack(int capacity)
Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static GLYPHMETRICSFLOAT.Buffer callocStack(int capacity)
Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static GLYPHMETRICSFLOAT.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static GLYPHMETRICSFLOAT.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newGLYPHMETRICSFLOAT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-