public final class ImFontGlyph extends ImGuiStructDestroyable
ptr
Constructor and Description |
---|
ImFontGlyph() |
ImFontGlyph(long ptr) |
Modifier and Type | Method and Description |
---|---|
protected long |
create() |
float |
getAdvanceX()
Distance to next character (= data from font + ImFontConfig::GlyphExtraSpacing.x baked in)
|
int |
getCodepoint()
0x0000..0xFFFF
|
int |
getColored()
Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on little-endian as this is used in loops).
|
float |
getU0()
Texture coordinates
|
float |
getU1()
Texture coordinates
|
float |
getV0()
Texture coordinates
|
float |
getV1()
Texture coordinates
|
int |
getVisible()
Flag to indicate glyph has no visible pixels (e.g. space).
|
float |
getX0()
Glyph corners
|
float |
getX1()
Glyph corners
|
float |
getY0()
Glyph corners
|
float |
getY1()
Glyph corners
|
void |
setAdvanceX(float advanceX)
Distance to next character (= data from font + ImFontConfig::GlyphExtraSpacing.x baked in)
|
void |
setCodepoint(int codepoint)
0x0000..0xFFFF
|
void |
setColored(int colored)
Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on little-endian as this is used in loops).
|
void |
setU0(float u0)
Texture coordinates
|
void |
setU1(float u1)
Texture coordinates
|
void |
setV0(float v0)
Texture coordinates
|
void |
setV1(float v1)
Texture coordinates
|
void |
setVisible(int visible)
Flag to indicate glyph has no visible pixels (e.g. space).
|
void |
setX0(float x0)
Glyph corners
|
void |
setX1(float x1)
Glyph corners
|
void |
setY0(float y0)
Glyph corners
|
void |
setY1(float y1)
Glyph corners
|
destroy
isNotValidPtr, isValidPtr
protected long create()
create
in class ImGuiStructDestroyable
public int getColored()
public void setColored(int colored)
public int getVisible()
public void setVisible(int visible)
public int getCodepoint()
public void setCodepoint(int codepoint)
public float getAdvanceX()
public void setAdvanceX(float advanceX)
public float getX0()
public void setX0(float x0)
public float getY0()
public void setY0(float y0)
public float getX1()
public void setX1(float x1)
public float getY1()
public void setY1(float y1)
public float getU0()
public void setU0(float u0)
public float getV0()
public void setV0(float v0)
public float getU1()
public void setU1(float u1)
public float getV1()
public void setV1(float v1)