mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 18:12:31 -06:00
123 lines
7.8 KiB
Java
123 lines
7.8 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 androidx.compose.ui.unit.ConstraintsKt;
|
|
import androidx.compose.ui.unit.Dp;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: Padding.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\u0004\n\u0002\u0010\u000b\n\u0002\b\u0011\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\u0002B8\u0012\b\b\u0002\u0010\u0003\u001a\u00020\u0004\u0012\b\b\u0002\u0010\u0005\u001a\u00020\u0004\u0012\b\b\u0002\u0010\u0006\u001a\u00020\u0004\u0012\b\b\u0002\u0010\u0007\u001a\u00020\u0004\u0012\u0006\u0010\b\u001a\u00020\tø\u0001\u0000¢\u0006\u0002\u0010\nJ)\u0010\u001a\u001a\u00020\u001b*\u00020\u001c2\u0006\u0010\u001d\u001a\u00020\u001e2\u0006\u0010\u001f\u001a\u00020 H\u0016ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b!\u0010\"R%\u0010\u0007\u001a\u00020\u0004X\u0086\u000eø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\u000f\u001a\u0004\b\u000b\u0010\f\"\u0004\b\r\u0010\u000eR%\u0010\u0006\u001a\u00020\u0004X\u0086\u000eø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\u000f\u001a\u0004\b\u0010\u0010\f\"\u0004\b\u0011\u0010\u000eR\u001a\u0010\b\u001a\u00020\tX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R%\u0010\u0003\u001a\u00020\u0004X\u0086\u000eø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\u000f\u001a\u0004\b\u0016\u0010\f\"\u0004\b\u0017\u0010\u000eR%\u0010\u0005\u001a\u00020\u0004X\u0086\u000eø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\u000f\u001a\u0004\b\u0018\u0010\f\"\u0004\b\u0019\u0010\u000e\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\b¡\u001e0\u0001\n\u0002\b!¨\u0006#"}, d2 = {"Landroidx/compose/foundation/layout/PaddingNode;", "Landroidx/compose/ui/node/LayoutModifierNode;", "Landroidx/compose/ui/Modifier$Node;", "start", "Landroidx/compose/ui/unit/Dp;", "top", "end", "bottom", "rtlAware", "", "(FFFFZLkotlin/jvm/internal/DefaultConstructorMarker;)V", "getBottom-D9Ej5fM", "()F", "setBottom-0680j_4", "(F)V", "F", "getEnd-D9Ej5fM", "setEnd-0680j_4", "getRtlAware", "()Z", "setRtlAware", "(Z)V", "getStart-D9Ej5fM", "setStart-0680j_4", "getTop-D9Ej5fM", "setTop-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 PaddingNode extends Modifier.Node implements LayoutModifierNode {
|
|
private float bottom;
|
|
private float end;
|
|
private boolean rtlAware;
|
|
private float start;
|
|
private float top;
|
|
|
|
public /* synthetic */ PaddingNode(float f, float f2, float f3, float f4, boolean z, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(f, f2, f3, f4, z);
|
|
}
|
|
|
|
/* renamed from: getBottom-D9Ej5fM, reason: not valid java name and from getter */
|
|
public final float getBottom() {
|
|
return this.bottom;
|
|
}
|
|
|
|
/* renamed from: getEnd-D9Ej5fM, reason: not valid java name and from getter */
|
|
public final float getEnd() {
|
|
return this.end;
|
|
}
|
|
|
|
public final boolean getRtlAware() {
|
|
return this.rtlAware;
|
|
}
|
|
|
|
/* renamed from: getStart-D9Ej5fM, reason: not valid java name and from getter */
|
|
public final float getStart() {
|
|
return this.start;
|
|
}
|
|
|
|
/* renamed from: getTop-D9Ej5fM, reason: not valid java name and from getter */
|
|
public final float getTop() {
|
|
return this.top;
|
|
}
|
|
|
|
/* renamed from: setBottom-0680j_4, reason: not valid java name */
|
|
public final void m499setBottom0680j_4(float f) {
|
|
this.bottom = f;
|
|
}
|
|
|
|
/* renamed from: setEnd-0680j_4, reason: not valid java name */
|
|
public final void m500setEnd0680j_4(float f) {
|
|
this.end = f;
|
|
}
|
|
|
|
public final void setRtlAware(boolean z) {
|
|
this.rtlAware = z;
|
|
}
|
|
|
|
/* renamed from: setStart-0680j_4, reason: not valid java name */
|
|
public final void m501setStart0680j_4(float f) {
|
|
this.start = f;
|
|
}
|
|
|
|
/* renamed from: setTop-0680j_4, reason: not valid java name */
|
|
public final void m502setTop0680j_4(float f) {
|
|
this.top = f;
|
|
}
|
|
|
|
private PaddingNode(float f, float f2, float f3, float f4, boolean z) {
|
|
this.start = f;
|
|
this.top = f2;
|
|
this.end = f3;
|
|
this.bottom = f4;
|
|
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");
|
|
int i = measure.mo329roundToPx0680j_4(this.start) + measure.mo329roundToPx0680j_4(this.end);
|
|
int i2 = measure.mo329roundToPx0680j_4(this.top) + measure.mo329roundToPx0680j_4(this.bottom);
|
|
final Placeable mo3876measureBRTryo0 = measurable.mo3876measureBRTryo0(ConstraintsKt.m4855offsetNN6EwU(j, -i, -i2));
|
|
return MeasureScope.layout$default(measure, ConstraintsKt.m4853constrainWidthK40F9xA(j, mo3876measureBRTryo0.getWidth() + i), ConstraintsKt.m4852constrainHeightK40F9xA(j, mo3876measureBRTryo0.getHeight() + i2), null, new Function1<Placeable.PlacementScope, Unit>() { // from class: androidx.compose.foundation.layout.PaddingNode$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 (PaddingNode.this.getRtlAware()) {
|
|
Placeable.PlacementScope.placeRelative$default(layout, mo3876measureBRTryo0, measure.mo329roundToPx0680j_4(PaddingNode.this.getStart()), measure.mo329roundToPx0680j_4(PaddingNode.this.getTop()), 0.0f, 4, null);
|
|
} else {
|
|
Placeable.PlacementScope.place$default(layout, mo3876measureBRTryo0, measure.mo329roundToPx0680j_4(PaddingNode.this.getStart()), measure.mo329roundToPx0680j_4(PaddingNode.this.getTop()), 0.0f, 4, null);
|
|
}
|
|
}
|
|
}, 4, null);
|
|
}
|
|
|
|
public /* synthetic */ PaddingNode(float f, float f2, float f3, float f4, boolean z, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? Dp.m4883constructorimpl(0) : f, (i & 2) != 0 ? Dp.m4883constructorimpl(0) : f2, (i & 4) != 0 ? Dp.m4883constructorimpl(0) : f3, (i & 8) != 0 ? Dp.m4883constructorimpl(0) : f4, z, null);
|
|
}
|
|
}
|