mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
90 lines
9.5 KiB
Java
90 lines
9.5 KiB
Java
package androidx.compose.ui.text;
|
|
|
|
import androidx.compose.ui.text.AnnotatedString;
|
|
import androidx.compose.ui.text.font.Font;
|
|
import androidx.compose.ui.text.font.FontFamily;
|
|
import androidx.compose.ui.unit.ConstraintsKt;
|
|
import androidx.compose.ui.unit.Density;
|
|
import io.sentry.protocol.ViewHierarchyNode;
|
|
import java.util.List;
|
|
import kotlin.Deprecated;
|
|
import kotlin.Metadata;
|
|
import kotlin.ReplaceWith;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: Paragraph.kt */
|
|
@Metadata(d1 = {"\u0000`\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u0007\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a7\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00072\b\b\u0002\u0010\b\u001a\u00020\u00012\b\b\u0002\u0010\t\u001a\u00020\nø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u000b\u0010\f\u001a,\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\b\u001a\u00020\u00012\b\b\u0002\u0010\t\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\u000eH\u0007\u001a{\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u00162\u0014\b\u0002\u0010\u0017\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001a0\u00190\u00182\u0014\b\u0002\u0010\u001b\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001c0\u00190\u00182\b\b\u0002\u0010\b\u001a\u00020\u00012\b\b\u0002\u0010\t\u001a\u00020\nø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u001d\u0010\u001e\u001ap\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\r\u001a\u00020\u000e2\u0006\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u00162\u0014\b\u0002\u0010\u0017\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001a0\u00190\u00182\u0014\b\u0002\u0010\u001b\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001c0\u00190\u00182\b\b\u0002\u0010\b\u001a\u00020\u00012\b\b\u0002\u0010\t\u001a\u00020\nH\u0007\u001ap\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u00122\u0014\b\u0002\u0010\u0017\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001a0\u00190\u00182\u0014\b\u0002\u0010\u001b\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001c0\u00190\u00182\b\b\u0002\u0010\b\u001a\u00020\u00012\b\b\u0002\u0010\t\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\u000e2\u0006\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u001f\u001a\u00020 H\u0007\u001a\f\u0010!\u001a\u00020\u0001*\u00020\u000eH\u0000\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0080T¢\u0006\u0002\n\u0000\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006\""}, d2 = {"DefaultMaxLines", "", "Paragraph", "Landroidx/compose/ui/text/Paragraph;", "paragraphIntrinsics", "Landroidx/compose/ui/text/ParagraphIntrinsics;", "constraints", "Landroidx/compose/ui/unit/Constraints;", "maxLines", "ellipsis", "", "Paragraph-_EkL_-Y", "(Landroidx/compose/ui/text/ParagraphIntrinsics;JIZ)Landroidx/compose/ui/text/Paragraph;", ViewHierarchyNode.JsonKeys.WIDTH, "", "text", "", "style", "Landroidx/compose/ui/text/TextStyle;", "density", "Landroidx/compose/ui/unit/Density;", "fontFamilyResolver", "Landroidx/compose/ui/text/font/FontFamily$Resolver;", "spanStyles", "", "Landroidx/compose/ui/text/AnnotatedString$Range;", "Landroidx/compose/ui/text/SpanStyle;", "placeholders", "Landroidx/compose/ui/text/Placeholder;", "Paragraph-UdtVg6A", "(Ljava/lang/String;Landroidx/compose/ui/text/TextStyle;JLandroidx/compose/ui/unit/Density;Landroidx/compose/ui/text/font/FontFamily$Resolver;Ljava/util/List;Ljava/util/List;IZ)Landroidx/compose/ui/text/Paragraph;", "resourceLoader", "Landroidx/compose/ui/text/font/Font$ResourceLoader;", "ceilToInt", "ui-text_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class ParagraphKt {
|
|
public static final int DefaultMaxLines = Integer.MAX_VALUE;
|
|
|
|
@Deprecated(message = "Font.ResourceLoader is deprecated, instead pass FontFamily.Resolver", replaceWith = @ReplaceWith(expression = "Paragraph(text, style, spanStyles, placeholders, maxLines, ellipsis, width, density, fontFamilyResolver)", imports = {}))
|
|
public static final Paragraph Paragraph(String text, TextStyle style, List<AnnotatedString.Range<SpanStyle>> spanStyles, List<AnnotatedString.Range<Placeholder>> placeholders, int i, boolean z, float f, Density density, Font.ResourceLoader resourceLoader) {
|
|
Intrinsics.checkNotNullParameter(text, "text");
|
|
Intrinsics.checkNotNullParameter(style, "style");
|
|
Intrinsics.checkNotNullParameter(spanStyles, "spanStyles");
|
|
Intrinsics.checkNotNullParameter(placeholders, "placeholders");
|
|
Intrinsics.checkNotNullParameter(density, "density");
|
|
Intrinsics.checkNotNullParameter(resourceLoader, "resourceLoader");
|
|
return androidx.compose.ui.text.platform.AndroidParagraph_androidKt.ActualParagraph(text, style, spanStyles, placeholders, i, z, f, density, resourceLoader);
|
|
}
|
|
|
|
@Deprecated(message = "Paragraph that takes maximum allowed width is deprecated, pass constraints instead.", replaceWith = @ReplaceWith(expression = "Paragraph(text, style, Constraints(maxWidth = ceil(width).toInt()), density, fontFamilyResolver, spanStyles, placeholders, maxLines, ellipsis)", imports = {"kotlin.math.ceil", "androidx.compose.ui.unit.Constraints"}))
|
|
public static final Paragraph Paragraph(String text, TextStyle style, float f, Density density, FontFamily.Resolver fontFamilyResolver, List<AnnotatedString.Range<SpanStyle>> spanStyles, List<AnnotatedString.Range<Placeholder>> placeholders, int i, boolean z) {
|
|
Intrinsics.checkNotNullParameter(text, "text");
|
|
Intrinsics.checkNotNullParameter(style, "style");
|
|
Intrinsics.checkNotNullParameter(density, "density");
|
|
Intrinsics.checkNotNullParameter(fontFamilyResolver, "fontFamilyResolver");
|
|
Intrinsics.checkNotNullParameter(spanStyles, "spanStyles");
|
|
Intrinsics.checkNotNullParameter(placeholders, "placeholders");
|
|
return androidx.compose.ui.text.platform.AndroidParagraph_androidKt.m4645ActualParagraphO3s9Psw(text, style, spanStyles, placeholders, i, z, ConstraintsKt.Constraints$default(0, ceilToInt(f), 0, 0, 13, null), density, fontFamilyResolver);
|
|
}
|
|
|
|
/* renamed from: Paragraph-UdtVg6A, reason: not valid java name */
|
|
public static final Paragraph m4312ParagraphUdtVg6A(String text, TextStyle style, long j, Density density, FontFamily.Resolver fontFamilyResolver, List<AnnotatedString.Range<SpanStyle>> spanStyles, List<AnnotatedString.Range<Placeholder>> placeholders, int i, boolean z) {
|
|
Intrinsics.checkNotNullParameter(text, "text");
|
|
Intrinsics.checkNotNullParameter(style, "style");
|
|
Intrinsics.checkNotNullParameter(density, "density");
|
|
Intrinsics.checkNotNullParameter(fontFamilyResolver, "fontFamilyResolver");
|
|
Intrinsics.checkNotNullParameter(spanStyles, "spanStyles");
|
|
Intrinsics.checkNotNullParameter(placeholders, "placeholders");
|
|
return androidx.compose.ui.text.platform.AndroidParagraph_androidKt.m4645ActualParagraphO3s9Psw(text, style, spanStyles, placeholders, i, z, j, density, fontFamilyResolver);
|
|
}
|
|
|
|
public static /* synthetic */ Paragraph Paragraph$default(ParagraphIntrinsics paragraphIntrinsics, int i, boolean z, float f, int i2, Object obj) {
|
|
if ((i2 & 2) != 0) {
|
|
i = Integer.MAX_VALUE;
|
|
}
|
|
if ((i2 & 4) != 0) {
|
|
z = false;
|
|
}
|
|
return Paragraph(paragraphIntrinsics, i, z, f);
|
|
}
|
|
|
|
@Deprecated(message = "Paragraph that takes maximum allowed width is deprecated, pass constraints instead.", replaceWith = @ReplaceWith(expression = "Paragraph(paragraphIntrinsics, Constraints(maxWidth = ceil(width).toInt()), maxLines, ellipsis)", imports = {"kotlin.math.ceil", "androidx.compose.ui.unit.Constraints"}))
|
|
public static final Paragraph Paragraph(ParagraphIntrinsics paragraphIntrinsics, int i, boolean z, float f) {
|
|
Intrinsics.checkNotNullParameter(paragraphIntrinsics, "paragraphIntrinsics");
|
|
return androidx.compose.ui.text.platform.AndroidParagraph_androidKt.m4644ActualParagraphhBUhpc(paragraphIntrinsics, i, z, ConstraintsKt.Constraints$default(0, ceilToInt(f), 0, 0, 13, null));
|
|
}
|
|
|
|
/* renamed from: Paragraph-_EkL_-Y$default, reason: not valid java name */
|
|
public static /* synthetic */ Paragraph m4315Paragraph_EkL_Y$default(ParagraphIntrinsics paragraphIntrinsics, long j, int i, boolean z, int i2, Object obj) {
|
|
if ((i2 & 4) != 0) {
|
|
i = Integer.MAX_VALUE;
|
|
}
|
|
if ((i2 & 8) != 0) {
|
|
z = false;
|
|
}
|
|
return m4314Paragraph_EkL_Y(paragraphIntrinsics, j, i, z);
|
|
}
|
|
|
|
/* renamed from: Paragraph-_EkL_-Y, reason: not valid java name */
|
|
public static final Paragraph m4314Paragraph_EkL_Y(ParagraphIntrinsics paragraphIntrinsics, long j, int i, boolean z) {
|
|
Intrinsics.checkNotNullParameter(paragraphIntrinsics, "paragraphIntrinsics");
|
|
return androidx.compose.ui.text.platform.AndroidParagraph_androidKt.m4644ActualParagraphhBUhpc(paragraphIntrinsics, i, z, j);
|
|
}
|
|
|
|
public static final int ceilToInt(float f) {
|
|
return (int) Math.ceil(f);
|
|
}
|
|
}
|