mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-16 10:57:17 +01:00
45 lines
2.7 KiB
Java
45 lines
2.7 KiB
Java
package androidx.compose.ui.graphics;
|
|
|
|
import android.graphics.Rect;
|
|
import android.graphics.RectF;
|
|
import androidx.compose.ui.unit.IntRect;
|
|
import kotlin.Deprecated;
|
|
import kotlin.Metadata;
|
|
import kotlin.ReplaceWith;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u001a\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\f\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0007\u001a\n\u0010\u0003\u001a\u00020\u0004*\u00020\u0002\u001a\n\u0010\u0005\u001a\u00020\u0002*\u00020\u0001\u001a\n\u0010\u0005\u001a\u00020\u0002*\u00020\u0004\u001a\n\u0010\u0000\u001a\u00020\u0001*\u00020\u0006\u001a\n\u0010\u0007\u001a\u00020\u0006*\u00020\u0001¨\u0006\b"}, d2 = {"toAndroidRect", "Landroid/graphics/Rect;", "Landroidx/compose/ui/geometry/Rect;", "toAndroidRectF", "Landroid/graphics/RectF;", "toComposeRect", "Landroidx/compose/ui/unit/IntRect;", "toComposeIntRect", "ui-graphics_release"}, k = 2, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
public final class RectHelper_androidKt {
|
|
@Deprecated(message = "Converting Rect to android.graphics.Rect is lossy, and requires rounding. The behavior of toAndroidRect() truncates to an integral Rect, but you should choose the method of rounding most suitable for your use case.", replaceWith = @ReplaceWith(expression = "android.graphics.Rect(left.toInt(), top.toInt(), right.toInt(), bottom.toInt())", imports = {}))
|
|
@NotNull
|
|
public static final Rect toAndroidRect(@NotNull androidx.compose.ui.geometry.Rect rect) {
|
|
return new Rect((int) rect.getLeft(), (int) rect.getTop(), (int) rect.getRight(), (int) rect.getBottom());
|
|
}
|
|
|
|
@NotNull
|
|
public static final RectF toAndroidRectF(@NotNull androidx.compose.ui.geometry.Rect rect) {
|
|
return new RectF(rect.getLeft(), rect.getTop(), rect.getRight(), rect.getBottom());
|
|
}
|
|
|
|
@NotNull
|
|
public static final IntRect toComposeIntRect(@NotNull Rect rect) {
|
|
return new IntRect(rect.left, rect.top, rect.right, rect.bottom);
|
|
}
|
|
|
|
@NotNull
|
|
public static final androidx.compose.ui.geometry.Rect toComposeRect(@NotNull Rect rect) {
|
|
return new androidx.compose.ui.geometry.Rect(rect.left, rect.top, rect.right, rect.bottom);
|
|
}
|
|
|
|
@NotNull
|
|
public static final androidx.compose.ui.geometry.Rect toComposeRect(@NotNull RectF rectF) {
|
|
return new androidx.compose.ui.geometry.Rect(rectF.left, rectF.top, rectF.right, rectF.bottom);
|
|
}
|
|
|
|
@NotNull
|
|
public static final Rect toAndroidRect(@NotNull IntRect intRect) {
|
|
return new Rect(intRect.getLeft(), intRect.getTop(), intRect.getRight(), intRect.getBottom());
|
|
}
|
|
}
|