Add ImFont helper methods to get ImVec2 values

This commit is contained in:
SpaiR committed 2020-07-09 13:28:44 +03:00
1 parent 8cdb72b421
commit 5fc32e8d6e
1 file changed
+14
@@ -97,6 +97,20 @@ public final class ImFont implements ImGuiDestroyableStruct {
Jni::ImVec2Cpy(env, &IM_FONT->DisplayOffset, dstImVec2);
*/
/**
* Offset font rendering by xx pixels
*/
public native float getDisplayOffsetX(); /*
return IM_FONT->DisplayOffset.x;
*/
/**
* Offset font rendering by xx pixels
*/
public native float getDisplayOffsetY(); /*
return IM_FONT->DisplayOffset.y;
*/
/**
* Offset font rendering by xx pixels
*/