mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
75 lines
5.1 KiB
Java
75 lines
5.1 KiB
Java
package androidx.compose.material3;
|
|
|
|
import androidx.compose.ui.layout.LayoutModifier;
|
|
import androidx.compose.ui.layout.Measurable;
|
|
import androidx.compose.ui.layout.MeasureResult;
|
|
import androidx.compose.ui.layout.MeasureScope;
|
|
import androidx.compose.ui.layout.Placeable;
|
|
import androidx.compose.ui.unit.DpSize;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.math.MathKt;
|
|
|
|
/* compiled from: InteractiveComponentSize.kt */
|
|
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\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\u0003\b\u0002\u0018\u00002\u00020\u0001B\u0010\u0012\u0006\u0010\u0002\u001a\u00020\u0003ø\u0001\u0000¢\u0006\u0002\u0010\u0004J\u0013\u0010\b\u001a\u00020\t2\b\u0010\n\u001a\u0004\u0018\u00010\u000bH\u0096\u0002J\b\u0010\f\u001a\u00020\rH\u0016J)\u0010\u000e\u001a\u00020\u000f*\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u0014H\u0016ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u0015\u0010\u0016R\u001c\u0010\u0002\u001a\u00020\u0003ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\n\n\u0002\u0010\u0007\u001a\u0004\b\u0005\u0010\u0006\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\b¡\u001e0\u0001\n\u0002\b!¨\u0006\u0017"}, d2 = {"Landroidx/compose/material3/MinimumInteractiveComponentSizeModifier;", "Landroidx/compose/ui/layout/LayoutModifier;", "size", "Landroidx/compose/ui/unit/DpSize;", "(JLkotlin/jvm/internal/DefaultConstructorMarker;)V", "getSize-MYxV2XQ", "()J", "J", "equals", "", "other", "", "hashCode", "", "measure", "Landroidx/compose/ui/layout/MeasureResult;", "Landroidx/compose/ui/layout/MeasureScope;", "measurable", "Landroidx/compose/ui/layout/Measurable;", "constraints", "Landroidx/compose/ui/unit/Constraints;", "measure-3p2s80s", "(Landroidx/compose/ui/layout/MeasureScope;Landroidx/compose/ui/layout/Measurable;J)Landroidx/compose/ui/layout/MeasureResult;", "material3_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
final class MinimumInteractiveComponentSizeModifier implements LayoutModifier {
|
|
private final long size;
|
|
|
|
public /* synthetic */ MinimumInteractiveComponentSizeModifier(long j, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(j);
|
|
}
|
|
|
|
/* renamed from: getSize-MYxV2XQ, reason: not valid java name and from getter */
|
|
public final long getSize() {
|
|
return this.size;
|
|
}
|
|
|
|
private MinimumInteractiveComponentSizeModifier(long j) {
|
|
this.size = j;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.layout.LayoutModifier
|
|
/* renamed from: measure-3p2s80s */
|
|
public MeasureResult mo47measure3p2s80s(MeasureScope measure, Measurable measurable, long j) {
|
|
Intrinsics.checkNotNullParameter(measure, "$this$measure");
|
|
Intrinsics.checkNotNullParameter(measurable, "measurable");
|
|
final Placeable mo3876measureBRTryo0 = measurable.mo3876measureBRTryo0(j);
|
|
final int max = Math.max(mo3876measureBRTryo0.getWidth(), measure.mo329roundToPx0680j_4(DpSize.m4981getWidthD9Ej5fM(this.size)));
|
|
final int max2 = Math.max(mo3876measureBRTryo0.getHeight(), measure.mo329roundToPx0680j_4(DpSize.m4979getHeightD9Ej5fM(this.size)));
|
|
return MeasureScope.layout$default(measure, max, max2, null, new Function1<Placeable.PlacementScope, Unit>() { // from class: androidx.compose.material3.MinimumInteractiveComponentSizeModifier$measure$1
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
{
|
|
super(1);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(Placeable.PlacementScope placementScope) {
|
|
invoke2(placementScope);
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
|
public final void invoke2(Placeable.PlacementScope layout) {
|
|
Intrinsics.checkNotNullParameter(layout, "$this$layout");
|
|
Placeable.PlacementScope.place$default(layout, mo3876measureBRTryo0, MathKt.roundToInt((max - mo3876measureBRTryo0.getWidth()) / 2.0f), MathKt.roundToInt((max2 - mo3876measureBRTryo0.getHeight()) / 2.0f), 0.0f, 4, null);
|
|
}
|
|
}, 4, null);
|
|
}
|
|
|
|
public boolean equals(Object other) {
|
|
MinimumInteractiveComponentSizeModifier minimumInteractiveComponentSizeModifier = other instanceof MinimumInteractiveComponentSizeModifier ? (MinimumInteractiveComponentSizeModifier) other : null;
|
|
if (minimumInteractiveComponentSizeModifier == null) {
|
|
return false;
|
|
}
|
|
return DpSize.m4978equalsimpl0(this.size, minimumInteractiveComponentSizeModifier.size);
|
|
}
|
|
|
|
public int hashCode() {
|
|
return DpSize.m4983hashCodeimpl(this.size);
|
|
}
|
|
}
|