mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 18:12:31 -06:00
140 lines
8.5 KiB
Java
140 lines
8.5 KiB
Java
package androidx.compose.foundation.layout;
|
|
|
|
import androidx.compose.ui.node.ModifierNodeElement;
|
|
import androidx.compose.ui.platform.InspectorInfo;
|
|
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;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* compiled from: Padding.kt */
|
|
@Metadata(d1 = {"\u0000>\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\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0015\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\b\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001BQ\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\u0012\u0017\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000eø\u0001\u0000¢\u0006\u0002\u0010\u000fJ\b\u0010!\u001a\u00020\u0002H\u0016J\u0013\u0010\"\u001a\u00020\t2\b\u0010#\u001a\u0004\u0018\u00010$H\u0096\u0002J\b\u0010%\u001a\u00020&H\u0016J\u0010\u0010'\u001a\u00020\r2\u0006\u0010(\u001a\u00020\u0002H\u0016J\f\u0010)\u001a\u00020\r*\u00020\fH\u0016R%\u0010\u0007\u001a\u00020\u0004X\u0086\u000eø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\u0014\u001a\u0004\b\u0010\u0010\u0011\"\u0004\b\u0012\u0010\u0013R%\u0010\u0006\u001a\u00020\u0004X\u0086\u000eø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\u0014\u001a\u0004\b\u0015\u0010\u0011\"\u0004\b\u0016\u0010\u0013R\"\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u00020\r0\u000b¢\u0006\u0002\b\u000e¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018R\u001a\u0010\b\u001a\u00020\tX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0019\u0010\u001a\"\u0004\b\u001b\u0010\u001cR%\u0010\u0003\u001a\u00020\u0004X\u0086\u000eø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\u0014\u001a\u0004\b\u001d\u0010\u0011\"\u0004\b\u001e\u0010\u0013R%\u0010\u0005\u001a\u00020\u0004X\u0086\u000eø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0010\n\u0002\u0010\u0014\u001a\u0004\b\u001f\u0010\u0011\"\u0004\b \u0010\u0013\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\b¡\u001e0\u0001\n\u0002\b!¨\u0006*"}, d2 = {"Landroidx/compose/foundation/layout/PaddingElement;", "Landroidx/compose/ui/node/ModifierNodeElement;", "Landroidx/compose/foundation/layout/PaddingNode;", "start", "Landroidx/compose/ui/unit/Dp;", "top", "end", "bottom", "rtlAware", "", "inspectorInfo", "Lkotlin/Function1;", "Landroidx/compose/ui/platform/InspectorInfo;", "", "Lkotlin/ExtensionFunctionType;", "(FFFFZLkotlin/jvm/functions/Function1;Lkotlin/jvm/internal/DefaultConstructorMarker;)V", "getBottom-D9Ej5fM", "()F", "setBottom-0680j_4", "(F)V", "F", "getEnd-D9Ej5fM", "setEnd-0680j_4", "getInspectorInfo", "()Lkotlin/jvm/functions/Function1;", "getRtlAware", "()Z", "setRtlAware", "(Z)V", "getStart-D9Ej5fM", "setStart-0680j_4", "getTop-D9Ej5fM", "setTop-0680j_4", "create", "equals", "other", "", "hashCode", "", "update", "node", "inspectableProperties", "foundation-layout_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class PaddingElement extends ModifierNodeElement<PaddingNode> {
|
|
private float bottom;
|
|
private float end;
|
|
private final Function1<InspectorInfo, Unit> inspectorInfo;
|
|
private boolean rtlAware;
|
|
private float start;
|
|
private float top;
|
|
|
|
public /* synthetic */ PaddingElement(float f, float f2, float f3, float f4, boolean z, Function1 function1, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(f, f2, f3, f4, z, function1);
|
|
}
|
|
|
|
/* 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 Function1<InspectorInfo, Unit> getInspectorInfo() {
|
|
return this.inspectorInfo;
|
|
}
|
|
|
|
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 m479setBottom0680j_4(float f) {
|
|
this.bottom = f;
|
|
}
|
|
|
|
/* renamed from: setEnd-0680j_4, reason: not valid java name */
|
|
public final void m480setEnd0680j_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 m481setStart0680j_4(float f) {
|
|
this.start = f;
|
|
}
|
|
|
|
/* renamed from: setTop-0680j_4, reason: not valid java name */
|
|
public final void m482setTop0680j_4(float f) {
|
|
this.top = f;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
private PaddingElement(float f, float f2, float f3, float f4, boolean z, Function1<? super InspectorInfo, Unit> inspectorInfo) {
|
|
Intrinsics.checkNotNullParameter(inspectorInfo, "inspectorInfo");
|
|
this.start = f;
|
|
this.top = f2;
|
|
this.end = f3;
|
|
this.bottom = f4;
|
|
this.rtlAware = z;
|
|
this.inspectorInfo = inspectorInfo;
|
|
if (f >= 0.0f || Dp.m4888equalsimpl0(f, Dp.INSTANCE.m4903getUnspecifiedD9Ej5fM())) {
|
|
float f5 = this.top;
|
|
if (f5 >= 0.0f || Dp.m4888equalsimpl0(f5, Dp.INSTANCE.m4903getUnspecifiedD9Ej5fM())) {
|
|
float f6 = this.end;
|
|
if (f6 >= 0.0f || Dp.m4888equalsimpl0(f6, Dp.INSTANCE.m4903getUnspecifiedD9Ej5fM())) {
|
|
float f7 = this.bottom;
|
|
if (f7 >= 0.0f || Dp.m4888equalsimpl0(f7, Dp.INSTANCE.m4903getUnspecifiedD9Ej5fM())) {
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
throw new IllegalArgumentException("Padding must be non-negative".toString());
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public PaddingNode create() {
|
|
return new PaddingNode(this.start, this.top, this.end, this.bottom, this.rtlAware, null);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void update(PaddingNode node) {
|
|
Intrinsics.checkNotNullParameter(node, "node");
|
|
node.m501setStart0680j_4(this.start);
|
|
node.m502setTop0680j_4(this.top);
|
|
node.m500setEnd0680j_4(this.end);
|
|
node.m499setBottom0680j_4(this.bottom);
|
|
node.setRtlAware(this.rtlAware);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public int hashCode() {
|
|
return (((((((Dp.m4889hashCodeimpl(this.start) * 31) + Dp.m4889hashCodeimpl(this.top)) * 31) + Dp.m4889hashCodeimpl(this.end)) * 31) + Dp.m4889hashCodeimpl(this.bottom)) * 31) + Boolean.hashCode(this.rtlAware);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public boolean equals(Object other) {
|
|
PaddingElement paddingElement = other instanceof PaddingElement ? (PaddingElement) other : null;
|
|
return paddingElement != null && Dp.m4888equalsimpl0(this.start, paddingElement.start) && Dp.m4888equalsimpl0(this.top, paddingElement.top) && Dp.m4888equalsimpl0(this.end, paddingElement.end) && Dp.m4888equalsimpl0(this.bottom, paddingElement.bottom) && this.rtlAware == paddingElement.rtlAware;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void inspectableProperties(InspectorInfo inspectorInfo) {
|
|
Intrinsics.checkNotNullParameter(inspectorInfo, "<this>");
|
|
this.inspectorInfo.invoke(inspectorInfo);
|
|
}
|
|
|
|
public /* synthetic */ PaddingElement(float f, float f2, float f3, float f4, boolean z, Function1 function1, 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, function1, null);
|
|
}
|
|
}
|