mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
52 lines
3.2 KiB
Java
52 lines
3.2 KiB
Java
|
package androidx.compose.foundation;
|
||
|
|
||
|
import androidx.compose.foundation.interaction.MutableInteractionSource;
|
||
|
import androidx.compose.ui.node.ModifierNodeElement;
|
||
|
import androidx.compose.ui.platform.InspectorInfo;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
|
||
|
/* compiled from: Hoverable.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\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\b\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\b\u0010\u0006\u001a\u00020\u0002H\u0016J\u0013\u0010\u0007\u001a\u00020\b2\b\u0010\t\u001a\u0004\u0018\u00010\nH\u0096\u0002J\b\u0010\u000b\u001a\u00020\fH\u0016J\u0010\u0010\r\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u0002H\u0016J\f\u0010\u0010\u001a\u00020\u000e*\u00020\u0011H\u0016R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0012"}, d2 = {"Landroidx/compose/foundation/HoverableElement;", "Landroidx/compose/ui/node/ModifierNodeElement;", "Landroidx/compose/foundation/HoverableNode;", "interactionSource", "Landroidx/compose/foundation/interaction/MutableInteractionSource;", "(Landroidx/compose/foundation/interaction/MutableInteractionSource;)V", "create", "equals", "", "other", "", "hashCode", "", "update", "", "node", "inspectableProperties", "Landroidx/compose/ui/platform/InspectorInfo;", "foundation_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
final class HoverableElement extends ModifierNodeElement<HoverableNode> {
|
||
|
private final MutableInteractionSource interactionSource;
|
||
|
|
||
|
public HoverableElement(MutableInteractionSource interactionSource) {
|
||
|
Intrinsics.checkNotNullParameter(interactionSource, "interactionSource");
|
||
|
this.interactionSource = interactionSource;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Can't rename method to resolve collision */
|
||
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
||
|
public HoverableNode create() {
|
||
|
return new HoverableNode(this.interactionSource);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
||
|
public void update(HoverableNode node) {
|
||
|
Intrinsics.checkNotNullParameter(node, "node");
|
||
|
node.updateInteractionSource(this.interactionSource);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
||
|
public int hashCode() {
|
||
|
return this.interactionSource.hashCode() * 31;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
||
|
public boolean equals(Object other) {
|
||
|
if (this == other) {
|
||
|
return true;
|
||
|
}
|
||
|
return (other instanceof HoverableElement) && Intrinsics.areEqual(((HoverableElement) other).interactionSource, this.interactionSource);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
||
|
public void inspectableProperties(InspectorInfo inspectorInfo) {
|
||
|
Intrinsics.checkNotNullParameter(inspectorInfo, "<this>");
|
||
|
inspectorInfo.setName("hoverable");
|
||
|
inspectorInfo.getProperties().set("interactionSource", this.interactionSource);
|
||
|
}
|
||
|
}
|