mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
92 lines
5.7 KiB
Java
92 lines
5.7 KiB
Java
package androidx.compose.foundation.layout;
|
|
|
|
import androidx.compose.ui.Modifier;
|
|
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.node.LayoutModifierNode;
|
|
import io.sentry.protocol.ViewHierarchyNode;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: Offset.kt */
|
|
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\r\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\u00012\u00020\u0002B \u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0004\u0012\u0006\u0010\u0006\u001a\u00020\u0007ø\u0001\u0000¢\u0006\u0002\u0010\bJ)\u0010\u0014\u001a\u00020\u0015*\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u00182\u0006\u0010\u0019\u001a\u00020\u001aH\u0016ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u001b\u0010\u001cR\u001a\u0010\u0006\u001a\u00020\u0007X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\t\u0010\n\"\u0004\b\u000b\u0010\fR%\u0010\u0003\u001a\u00020\u0004X\u0086\u000eø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\u0011\u001a\u0004\b\r\u0010\u000e\"\u0004\b\u000f\u0010\u0010R%\u0010\u0005\u001a\u00020\u0004X\u0086\u000eø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\u0011\u001a\u0004\b\u0012\u0010\u000e\"\u0004\b\u0013\u0010\u0010\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\b¡\u001e0\u0001\n\u0002\b!¨\u0006\u001d"}, d2 = {"Landroidx/compose/foundation/layout/OffsetNode;", "Landroidx/compose/ui/node/LayoutModifierNode;", "Landroidx/compose/ui/Modifier$Node;", ViewHierarchyNode.JsonKeys.X, "Landroidx/compose/ui/unit/Dp;", ViewHierarchyNode.JsonKeys.Y, "rtlAware", "", "(FFZLkotlin/jvm/internal/DefaultConstructorMarker;)V", "getRtlAware", "()Z", "setRtlAware", "(Z)V", "getX-D9Ej5fM", "()F", "setX-0680j_4", "(F)V", "F", "getY-D9Ej5fM", "setY-0680j_4", "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;", "foundation-layout_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
final class OffsetNode extends Modifier.Node implements LayoutModifierNode {
|
|
private boolean rtlAware;
|
|
private float x;
|
|
private float y;
|
|
|
|
public /* synthetic */ OffsetNode(float f, float f2, boolean z, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(f, f2, z);
|
|
}
|
|
|
|
public final boolean getRtlAware() {
|
|
return this.rtlAware;
|
|
}
|
|
|
|
/* renamed from: getX-D9Ej5fM, reason: not valid java name and from getter */
|
|
public final float getX() {
|
|
return this.x;
|
|
}
|
|
|
|
/* renamed from: getY-D9Ej5fM, reason: not valid java name and from getter */
|
|
public final float getY() {
|
|
return this.y;
|
|
}
|
|
|
|
public final void setRtlAware(boolean z) {
|
|
this.rtlAware = z;
|
|
}
|
|
|
|
/* renamed from: setX-0680j_4, reason: not valid java name */
|
|
public final void m454setX0680j_4(float f) {
|
|
this.x = f;
|
|
}
|
|
|
|
/* renamed from: setY-0680j_4, reason: not valid java name */
|
|
public final void m455setY0680j_4(float f) {
|
|
this.y = f;
|
|
}
|
|
|
|
private OffsetNode(float f, float f2, boolean z) {
|
|
this.x = f;
|
|
this.y = f2;
|
|
this.rtlAware = z;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.LayoutModifierNode
|
|
/* renamed from: measure-3p2s80s */
|
|
public MeasureResult mo247measure3p2s80s(final MeasureScope measure, Measurable measurable, long j) {
|
|
Intrinsics.checkNotNullParameter(measure, "$this$measure");
|
|
Intrinsics.checkNotNullParameter(measurable, "measurable");
|
|
final Placeable mo3876measureBRTryo0 = measurable.mo3876measureBRTryo0(j);
|
|
return MeasureScope.layout$default(measure, mo3876measureBRTryo0.getWidth(), mo3876measureBRTryo0.getHeight(), null, new Function1<Placeable.PlacementScope, Unit>() { // from class: androidx.compose.foundation.layout.OffsetNode$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");
|
|
if (OffsetNode.this.getRtlAware()) {
|
|
Placeable.PlacementScope.placeRelative$default(layout, mo3876measureBRTryo0, measure.mo329roundToPx0680j_4(OffsetNode.this.getX()), measure.mo329roundToPx0680j_4(OffsetNode.this.getY()), 0.0f, 4, null);
|
|
} else {
|
|
Placeable.PlacementScope.place$default(layout, mo3876measureBRTryo0, measure.mo329roundToPx0680j_4(OffsetNode.this.getX()), measure.mo329roundToPx0680j_4(OffsetNode.this.getY()), 0.0f, 4, null);
|
|
}
|
|
}
|
|
}, 4, null);
|
|
}
|
|
}
|