mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
132 lines
7.8 KiB
Java
132 lines
7.8 KiB
Java
package androidx.compose.foundation;
|
|
|
|
import androidx.compose.ui.graphics.Brush;
|
|
import androidx.compose.ui.graphics.Color;
|
|
import androidx.compose.ui.graphics.Shape;
|
|
import androidx.compose.ui.graphics.SolidColor;
|
|
import androidx.compose.ui.node.ModifierNodeElement;
|
|
import androidx.compose.ui.platform.InspectorInfo;
|
|
import androidx.compose.ui.unit.Dp;
|
|
import io.sentry.protocol.ViewHierarchyNode;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: Border.kt */
|
|
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0011\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\b\u0080\b\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B \u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\bø\u0001\u0000¢\u0006\u0002\u0010\tJ\u0019\u0010\u0011\u001a\u00020\u0004HÆ\u0003ø\u0001\u0002ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u0012\u0010\u000fJ\t\u0010\u0013\u001a\u00020\u0006HÆ\u0003J\t\u0010\u0014\u001a\u00020\bHÆ\u0003J4\u0010\u0015\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u00042\b\b\u0002\u0010\u0005\u001a\u00020\u00062\b\b\u0002\u0010\u0007\u001a\u00020\bHÆ\u0001ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u0016\u0010\u0017J\b\u0010\u0018\u001a\u00020\u0002H\u0016J\u0013\u0010\u0019\u001a\u00020\u001a2\b\u0010\u001b\u001a\u0004\u0018\u00010\u001cHÖ\u0003J\t\u0010\u001d\u001a\u00020\u001eHÖ\u0001J\t\u0010\u001f\u001a\u00020 HÖ\u0001J\u0010\u0010!\u001a\u00020\"2\u0006\u0010#\u001a\u00020\u0002H\u0016J\f\u0010$\u001a\u00020\"*\u00020%H\u0016R\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0011\u0010\u0007\u001a\u00020\b¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u001c\u0010\u0003\u001a\u00020\u0004ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\n\n\u0002\u0010\u0010\u001a\u0004\b\u000e\u0010\u000f\u0082\u0002\u000f\n\u0002\b\u0019\n\u0005\b¡\u001e0\u0001\n\u0002\b!¨\u0006&"}, d2 = {"Landroidx/compose/foundation/BorderModifierNodeElement;", "Landroidx/compose/ui/node/ModifierNodeElement;", "Landroidx/compose/foundation/BorderModifierNode;", ViewHierarchyNode.JsonKeys.WIDTH, "Landroidx/compose/ui/unit/Dp;", "brush", "Landroidx/compose/ui/graphics/Brush;", "shape", "Landroidx/compose/ui/graphics/Shape;", "(FLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Shape;Lkotlin/jvm/internal/DefaultConstructorMarker;)V", "getBrush", "()Landroidx/compose/ui/graphics/Brush;", "getShape", "()Landroidx/compose/ui/graphics/Shape;", "getWidth-D9Ej5fM", "()F", "F", "component1", "component1-D9Ej5fM", "component2", "component3", "copy", "copy-8Feqmps", "(FLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/Shape;)Landroidx/compose/foundation/BorderModifierNodeElement;", "create", "equals", "", "other", "", "hashCode", "", "toString", "", "update", "", "node", "inspectableProperties", "Landroidx/compose/ui/platform/InspectorInfo;", "foundation_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final /* data */ class BorderModifierNodeElement extends ModifierNodeElement<BorderModifierNode> {
|
|
private final Brush brush;
|
|
private final Shape shape;
|
|
private final float width;
|
|
|
|
public /* synthetic */ BorderModifierNodeElement(float f, Brush brush, Shape shape, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(f, brush, shape);
|
|
}
|
|
|
|
/* renamed from: copy-8Feqmps$default, reason: not valid java name */
|
|
public static /* synthetic */ BorderModifierNodeElement m189copy8Feqmps$default(BorderModifierNodeElement borderModifierNodeElement, float f, Brush brush, Shape shape, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
f = borderModifierNodeElement.width;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
brush = borderModifierNodeElement.brush;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
shape = borderModifierNodeElement.shape;
|
|
}
|
|
return borderModifierNodeElement.m191copy8Feqmps(f, brush, shape);
|
|
}
|
|
|
|
/* renamed from: component1-D9Ej5fM, reason: not valid java name and from getter */
|
|
public final float getWidth() {
|
|
return this.width;
|
|
}
|
|
|
|
/* renamed from: component2, reason: from getter */
|
|
public final Brush getBrush() {
|
|
return this.brush;
|
|
}
|
|
|
|
/* renamed from: component3, reason: from getter */
|
|
public final Shape getShape() {
|
|
return this.shape;
|
|
}
|
|
|
|
/* renamed from: copy-8Feqmps, reason: not valid java name */
|
|
public final BorderModifierNodeElement m191copy8Feqmps(float width, Brush brush, Shape shape) {
|
|
Intrinsics.checkNotNullParameter(brush, "brush");
|
|
Intrinsics.checkNotNullParameter(shape, "shape");
|
|
return new BorderModifierNodeElement(width, brush, shape, null);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public boolean equals(Object other) {
|
|
if (this == other) {
|
|
return true;
|
|
}
|
|
if (!(other instanceof BorderModifierNodeElement)) {
|
|
return false;
|
|
}
|
|
BorderModifierNodeElement borderModifierNodeElement = (BorderModifierNodeElement) other;
|
|
return Dp.m4888equalsimpl0(this.width, borderModifierNodeElement.width) && Intrinsics.areEqual(this.brush, borderModifierNodeElement.brush) && Intrinsics.areEqual(this.shape, borderModifierNodeElement.shape);
|
|
}
|
|
|
|
public final Brush getBrush() {
|
|
return this.brush;
|
|
}
|
|
|
|
public final Shape getShape() {
|
|
return this.shape;
|
|
}
|
|
|
|
/* renamed from: getWidth-D9Ej5fM, reason: not valid java name */
|
|
public final float m192getWidthD9Ej5fM() {
|
|
return this.width;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public int hashCode() {
|
|
return (((Dp.m4889hashCodeimpl(this.width) * 31) + this.brush.hashCode()) * 31) + this.shape.hashCode();
|
|
}
|
|
|
|
public String toString() {
|
|
return "BorderModifierNodeElement(width=" + ((Object) Dp.m4894toStringimpl(this.width)) + ", brush=" + this.brush + ", shape=" + this.shape + ')';
|
|
}
|
|
|
|
private BorderModifierNodeElement(float f, Brush brush, Shape shape) {
|
|
Intrinsics.checkNotNullParameter(brush, "brush");
|
|
Intrinsics.checkNotNullParameter(shape, "shape");
|
|
this.width = f;
|
|
this.brush = brush;
|
|
this.shape = shape;
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public BorderModifierNode create() {
|
|
return new BorderModifierNode(this.width, this.brush, this.shape, null);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void update(BorderModifierNode node) {
|
|
Intrinsics.checkNotNullParameter(node, "node");
|
|
node.m188setWidth0680j_4(this.width);
|
|
node.setBrush(this.brush);
|
|
node.setShape(this.shape);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void inspectableProperties(InspectorInfo inspectorInfo) {
|
|
Intrinsics.checkNotNullParameter(inspectorInfo, "<this>");
|
|
inspectorInfo.setName("border");
|
|
inspectorInfo.getProperties().set(ViewHierarchyNode.JsonKeys.WIDTH, Dp.m4881boximpl(this.width));
|
|
if (this.brush instanceof SolidColor) {
|
|
inspectorInfo.getProperties().set("color", Color.m2629boximpl(((SolidColor) this.brush).getValue()));
|
|
inspectorInfo.setValue(Color.m2629boximpl(((SolidColor) this.brush).getValue()));
|
|
} else {
|
|
inspectorInfo.getProperties().set("brush", this.brush);
|
|
}
|
|
inspectorInfo.getProperties().set("shape", this.shape);
|
|
}
|
|
}
|