api-impl/android/view/Display: add methods

This commit is contained in:
Mis012
2023-09-14 09:46:37 +02:00
parent 8500b57880
commit ba44426986

View File

@@ -14,6 +14,11 @@ public final class Display {
outMetrics.heightPixels = this.window_height; outMetrics.heightPixels = this.window_height;
} }
public void getRealMetrics(DisplayMetrics outMetrics) {
getMetrics(outMetrics); // probably?
}
public int getWidth() { public int getWidth() {
return window_width; return window_width;
} }
@@ -22,6 +27,14 @@ public final class Display {
return window_height; return window_height;
} }
public int getRawWidth() {
return window_width; // what's the difference?
}
public int getRawHeight() {
return window_height; // what's the difference?
}
public int getRotation() { public int getRotation() {
return 0 /*ROTATION_0*/; return 0 /*ROTATION_0*/;
} }