Initial commit
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
package com.google.android.material.circularreveal;
|
||||
|
||||
import android.animation.TypeEvaluator;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.Property;
|
||||
import com.google.android.material.circularreveal.CircularRevealHelper;
|
||||
import com.google.android.material.math.MathUtils;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public interface CircularRevealWidget extends CircularRevealHelper.Delegate {
|
||||
|
||||
public static class CircularRevealEvaluator implements TypeEvaluator<RevealInfo> {
|
||||
public static final TypeEvaluator<RevealInfo> b = new CircularRevealEvaluator();
|
||||
private final RevealInfo a = new RevealInfo();
|
||||
|
||||
@Override // android.animation.TypeEvaluator
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public RevealInfo evaluate(float f, RevealInfo revealInfo, RevealInfo revealInfo2) {
|
||||
this.a.a(MathUtils.a(revealInfo.a, revealInfo2.a, f), MathUtils.a(revealInfo.b, revealInfo2.b, f), MathUtils.a(revealInfo.c, revealInfo2.c, f));
|
||||
return this.a;
|
||||
}
|
||||
}
|
||||
|
||||
public static class CircularRevealProperty extends Property<CircularRevealWidget, RevealInfo> {
|
||||
public static final Property<CircularRevealWidget, RevealInfo> a = new CircularRevealProperty("circularReveal");
|
||||
|
||||
private CircularRevealProperty(String str) {
|
||||
super(RevealInfo.class, str);
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public RevealInfo get(CircularRevealWidget circularRevealWidget) {
|
||||
return circularRevealWidget.getRevealInfo();
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public void set(CircularRevealWidget circularRevealWidget, RevealInfo revealInfo) {
|
||||
circularRevealWidget.setRevealInfo(revealInfo);
|
||||
}
|
||||
}
|
||||
|
||||
public static class CircularRevealScrimColorProperty extends Property<CircularRevealWidget, Integer> {
|
||||
public static final Property<CircularRevealWidget, Integer> a = new CircularRevealScrimColorProperty("circularRevealScrimColor");
|
||||
|
||||
private CircularRevealScrimColorProperty(String str) {
|
||||
super(Integer.class, str);
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public Integer get(CircularRevealWidget circularRevealWidget) {
|
||||
return Integer.valueOf(circularRevealWidget.getCircularRevealScrimColor());
|
||||
}
|
||||
|
||||
@Override // android.util.Property
|
||||
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
||||
public void set(CircularRevealWidget circularRevealWidget, Integer num) {
|
||||
circularRevealWidget.setCircularRevealScrimColor(num.intValue());
|
||||
}
|
||||
}
|
||||
|
||||
public static class RevealInfo {
|
||||
public float a;
|
||||
public float b;
|
||||
public float c;
|
||||
|
||||
public void a(float f, float f2, float f3) {
|
||||
this.a = f;
|
||||
this.b = f2;
|
||||
this.c = f3;
|
||||
}
|
||||
|
||||
private RevealInfo() {
|
||||
}
|
||||
|
||||
public RevealInfo(float f, float f2, float f3) {
|
||||
this.a = f;
|
||||
this.b = f2;
|
||||
this.c = f3;
|
||||
}
|
||||
}
|
||||
|
||||
void a();
|
||||
|
||||
void b();
|
||||
|
||||
int getCircularRevealScrimColor();
|
||||
|
||||
RevealInfo getRevealInfo();
|
||||
|
||||
void setCircularRevealOverlayDrawable(Drawable drawable);
|
||||
|
||||
void setCircularRevealScrimColor(int i);
|
||||
|
||||
void setRevealInfo(RevealInfo revealInfo);
|
||||
}
|
||||
Reference in New Issue
Block a user