Rabbit-R1/switch port/java/sources/androidx/compose/foundation/layout/ColumnScopeInstance.java
2024-05-21 17:08:36 -04:00

50 lines
3.4 KiB
Java

package androidx.compose.foundation.layout;
import androidx.compose.ui.Alignment;
import androidx.compose.ui.Modifier;
import androidx.compose.ui.layout.Measured;
import androidx.compose.ui.layout.VerticalAlignmentLine;
import kotlin.Metadata;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import tech.rabbit.r1launcher.BuildConfig;
/* compiled from: Column.kt */
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0007\n\u0000\n\u0002\u0010\u000b\n\u0000\\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0014\u0010\u0003\u001a\u00020\u0004*\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0017J \u0010\u0007\u001a\u00020\u0004*\u00020\u00042\u0012\u0010\b\u001a\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\u000b0\tH\u0017J\u0014\u0010\u0007\u001a\u00020\u0004*\u00020\u00042\u0006\u0010\f\u001a\u00020\rH\u0017J\u001c\u0010\u000e\u001a\u00020\u0004*\u00020\u00042\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u0011H\u0017¨\u0006\u0012"}, d2 = {"Landroidx/compose/foundation/layout/ColumnScopeInstance;", "Landroidx/compose/foundation/layout/ColumnScope;", "()V", "align", "Landroidx/compose/ui/Modifier;", "alignment", "Landroidx/compose/ui/Alignment$Horizontal;", "alignBy", "alignmentLineBlock", "Lkotlin/Function1;", "Landroidx/compose/ui/layout/Measured;", "", "alignmentLine", "Landroidx/compose/ui/layout/VerticalAlignmentLine;", "weight", "", "fill", "", "foundation-layout_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public final class ColumnScopeInstance implements ColumnScope {
public static final ColumnScopeInstance INSTANCE = new ColumnScopeInstance();
private ColumnScopeInstance() {
}
@Override // androidx.compose.foundation.layout.ColumnScope
public Modifier weight(Modifier modifier, float f, boolean z) {
Intrinsics.checkNotNullParameter(modifier, "<this>");
if (f <= BuildConfig.SENTRY_SAMPLE_RATE) {
throw new IllegalArgumentException(("invalid weight " + f + "; must be greater than zero").toString());
}
return modifier.then(new LayoutWeightElement(f, z));
}
@Override // androidx.compose.foundation.layout.ColumnScope
public Modifier align(Modifier modifier, Alignment.Horizontal alignment) {
Intrinsics.checkNotNullParameter(modifier, "<this>");
Intrinsics.checkNotNullParameter(alignment, "alignment");
return modifier.then(new HorizontalAlignElement(alignment));
}
@Override // androidx.compose.foundation.layout.ColumnScope
public Modifier alignBy(Modifier modifier, VerticalAlignmentLine alignmentLine) {
Intrinsics.checkNotNullParameter(modifier, "<this>");
Intrinsics.checkNotNullParameter(alignmentLine, "alignmentLine");
return modifier.then(new WithAlignmentLineElement(alignmentLine));
}
@Override // androidx.compose.foundation.layout.ColumnScope
public Modifier alignBy(Modifier modifier, Function1<? super Measured, Integer> alignmentLineBlock) {
Intrinsics.checkNotNullParameter(modifier, "<this>");
Intrinsics.checkNotNullParameter(alignmentLineBlock, "alignmentLineBlock");
return modifier.then(new WithAlignmentLineBlockElement(alignmentLineBlock));
}
}