Add ImFont helper methods to get ImVec2 values
This commit is contained in:
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);
|
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
|
* Offset font rendering by xx pixels
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in new issue
Block a user