[API] Add API for Dear ImGui v1.79

This commit is contained in:
SpaiR committed 2020-10-17 14:58:04 +03:00
1 parent 598bfdfc91
commit 8ac8a0719b
10 files changed
+91 -105

No files matched your search

@@ -8,7 +8,7 @@ import java.util.Objects;
* Helper: ImRect (2D axis aligned bounding-box)
* NB: we can't rely on ImVec2 math operators being available here!
*/
public final class ImRect {
public final class ImRect implements Cloneable {
/**
* Upper-left
*/
@@ -35,6 +35,10 @@ public final class ImRect {
max.y = y2;
}
public ImRect(final ImRect imRect) {
this(imRect.min, imRect.max);
}
@Override
public String toString() {
return "ImRect{"
@@ -61,4 +65,9 @@ public final class ImRect {
public int hashCode() {
return Objects.hash(min, max);
}
@Override
public ImRect clone() {
return new ImRect(this);
}
}