Rabbit-R1/switch port/java/sources/androidx/compose/ui/draw/DrawWithContentModifier.java
2024-05-21 17:08:36 -04:00

36 lines
2.3 KiB
Java

package androidx.compose.ui.draw;
import androidx.compose.ui.Modifier;
import androidx.compose.ui.graphics.drawscope.ContentDrawScope;
import androidx.compose.ui.node.DrawModifierNode;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: DrawModifier.kt */
@Metadata(d1 = {"\u0000\"\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\u0006\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u001e\u0012\u0017\u0010\u0003\u001a\u0013\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u0004¢\u0006\u0002\b\u0007¢\u0006\u0002\u0010\bJ\f\u0010\f\u001a\u00020\u0006*\u00020\u0005H\u0016R+\u0010\u0003\u001a\u0013\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u0004¢\u0006\u0002\b\u0007X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\t\u0010\n\"\u0004\b\u000b\u0010\\u0006\r"}, d2 = {"Landroidx/compose/ui/draw/DrawWithContentModifier;", "Landroidx/compose/ui/Modifier$Node;", "Landroidx/compose/ui/node/DrawModifierNode;", "onDraw", "Lkotlin/Function1;", "Landroidx/compose/ui/graphics/drawscope/ContentDrawScope;", "", "Lkotlin/ExtensionFunctionType;", "(Lkotlin/jvm/functions/Function1;)V", "getOnDraw", "()Lkotlin/jvm/functions/Function1;", "setOnDraw", "draw", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
final class DrawWithContentModifier extends Modifier.Node implements DrawModifierNode {
private Function1<? super ContentDrawScope, Unit> onDraw;
public final Function1<ContentDrawScope, Unit> getOnDraw() {
return this.onDraw;
}
public final void setOnDraw(Function1<? super ContentDrawScope, Unit> function1) {
Intrinsics.checkNotNullParameter(function1, "<set-?>");
this.onDraw = function1;
}
public DrawWithContentModifier(Function1<? super ContentDrawScope, Unit> onDraw) {
Intrinsics.checkNotNullParameter(onDraw, "onDraw");
this.onDraw = onDraw;
}
@Override // androidx.compose.ui.node.DrawModifierNode
public void draw(ContentDrawScope contentDrawScope) {
Intrinsics.checkNotNullParameter(contentDrawScope, "<this>");
this.onDraw.invoke(contentDrawScope);
}
}