mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
38 lines
2.5 KiB
Java
38 lines
2.5 KiB
Java
package androidx.compose.ui.platform;
|
|
|
|
import android.graphics.Matrix;
|
|
import android.view.View;
|
|
import android.view.ViewParent;
|
|
import androidx.compose.ui.graphics.AndroidMatrixConversions_androidKt;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: AndroidComposeView.android.kt */
|
|
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0015\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0003\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J%\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\fH\u0017ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\r\u0010\u000eR\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006\u000f"}, d2 = {"Landroidx/compose/ui/platform/CalculateMatrixToWindowApi29;", "Landroidx/compose/ui/platform/CalculateMatrixToWindow;", "()V", "tmpMatrix", "Landroid/graphics/Matrix;", "tmpPosition", "", "calculateMatrixToWindow", "", "view", "Landroid/view/View;", "matrix", "Landroidx/compose/ui/graphics/Matrix;", "calculateMatrixToWindow-EL8BTi8", "(Landroid/view/View;[F)V", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
final class CalculateMatrixToWindowApi29 implements CalculateMatrixToWindow {
|
|
private final Matrix tmpMatrix = new Matrix();
|
|
private final int[] tmpPosition = new int[2];
|
|
|
|
@Override // androidx.compose.ui.platform.CalculateMatrixToWindow
|
|
/* renamed from: calculateMatrixToWindow-EL8BTi8 */
|
|
public void mo4181calculateMatrixToWindowEL8BTi8(View view, float[] matrix) {
|
|
Intrinsics.checkNotNullParameter(view, "view");
|
|
Intrinsics.checkNotNullParameter(matrix, "matrix");
|
|
this.tmpMatrix.reset();
|
|
view.transformMatrixToGlobal(this.tmpMatrix);
|
|
ViewParent parent = view.getParent();
|
|
while (parent instanceof View) {
|
|
view = parent;
|
|
parent = view.getParent();
|
|
}
|
|
view.getLocationOnScreen(this.tmpPosition);
|
|
int[] iArr = this.tmpPosition;
|
|
int i = iArr[0];
|
|
int i2 = iArr[1];
|
|
view.getLocationInWindow(iArr);
|
|
int[] iArr2 = this.tmpPosition;
|
|
this.tmpMatrix.postTranslate(iArr2[0] - i, iArr2[1] - i2);
|
|
AndroidMatrixConversions_androidKt.m2512setFromtUYjHk(matrix, this.tmpMatrix);
|
|
}
|
|
}
|