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;
POINTFLOAT
gmfptGlyphOrigin; FLOAT gmfCellIncX; FLOAT gmfCellIncY; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
GLYPHMETRICSFLOAT.Buffer
An array ofGLYPHMETRICSFLOAT
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 GLYPHMETRICSFLOAT(java.nio.ByteBuffer container)
Creates aGLYPHMETRICSFLOAT
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 static GLYPHMETRICSFLOAT
calloc()
Returns a newGLYPHMETRICSFLOAT
instance allocated withmemCalloc
.static GLYPHMETRICSFLOAT.Buffer
calloc(int capacity)
Returns a newGLYPHMETRICSFLOAT.Buffer
instance allocated withmemCalloc
.static GLYPHMETRICSFLOAT
callocStack()
Returns a newGLYPHMETRICSFLOAT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static GLYPHMETRICSFLOAT.Buffer
callocStack(int capacity)
Returns a newGLYPHMETRICSFLOAT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static GLYPHMETRICSFLOAT.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newGLYPHMETRICSFLOAT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static GLYPHMETRICSFLOAT
callocStack(MemoryStack stack)
Returns a newGLYPHMETRICSFLOAT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static GLYPHMETRICSFLOAT
create()
Returns a newGLYPHMETRICSFLOAT
instance allocated withBufferUtils
.static GLYPHMETRICSFLOAT.Buffer
create(int capacity)
Returns a newGLYPHMETRICSFLOAT.Buffer
instance allocated withBufferUtils
.static GLYPHMETRICSFLOAT
create(long address)
Returns a newGLYPHMETRICSFLOAT
instance for the specified memory address ornull
if the address isNULL
.static GLYPHMETRICSFLOAT.Buffer
create(long address, int capacity)
Create aGLYPHMETRICSFLOAT.Buffer
instance at the specified memory.float
gmfBlackBoxX()
Returns the value of thegmfBlackBoxX
field.float
gmfBlackBoxY()
Returns the value of thegmfBlackBoxY
field.float
gmfCellIncX()
Returns the value of thegmfCellIncX
field.float
gmfCellIncY()
Returns the value of thegmfCellIncY
field.POINTFLOAT
gmfptGlyphOrigin()
Returns aPOINTFLOAT
view of thegmfptGlyphOrigin
field.static GLYPHMETRICSFLOAT
malloc()
Returns a newGLYPHMETRICSFLOAT
instance allocated withmemAlloc
.static GLYPHMETRICSFLOAT.Buffer
malloc(int capacity)
Returns a newGLYPHMETRICSFLOAT.Buffer
instance allocated withmemAlloc
.static GLYPHMETRICSFLOAT
mallocStack()
Returns a newGLYPHMETRICSFLOAT
instance allocated on the thread-localMemoryStack
.static GLYPHMETRICSFLOAT.Buffer
mallocStack(int capacity)
Returns a newGLYPHMETRICSFLOAT.Buffer
instance allocated on the thread-localMemoryStack
.static GLYPHMETRICSFLOAT.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newGLYPHMETRICSFLOAT.Buffer
instance allocated on the specifiedMemoryStack
.static GLYPHMETRICSFLOAT
mallocStack(MemoryStack stack)
Returns a newGLYPHMETRICSFLOAT
instance allocated on the specifiedMemoryStack
.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
-
GLYPHMETRICSFLOAT
public GLYPHMETRICSFLOAT(java.nio.ByteBuffer container)
Creates aGLYPHMETRICSFLOAT
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)
.
-
gmfBlackBoxX
public float gmfBlackBoxX()
Returns the value of thegmfBlackBoxX
field.
-
gmfBlackBoxY
public float gmfBlackBoxY()
Returns the value of thegmfBlackBoxY
field.
-
gmfptGlyphOrigin
public POINTFLOAT gmfptGlyphOrigin()
Returns aPOINTFLOAT
view of thegmfptGlyphOrigin
field.
-
gmfCellIncX
public float gmfCellIncX()
Returns the value of thegmfCellIncX
field.
-
gmfCellIncY
public float gmfCellIncY()
Returns the value of thegmfCellIncY
field.
-
malloc
public static GLYPHMETRICSFLOAT malloc()
Returns a newGLYPHMETRICSFLOAT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static GLYPHMETRICSFLOAT calloc()
Returns a newGLYPHMETRICSFLOAT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static GLYPHMETRICSFLOAT create()
Returns a newGLYPHMETRICSFLOAT
instance allocated withBufferUtils
.
-
create
public static GLYPHMETRICSFLOAT create(long address)
Returns a newGLYPHMETRICSFLOAT
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static GLYPHMETRICSFLOAT.Buffer malloc(int capacity)
Returns a newGLYPHMETRICSFLOAT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static GLYPHMETRICSFLOAT.Buffer calloc(int capacity)
Returns a newGLYPHMETRICSFLOAT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static GLYPHMETRICSFLOAT.Buffer create(int capacity)
Returns a newGLYPHMETRICSFLOAT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static GLYPHMETRICSFLOAT.Buffer create(long address, int capacity)
Create aGLYPHMETRICSFLOAT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static GLYPHMETRICSFLOAT mallocStack()
Returns a newGLYPHMETRICSFLOAT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static GLYPHMETRICSFLOAT callocStack()
Returns a newGLYPHMETRICSFLOAT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static GLYPHMETRICSFLOAT mallocStack(MemoryStack stack)
Returns a newGLYPHMETRICSFLOAT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static GLYPHMETRICSFLOAT callocStack(MemoryStack stack)
Returns a newGLYPHMETRICSFLOAT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static GLYPHMETRICSFLOAT.Buffer callocStack(int capacity)
Returns a newGLYPHMETRICSFLOAT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static GLYPHMETRICSFLOAT.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newGLYPHMETRICSFLOAT.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-