mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
62 lines
4.9 KiB
Java
62 lines
4.9 KiB
Java
package androidx.compose.foundation.layout;
|
|
|
|
import androidx.compose.runtime.MutableState;
|
|
import androidx.compose.runtime.SnapshotStateKt__SnapshotStateKt;
|
|
import androidx.compose.ui.modifier.ModifierLocalConsumer;
|
|
import androidx.compose.ui.modifier.ModifierLocalProvider;
|
|
import androidx.compose.ui.modifier.ModifierLocalReadScope;
|
|
import androidx.compose.ui.modifier.ProvidableModifierLocal;
|
|
import androidx.compose.ui.platform.InspectorInfo;
|
|
import androidx.compose.ui.platform.InspectorValueInfo;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: WindowInsetsPadding.kt */
|
|
@Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b3\u0018\u00002\u00020\u00012\u00020\u00022\b\u0012\u0004\u0012\u00020\u00040\u0003B \b\u0004\u0012\u0017\u0010\u0005\u001a\u0013\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020\b0\u0006¢\u0006\u0002\b\t¢\u0006\u0002\u0010\nJ\u0010\u0010\u0019\u001a\u00020\u00042\u0006\u0010\u001a\u001a\u00020\u0004H&J\u0010\u0010\u001b\u001a\u00020\b2\u0006\u0010\u001c\u001a\u00020\u001dH\u0016R+\u0010\f\u001a\u00020\u00042\u0006\u0010\u000b\u001a\u00020\u00048B@BX\u0082\u008e\u0002¢\u0006\u0012\n\u0004\b\u0011\u0010\u0012\u001a\u0004\b\r\u0010\u000e\"\u0004\b\u000f\u0010\u0010R\u001a\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00040\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0015\u0010\u0016R\u0014\u0010\u0017\u001a\u00020\u00048VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u000e\u0082\u0001\u0002\u001e\u001f¨\u0006 "}, d2 = {"Landroidx/compose/foundation/layout/InsetsConsumingModifier;", "Landroidx/compose/ui/platform/InspectorValueInfo;", "Landroidx/compose/ui/modifier/ModifierLocalConsumer;", "Landroidx/compose/ui/modifier/ModifierLocalProvider;", "Landroidx/compose/foundation/layout/WindowInsets;", "inspectorInfo", "Lkotlin/Function1;", "Landroidx/compose/ui/platform/InspectorInfo;", "", "Lkotlin/ExtensionFunctionType;", "(Lkotlin/jvm/functions/Function1;)V", "<set-?>", "consumedInsets", "getConsumedInsets", "()Landroidx/compose/foundation/layout/WindowInsets;", "setConsumedInsets", "(Landroidx/compose/foundation/layout/WindowInsets;)V", "consumedInsets$delegate", "Landroidx/compose/runtime/MutableState;", "key", "Landroidx/compose/ui/modifier/ProvidableModifierLocal;", "getKey", "()Landroidx/compose/ui/modifier/ProvidableModifierLocal;", "value", "getValue", "calculateInsets", "modifierLocalInsets", "onModifierLocalsUpdated", "scope", "Landroidx/compose/ui/modifier/ModifierLocalReadScope;", "Landroidx/compose/foundation/layout/PaddingValuesConsumingModifier;", "Landroidx/compose/foundation/layout/UnionInsetsConsumingModifier;", "foundation-layout_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
abstract class InsetsConsumingModifier extends InspectorValueInfo implements ModifierLocalConsumer, ModifierLocalProvider<WindowInsets> {
|
|
|
|
/* renamed from: consumedInsets$delegate, reason: from kotlin metadata */
|
|
private final MutableState consumedInsets;
|
|
|
|
public /* synthetic */ InsetsConsumingModifier(Function1 function1, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(function1);
|
|
}
|
|
|
|
public abstract WindowInsets calculateInsets(WindowInsets modifierLocalInsets);
|
|
|
|
private InsetsConsumingModifier(Function1<? super InspectorInfo, Unit> function1) {
|
|
super(function1);
|
|
MutableState mutableStateOf$default;
|
|
mutableStateOf$default = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(WindowInsetsKt.WindowInsets(0, 0, 0, 0), null, 2, null);
|
|
this.consumedInsets = mutableStateOf$default;
|
|
}
|
|
|
|
private final WindowInsets getConsumedInsets() {
|
|
return (WindowInsets) this.consumedInsets.getValue();
|
|
}
|
|
|
|
@Override // androidx.compose.ui.modifier.ModifierLocalConsumer
|
|
public void onModifierLocalsUpdated(ModifierLocalReadScope scope) {
|
|
Intrinsics.checkNotNullParameter(scope, "scope");
|
|
setConsumedInsets(calculateInsets((WindowInsets) scope.getCurrent(WindowInsetsPaddingKt.getModifierLocalConsumedWindowInsets())));
|
|
}
|
|
|
|
@Override // androidx.compose.ui.modifier.ModifierLocalProvider
|
|
public ProvidableModifierLocal<WindowInsets> getKey() {
|
|
return WindowInsetsPaddingKt.getModifierLocalConsumedWindowInsets();
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // androidx.compose.ui.modifier.ModifierLocalProvider
|
|
public WindowInsets getValue() {
|
|
return getConsumedInsets();
|
|
}
|
|
|
|
private final void setConsumedInsets(WindowInsets windowInsets) {
|
|
this.consumedInsets.setValue(windowInsets);
|
|
}
|
|
}
|