Add ImFontConfig helper methods to get ImVec2 values
This commit is contained in:
1 parent
5fc32e8d6e
commit
f013696f11
1 file changed
+28
@@ -181,6 +181,20 @@ public final class ImFontConfig implements ImGuiDestroyableStruct {
|
||||
Jni::ImVec2Cpy(env, &IM_FONT_CONFIG->GlyphExtraSpacing, dstImVec2);
|
||||
*/
|
||||
|
||||
/**
|
||||
* Extra spacing (in pixels) between glyphs. Only X axis is supported for now.
|
||||
*/
|
||||
public native float getGlyphExtraSpacingX(); /*
|
||||
return IM_FONT_CONFIG->GlyphExtraSpacing.x;
|
||||
*/
|
||||
|
||||
/**
|
||||
* Extra spacing (in pixels) between glyphs. Only X axis is supported for now.
|
||||
*/
|
||||
public native float getGlyphExtraSpacingY(); /*
|
||||
return IM_FONT_CONFIG->GlyphExtraSpacing.y;
|
||||
*/
|
||||
|
||||
/**
|
||||
* Extra spacing (in pixels) between glyphs. Only X axis is supported for now.
|
||||
*/
|
||||
@@ -196,6 +210,20 @@ public final class ImFontConfig implements ImGuiDestroyableStruct {
|
||||
Jni::ImVec2Cpy(env, &IM_FONT_CONFIG->GlyphOffset, dstImVec2);
|
||||
*/
|
||||
|
||||
/**
|
||||
* Offset all glyphs from this font input.
|
||||
*/
|
||||
public native float getGlyphOffsetX(); /*
|
||||
return IM_FONT_CONFIG->GlyphOffset.x;
|
||||
*/
|
||||
|
||||
/**
|
||||
* Offset all glyphs from this font input.
|
||||
*/
|
||||
public native float getGlyphOffsetY(); /*
|
||||
return IM_FONT_CONFIG->GlyphOffset.y;
|
||||
*/
|
||||
|
||||
/**
|
||||
* Offset all glyphs from this font input.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user