mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
38 lines
3 KiB
Java
38 lines
3 KiB
Java
|
package androidx.compose.ui.draw;
|
||
|
|
||
|
import androidx.compose.ui.Modifier;
|
||
|
import androidx.compose.ui.graphics.drawscope.ContentDrawScope;
|
||
|
import androidx.compose.ui.graphics.drawscope.DrawScope;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
|
||
|
/* compiled from: DrawModifier.kt */
|
||
|
@Metadata(d1 = {"\u00002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u001a\u001f\u0010\u0000\u001a\u00020\u00012\u0017\u0010\u0002\u001a\u0013\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00050\u0003¢\u0006\u0002\b\u0006\u001a#\u0010\u0007\u001a\u00020\b*\u00020\b2\u0017\u0010\t\u001a\u0013\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020\u000b0\u0003¢\u0006\u0002\b\u0006\u001a#\u0010\f\u001a\u00020\b*\u00020\b2\u0017\u0010\u0002\u001a\u0013\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00050\u0003¢\u0006\u0002\b\u0006\u001a#\u0010\r\u001a\u00020\b*\u00020\b2\u0017\u0010\t\u001a\u0013\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u00020\u000b0\u0003¢\u0006\u0002\b\u0006¨\u0006\u000f"}, d2 = {"CacheDrawModifierNode", "Landroidx/compose/ui/draw/CacheDrawModifierNode;", "onBuildDrawCache", "Lkotlin/Function1;", "Landroidx/compose/ui/draw/CacheDrawScope;", "Landroidx/compose/ui/draw/DrawResult;", "Lkotlin/ExtensionFunctionType;", "drawBehind", "Landroidx/compose/ui/Modifier;", "onDraw", "Landroidx/compose/ui/graphics/drawscope/DrawScope;", "", "drawWithCache", "drawWithContent", "Landroidx/compose/ui/graphics/drawscope/ContentDrawScope;", "ui_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class DrawModifierKt {
|
||
|
public static final Modifier drawBehind(Modifier modifier, Function1<? super DrawScope, Unit> onDraw) {
|
||
|
Intrinsics.checkNotNullParameter(modifier, "<this>");
|
||
|
Intrinsics.checkNotNullParameter(onDraw, "onDraw");
|
||
|
return modifier.then(new DrawBehindElement(onDraw));
|
||
|
}
|
||
|
|
||
|
public static final Modifier drawWithCache(Modifier modifier, Function1<? super CacheDrawScope, DrawResult> onBuildDrawCache) {
|
||
|
Intrinsics.checkNotNullParameter(modifier, "<this>");
|
||
|
Intrinsics.checkNotNullParameter(onBuildDrawCache, "onBuildDrawCache");
|
||
|
return modifier.then(new DrawWithCacheElement(onBuildDrawCache));
|
||
|
}
|
||
|
|
||
|
public static final CacheDrawModifierNode CacheDrawModifierNode(Function1<? super CacheDrawScope, DrawResult> onBuildDrawCache) {
|
||
|
Intrinsics.checkNotNullParameter(onBuildDrawCache, "onBuildDrawCache");
|
||
|
return new CacheDrawModifierNodeImpl(new CacheDrawScope(), onBuildDrawCache);
|
||
|
}
|
||
|
|
||
|
public static final Modifier drawWithContent(Modifier modifier, Function1<? super ContentDrawScope, Unit> onDraw) {
|
||
|
Intrinsics.checkNotNullParameter(modifier, "<this>");
|
||
|
Intrinsics.checkNotNullParameter(onDraw, "onDraw");
|
||
|
return modifier.then(new DrawWithContentElement(onDraw));
|
||
|
}
|
||
|
}
|