1// Signature format: 4.0
2package androidx.compose.ui.unit {
3
4  public final class AndroidDensity_androidKt {
5    method public static androidx.compose.ui.unit.Density Density(android.content.Context context);
6  }
7
8  @androidx.compose.runtime.Immutable public final inline class Constraints {
9    ctor public Constraints();
10  }
11
12  public static final class Constraints.Companion {
13    method @androidx.compose.runtime.Stable public long fixed(int width, int height);
14    method @androidx.compose.runtime.Stable public long fixedHeight(int height);
15    method @androidx.compose.runtime.Stable public long fixedWidth(int width);
16  }
17
18  public final class ConstraintsKt {
19    method @androidx.compose.runtime.Stable public static long Constraints(optional int minWidth, optional int maxWidth, optional int minHeight, optional int maxHeight);
20    method public static long constrain(long, long otherConstraints);
21    method @androidx.compose.runtime.Stable public static long constrain(long, long size);
22    method @androidx.compose.runtime.Stable public static int constrainHeight(long, int height);
23    method @androidx.compose.runtime.Stable public static int constrainWidth(long, int width);
24    method @androidx.compose.runtime.Stable public static boolean isSatisfiedBy(long, long size);
25    method @androidx.compose.runtime.Stable public static long offset(long, optional int horizontal, optional int vertical);
26  }
27
28  @androidx.compose.runtime.Immutable public interface Density {
29    method public float getDensity();
30    method public float getFontScale();
31    method @androidx.compose.runtime.Stable public default int roundToPx(float);
32    method @androidx.compose.runtime.Stable public default int roundToPx(long);
33    method @androidx.compose.runtime.Stable public default float toDp(float);
34    method @androidx.compose.runtime.Stable public default float toDp(int);
35    method @androidx.compose.runtime.Stable public default float toDp(long);
36    method @androidx.compose.runtime.Stable public default float toPx(float);
37    method @androidx.compose.runtime.Stable public default float toPx(long);
38    method @androidx.compose.runtime.Stable public default androidx.compose.ui.geometry.Rect toRect(androidx.compose.ui.unit.DpRect);
39    method @androidx.compose.runtime.Stable public default long toSp(float);
40    method @androidx.compose.runtime.Stable public default long toSp(float);
41    method @androidx.compose.runtime.Stable public default long toSp(int);
42    property public abstract float density;
43    property public abstract float fontScale;
44  }
45
46  public final class DensityKt {
47    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.Density Density(float density, optional float fontScale);
48  }
49
50  @androidx.compose.runtime.Immutable public final inline class Dp implements java.lang.Comparable<androidx.compose.ui.unit.Dp> {
51    ctor public Dp();
52    method @androidx.compose.runtime.Stable public operator int compareTo(float other);
53    method public float getValue();
54    property public final float value;
55  }
56
57  public static final class Dp.Companion {
58    method public float getHairline();
59    method public float getInfinity();
60    method public float getUnspecified();
61    property public final float Hairline;
62    property public final float Infinity;
63    property public final float Unspecified;
64  }
65
66  public final class DpKt {
67    method @androidx.compose.runtime.Stable public static long DpOffset(float x, float y);
68    method @androidx.compose.runtime.Stable public static inline float coerceAtLeast(float, float minimumValue);
69    method @androidx.compose.runtime.Stable public static inline float coerceAtMost(float, float maximumValue);
70    method @androidx.compose.runtime.Stable public static inline float coerceIn(float, float minimumValue, float maximumValue);
71    method public static inline float getDp(double);
72    method public static inline float getDp(float);
73    method public static inline float getDp(int);
74    method public static inline float getHeight(androidx.compose.ui.unit.DpRect);
75    method public static inline float getWidth(androidx.compose.ui.unit.DpRect);
76    method public static inline boolean isFinite(float);
77    method public static inline boolean isSpecified(float);
78    method public static inline boolean isUnspecified(float);
79    method @androidx.compose.runtime.Stable public static float lerp(float start, float stop, float fraction);
80    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
81    method @androidx.compose.runtime.Stable public static inline float max(float a, float b);
82    method @androidx.compose.runtime.Stable public static inline float min(float a, float b);
83    method public static inline float takeOrElse(float, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.Dp> block);
84    method @androidx.compose.runtime.Stable public static inline operator float times(double, float other);
85    method @androidx.compose.runtime.Stable public static inline operator float times(float, float other);
86    method @androidx.compose.runtime.Stable public static inline operator float times(int, float other);
87  }
88
89  @androidx.compose.runtime.Immutable public final inline class DpOffset {
90    ctor public DpOffset();
91  }
92
93  public static final class DpOffset.Companion {
94    method public long getZero();
95    property public final long Zero;
96  }
97
98  @androidx.compose.runtime.Immutable public final class DpRect {
99    ctor public DpRect(@androidx.compose.runtime.Stable float left, @androidx.compose.runtime.Stable float top, @androidx.compose.runtime.Stable float right, @androidx.compose.runtime.Stable float bottom);
100    method public float component1-D9Ej5fM();
101    method public float component2-D9Ej5fM();
102    method public float component3-D9Ej5fM();
103    method public float component4-D9Ej5fM();
104    method public androidx.compose.ui.unit.DpRect copy-a9UjIt4(float left, float top, float right, float bottom);
105    method public float getBottom();
106    method public float getLeft();
107    method public float getRight();
108    method public float getTop();
109    property public final float bottom;
110    property public final float left;
111    property public final float right;
112    property public final float top;
113    field public static final androidx.compose.ui.unit.DpRect.Companion Companion;
114  }
115
116  public static final class DpRect.Companion {
117  }
118
119  @androidx.compose.runtime.Immutable public final inline class IntOffset {
120    ctor public IntOffset();
121  }
122
123  public static final class IntOffset.Companion {
124    method public long getZero();
125    property public final long Zero;
126  }
127
128  public final class IntOffsetKt {
129    method @androidx.compose.runtime.Stable public static long IntOffset(int x, int y);
130    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
131    method @androidx.compose.runtime.Stable public static operator long minus(long, long offset);
132    method @androidx.compose.runtime.Stable public static operator long minus(long, long offset);
133    method @androidx.compose.runtime.Stable public static operator long plus(long, long offset);
134    method @androidx.compose.runtime.Stable public static operator long plus(long, long offset);
135    method @androidx.compose.runtime.Stable public static inline long round(long);
136    method @androidx.compose.runtime.Stable public static inline long toOffset(long);
137  }
138
139  @androidx.compose.runtime.Immutable public final class IntRect {
140    ctor public IntRect(@androidx.compose.runtime.Stable int left, @androidx.compose.runtime.Stable int top, @androidx.compose.runtime.Stable int right, @androidx.compose.runtime.Stable int bottom);
141    method public int component1();
142    method public int component2();
143    method public int component3();
144    method public int component4();
145    method public boolean contains(long offset);
146    method public androidx.compose.ui.unit.IntRect copy(int left, int top, int right, int bottom);
147    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect deflate(int delta);
148    method public int getBottom();
149    method public long getBottomCenter();
150    method public long getBottomLeft();
151    method public long getBottomRight();
152    method public long getCenter();
153    method public long getCenterLeft();
154    method public long getCenterRight();
155    method public int getHeight();
156    method public int getLeft();
157    method public int getMaxDimension();
158    method public int getMinDimension();
159    method public int getRight();
160    method public long getSize();
161    method public int getTop();
162    method public long getTopCenter();
163    method public long getTopLeft();
164    method public long getTopRight();
165    method public int getWidth();
166    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect inflate(int delta);
167    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect intersect(androidx.compose.ui.unit.IntRect other);
168    method public boolean isEmpty();
169    method public boolean overlaps(androidx.compose.ui.unit.IntRect other);
170    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect translate(int translateX, int translateY);
171    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect translate(long offset);
172    property public final int bottom;
173    property public final long bottomCenter;
174    property public final long bottomLeft;
175    property public final long bottomRight;
176    property public final long center;
177    property public final long centerLeft;
178    property public final long centerRight;
179    property public final int height;
180    property public final boolean isEmpty;
181    property public final int left;
182    property public final int maxDimension;
183    property public final int minDimension;
184    property public final int right;
185    property public final long size;
186    property public final int top;
187    property public final long topCenter;
188    property public final long topLeft;
189    property public final long topRight;
190    property public final int width;
191    field public static final androidx.compose.ui.unit.IntRect.Companion Companion;
192  }
193
194  public static final class IntRect.Companion {
195    method public androidx.compose.ui.unit.IntRect getZero();
196    property public final androidx.compose.ui.unit.IntRect Zero;
197  }
198
199  public final class IntRectKt {
200    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long center, int radius);
201    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long offset, long size);
202    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long topLeft, long bottomRight);
203    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect lerp(androidx.compose.ui.unit.IntRect start, androidx.compose.ui.unit.IntRect stop, float fraction);
204  }
205
206  @androidx.compose.runtime.Immutable public final inline class IntSize {
207    ctor public IntSize();
208  }
209
210  public static final class IntSize.Companion {
211    method public long getZero();
212    property public final long Zero;
213  }
214
215  public final class IntSizeKt {
216    method @androidx.compose.runtime.Stable public static long IntSize(int width, int height);
217    method public static long getCenter(long);
218    method @androidx.compose.runtime.Stable public static operator long times(int, long size);
219    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect toIntRect(long);
220    method @androidx.compose.runtime.Stable public static long toSize(long);
221  }
222
223  public enum LayoutDirection {
224    enum_constant public static final androidx.compose.ui.unit.LayoutDirection Ltr;
225    enum_constant public static final androidx.compose.ui.unit.LayoutDirection Rtl;
226  }
227
228  @androidx.compose.runtime.Immutable public final inline class TextUnit {
229    ctor public TextUnit();
230  }
231
232  public static final class TextUnit.Companion {
233    method public long getUnspecified();
234    property public final long Unspecified;
235  }
236
237  public final class TextUnitKt {
238    method @androidx.compose.runtime.ExperimentalComposeApi public static long TextUnit(float value, androidx.compose.ui.unit.TextUnitType type);
239    method public static long getEm(double);
240    method public static long getEm(float);
241    method public static long getEm(int);
242    method public static long getSp(double);
243    method public static long getSp(float);
244    method public static long getSp(int);
245    method public static inline boolean isSpecified(long);
246    method public static boolean isUnspecified(long);
247    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
248    method public static inline long takeOrElse(long, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.TextUnit> block);
249    method @androidx.compose.runtime.Stable public static inline operator long times(double, long other);
250    method @androidx.compose.runtime.Stable public static inline operator long times(float, long other);
251    method @androidx.compose.runtime.Stable public static inline operator long times(int, long other);
252  }
253
254  public enum TextUnitType {
255    enum_constant public static final androidx.compose.ui.unit.TextUnitType Em;
256    enum_constant public static final androidx.compose.ui.unit.TextUnitType Sp;
257    enum_constant public static final androidx.compose.ui.unit.TextUnitType Unspecified;
258  }
259
260  @androidx.compose.runtime.Immutable public final inline class Velocity {
261    ctor public Velocity();
262  }
263
264  public static final class Velocity.Companion {
265    method public long getZero();
266    property public final long Zero;
267  }
268
269  public final class VelocityKt {
270    method @androidx.compose.runtime.Stable public static long Velocity(float x, float y);
271  }
272
273}
274
275