mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 03:17:17 +01:00
49 lines
2.8 KiB
Java
49 lines
2.8 KiB
Java
package androidx.compose.ui.semantics;
|
|
|
|
import android.graphics.Region;
|
|
import androidx.compose.ui.graphics.RectHelper_androidKt;
|
|
import androidx.compose.ui.unit.IntRect;
|
|
import kotlin.Metadata;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0004\b\u0002\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0010\u0010\b\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\u000bH\u0016J\u0010\u0010\u0012\u001a\u00020\u00102\u0006\u0010\u0004\u001a\u00020\u0001H\u0016J\u0010\u0010\u0013\u001a\u00020\u00102\u0006\u0010\n\u001a\u00020\u000bH\u0016R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0014\u0010\f\u001a\u00020\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u0014\u0010\u000f\u001a\u00020\u00108VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u0011¨\u0006\u0014"}, d2 = {"Landroidx/compose/ui/semantics/SemanticRegionImpl;", "Landroidx/compose/ui/semantics/SemanticsRegion;", "<init>", "()V", "region", "Landroid/graphics/Region;", "getRegion", "()Landroid/graphics/Region;", "set", "", "rect", "Landroidx/compose/ui/unit/IntRect;", "bounds", "getBounds", "()Landroidx/compose/ui/unit/IntRect;", "isEmpty", "", "()Z", "intersect", "difference", "ui_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
final class SemanticRegionImpl implements SemanticsRegion {
|
|
|
|
@NotNull
|
|
private final Region region = new Region();
|
|
|
|
@Override // androidx.compose.ui.semantics.SemanticsRegion
|
|
public boolean difference(@NotNull IntRect rect) {
|
|
return this.region.op(rect.getLeft(), rect.getTop(), rect.getRight(), rect.getBottom(), Region.Op.DIFFERENCE);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.semantics.SemanticsRegion
|
|
@NotNull
|
|
public IntRect getBounds() {
|
|
return RectHelper_androidKt.toComposeIntRect(this.region.getBounds());
|
|
}
|
|
|
|
@NotNull
|
|
public final Region getRegion() {
|
|
return this.region;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.semantics.SemanticsRegion
|
|
public boolean intersect(@NotNull SemanticsRegion region) {
|
|
Region region2 = this.region;
|
|
region.getClass();
|
|
return region2.op(((SemanticRegionImpl) region).region, Region.Op.INTERSECT);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.semantics.SemanticsRegion
|
|
public boolean isEmpty() {
|
|
return this.region.isEmpty();
|
|
}
|
|
|
|
@Override // androidx.compose.ui.semantics.SemanticsRegion
|
|
public void set(@NotNull IntRect rect) {
|
|
this.region.set(rect.getLeft(), rect.getTop(), rect.getRight(), rect.getBottom());
|
|
}
|
|
}
|