mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
37 lines
2.5 KiB
Java
37 lines
2.5 KiB
Java
|
package androidx.compose.ui.node;
|
||
|
|
||
|
import androidx.compose.ui.Modifier;
|
||
|
import androidx.compose.ui.geometry.Rect;
|
||
|
import androidx.compose.ui.layout.LayoutCoordinatesKt;
|
||
|
import androidx.compose.ui.semantics.SemanticsActions;
|
||
|
import androidx.compose.ui.semantics.SemanticsConfiguration;
|
||
|
import androidx.compose.ui.semantics.SemanticsConfigurationKt;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
|
||
|
/* compiled from: SemanticsModifierNode.kt */
|
||
|
@Metadata(d1 = {"\u0000\"\n\u0000\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u001a\n\u0010\u0005\u001a\u00020\u0006*\u00020\u0007\u001a\u0014\u0010\b\u001a\u00020\t*\u00020\n2\u0006\u0010\u0000\u001a\u00020\u0001H\u0000\"\u0018\u0010\u0000\u001a\u00020\u0001*\u00020\u00028@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u000b"}, d2 = {"useMinimumTouchTarget", "", "Landroidx/compose/ui/semantics/SemanticsConfiguration;", "getUseMinimumTouchTarget", "(Landroidx/compose/ui/semantics/SemanticsConfiguration;)Z", "invalidateSemantics", "", "Landroidx/compose/ui/node/SemanticsModifierNode;", "touchBoundsInRoot", "Landroidx/compose/ui/geometry/Rect;", "Landroidx/compose/ui/Modifier$Node;", "ui_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class SemanticsModifierNodeKt {
|
||
|
public static final void invalidateSemantics(SemanticsModifierNode semanticsModifierNode) {
|
||
|
Intrinsics.checkNotNullParameter(semanticsModifierNode, "<this>");
|
||
|
DelegatableNodeKt.requireLayoutNode(semanticsModifierNode).invalidateSemantics$ui_release();
|
||
|
}
|
||
|
|
||
|
public static final boolean getUseMinimumTouchTarget(SemanticsConfiguration semanticsConfiguration) {
|
||
|
Intrinsics.checkNotNullParameter(semanticsConfiguration, "<this>");
|
||
|
return SemanticsConfigurationKt.getOrNull(semanticsConfiguration, SemanticsActions.INSTANCE.getOnClick()) != null;
|
||
|
}
|
||
|
|
||
|
public static final Rect touchBoundsInRoot(Modifier.Node node, boolean z) {
|
||
|
Intrinsics.checkNotNullParameter(node, "<this>");
|
||
|
if (!node.getNode().getIsAttached()) {
|
||
|
return Rect.INSTANCE.getZero();
|
||
|
}
|
||
|
if (!z) {
|
||
|
return LayoutCoordinatesKt.boundsInRoot(DelegatableNodeKt.m3989requireCoordinator64DMado(node, NodeKind.m4091constructorimpl(8)));
|
||
|
}
|
||
|
return DelegatableNodeKt.m3989requireCoordinator64DMado(node, NodeKind.m4091constructorimpl(8)).touchBoundsInRoot();
|
||
|
}
|
||
|
}
|