mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
80 lines
5 KiB
Java
80 lines
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.Density;
|
|
import androidx.compose.ui.unit.IntOffset;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: Offset.kt */
|
|
@Metadata(d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\t\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\b\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001BB\u0012\u0017\u0010\u0003\u001a\u0013\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u0004¢\u0006\u0002\b\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0017\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\f0\u0004¢\u0006\u0002\b\u0007ø\u0001\u0000¢\u0006\u0002\u0010\rJ\b\u0010\u0013\u001a\u00020\u0002H\u0016J\u0013\u0010\u0014\u001a\u00020\t2\b\u0010\u0015\u001a\u0004\u0018\u00010\u0016H\u0096\u0002J\b\u0010\u0017\u001a\u00020\u0018H\u0016J\b\u0010\u0019\u001a\u00020\u001aH\u0016J\u0010\u0010\u001b\u001a\u00020\f2\u0006\u0010\u001c\u001a\u00020\u0002H\u0016J\f\u0010\u001d\u001a\u00020\f*\u00020\u000bH\u0016R\"\u0010\n\u001a\u0013\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\f0\u0004¢\u0006\u0002\b\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000fR%\u0010\u0003\u001a\u0013\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u0004¢\u0006\u0002\b\u0007ø\u0001\u0000¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u000fR\u0011\u0010\b\u001a\u00020\t¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0012\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u001e"}, d2 = {"Landroidx/compose/foundation/layout/OffsetPxElement;", "Landroidx/compose/ui/node/ModifierNodeElement;", "Landroidx/compose/foundation/layout/OffsetPxNode;", "offset", "Lkotlin/Function1;", "Landroidx/compose/ui/unit/Density;", "Landroidx/compose/ui/unit/IntOffset;", "Lkotlin/ExtensionFunctionType;", "rtlAware", "", "inspectorInfo", "Landroidx/compose/ui/platform/InspectorInfo;", "", "(Lkotlin/jvm/functions/Function1;ZLkotlin/jvm/functions/Function1;)V", "getInspectorInfo", "()Lkotlin/jvm/functions/Function1;", "getOffset", "getRtlAware", "()Z", "create", "equals", "other", "", "hashCode", "", "toString", "", "update", "node", "inspectableProperties", "foundation-layout_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
final class OffsetPxElement extends ModifierNodeElement<OffsetPxNode> {
|
|
private final Function1<InspectorInfo, Unit> inspectorInfo;
|
|
private final Function1<Density, IntOffset> offset;
|
|
private final boolean rtlAware;
|
|
|
|
public final Function1<InspectorInfo, Unit> getInspectorInfo() {
|
|
return this.inspectorInfo;
|
|
}
|
|
|
|
public final Function1<Density, IntOffset> getOffset() {
|
|
return this.offset;
|
|
}
|
|
|
|
public final boolean getRtlAware() {
|
|
return this.rtlAware;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public OffsetPxElement(Function1<? super Density, IntOffset> offset, boolean z, Function1<? super InspectorInfo, Unit> inspectorInfo) {
|
|
Intrinsics.checkNotNullParameter(offset, "offset");
|
|
Intrinsics.checkNotNullParameter(inspectorInfo, "inspectorInfo");
|
|
this.offset = offset;
|
|
this.rtlAware = z;
|
|
this.inspectorInfo = inspectorInfo;
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public OffsetPxNode create() {
|
|
return new OffsetPxNode(this.offset, this.rtlAware);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void update(OffsetPxNode node) {
|
|
Intrinsics.checkNotNullParameter(node, "node");
|
|
node.setOffset(this.offset);
|
|
node.setRtlAware(this.rtlAware);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public boolean equals(Object other) {
|
|
if (this == other) {
|
|
return true;
|
|
}
|
|
OffsetPxElement offsetPxElement = other instanceof OffsetPxElement ? (OffsetPxElement) other : null;
|
|
if (offsetPxElement == null) {
|
|
return false;
|
|
}
|
|
return Intrinsics.areEqual(this.offset, offsetPxElement.offset) && this.rtlAware == offsetPxElement.rtlAware;
|
|
}
|
|
|
|
public String toString() {
|
|
return "OffsetPxModifier(offset=" + this.offset + ", rtlAware=" + this.rtlAware + ')';
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public int hashCode() {
|
|
return (this.offset.hashCode() * 31) + Boolean.hashCode(this.rtlAware);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void inspectableProperties(InspectorInfo inspectorInfo) {
|
|
Intrinsics.checkNotNullParameter(inspectorInfo, "<this>");
|
|
this.inspectorInfo.invoke(inspectorInfo);
|
|
}
|
|
}
|