Add ImDrawList helper methods to get ImVec2 values

This commit is contained in:
SpaiR committed 2020-07-09 13:28:36 +03:00
1 parent 8e604fd802
commit 8cdb72b421
1 file changed
+16
@@ -85,10 +85,26 @@ public final class ImDrawList {
Jni::ImVec2Cpy(env, IM_DRAW_LIST->GetClipRectMin(), dstImVec2);
*/
public native float getClipRectMinX(); /*
return IM_DRAW_LIST->GetClipRectMin().x;
*/
public native float getClipRectMinY(); /*
return IM_DRAW_LIST->GetClipRectMin().y;
*/
public native void getClipRectMax(ImVec2 dstImVec2); /*
Jni::ImVec2Cpy(env, IM_DRAW_LIST->GetClipRectMax(), dstImVec2);
*/
public native float getClipRectMaxX(); /*
return IM_DRAW_LIST->GetClipRectMax().x;
*/
public native float getClipRectMaxY(); /*
return IM_DRAW_LIST->GetClipRectMax().y;
*/
// Primitives
// - For rectangular primitives, "pMin" and "pMax" represent the upper-left and lower-right corners.
// - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred).