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 @kotlin.jvm.JvmInline public final value class Constraints {
9    ctor public Constraints(@kotlin.PublishedApi long value);
10    method public long copy(optional int minWidth, optional int maxWidth, optional int minHeight, optional int maxHeight);
11    method public boolean getHasBoundedHeight();
12    method public boolean getHasBoundedWidth();
13    method public boolean getHasFixedHeight();
14    method public boolean getHasFixedWidth();
15    method public int getMaxHeight();
16    method public int getMaxWidth();
17    method public int getMinHeight();
18    method public int getMinWidth();
19    method public boolean isZero();
20    property public final boolean hasBoundedHeight;
21    property public final boolean hasBoundedWidth;
22    property public final boolean hasFixedHeight;
23    property public final boolean hasFixedWidth;
24    property public final boolean isZero;
25    property public final int maxHeight;
26    property public final int maxWidth;
27    property public final int minHeight;
28    property public final int minWidth;
29    field public static final androidx.compose.ui.unit.Constraints.Companion Companion;
30    field public static final int Infinity = 2147483647; // 0x7fffffff
31  }
32
33  public static final class Constraints.Companion {
34    method @androidx.compose.runtime.Stable public long fixed(int width, int height);
35    method @androidx.compose.runtime.Stable public long fixedHeight(int height);
36    method @androidx.compose.runtime.Stable public long fixedWidth(int width);
37  }
38
39  public final class ConstraintsKt {
40    method @androidx.compose.runtime.Stable public static long Constraints(optional int minWidth, optional int maxWidth, optional int minHeight, optional int maxHeight);
41    method public static long constrain(long, long otherConstraints);
42    method @androidx.compose.runtime.Stable public static long constrain(long, long size);
43    method @androidx.compose.runtime.Stable public static int constrainHeight(long, int height);
44    method @androidx.compose.runtime.Stable public static int constrainWidth(long, int width);
45    method @androidx.compose.runtime.Stable public static boolean isSatisfiedBy(long, long size);
46    method @androidx.compose.runtime.Stable public static long offset(long, optional int horizontal, optional int vertical);
47  }
48
49  @androidx.compose.runtime.Immutable public interface Density {
50    method public float getDensity();
51    method public float getFontScale();
52    method @androidx.compose.runtime.Stable public default int roundToPx(float);
53    method @androidx.compose.runtime.Stable public default int roundToPx(long);
54    method @androidx.compose.runtime.Stable public default float toDp(float);
55    method @androidx.compose.runtime.Stable public default float toDp(int);
56    method @androidx.compose.runtime.Stable public default float toDp(long);
57    method @androidx.compose.runtime.Stable public default long toDpSize(long);
58    method @androidx.compose.runtime.Stable public default float toPx(float);
59    method @androidx.compose.runtime.Stable public default float toPx(long);
60    method @androidx.compose.runtime.Stable public default androidx.compose.ui.geometry.Rect toRect(androidx.compose.ui.unit.DpRect);
61    method @androidx.compose.runtime.Stable public default long toSize(long);
62    method @androidx.compose.runtime.Stable public default long toSp(float);
63    method @androidx.compose.runtime.Stable public default long toSp(float);
64    method @androidx.compose.runtime.Stable public default long toSp(int);
65    property public abstract float density;
66    property public abstract float fontScale;
67  }
68
69  public final class DensityKt {
70    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.Density Density(float density, optional float fontScale);
71  }
72
73  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class Dp implements java.lang.Comparable<androidx.compose.ui.unit.Dp> {
74    ctor public Dp(float value);
75    method @androidx.compose.runtime.Stable public operator int compareTo(float other);
76    method @androidx.compose.runtime.Stable public inline operator float div(float other);
77    method @androidx.compose.runtime.Stable public inline operator float div(float other);
78    method @androidx.compose.runtime.Stable public inline operator float div(int other);
79    method public float getValue();
80    method @androidx.compose.runtime.Stable public inline operator float minus(float other);
81    method @androidx.compose.runtime.Stable public inline operator float plus(float other);
82    method @androidx.compose.runtime.Stable public inline operator float times(float other);
83    method @androidx.compose.runtime.Stable public inline operator float times(int other);
84    method @androidx.compose.runtime.Stable public inline operator float unaryMinus();
85    property public final float value;
86    field public static final androidx.compose.ui.unit.Dp.Companion Companion;
87  }
88
89  public static final class Dp.Companion {
90    method public float getHairline();
91    method public float getInfinity();
92    method public float getUnspecified();
93    property public final float Hairline;
94    property public final float Infinity;
95    property public final float Unspecified;
96  }
97
98  public final class DpKt {
99    method @androidx.compose.runtime.Stable public static long DpOffset(float x, float y);
100    method @androidx.compose.runtime.Stable public static long DpSize(float width, float height);
101    method @androidx.compose.runtime.Stable public static inline float coerceAtLeast(float, float minimumValue);
102    method @androidx.compose.runtime.Stable public static inline float coerceAtMost(float, float maximumValue);
103    method @androidx.compose.runtime.Stable public static inline float coerceIn(float, float minimumValue, float maximumValue);
104    method public static long getCenter(long);
105    method public static inline float getDp(double);
106    method public static inline float getDp(float);
107    method public static inline float getDp(int);
108    method public static inline float getHeight(androidx.compose.ui.unit.DpRect);
109    method public static inline long getSize(androidx.compose.ui.unit.DpRect);
110    method public static inline float getWidth(androidx.compose.ui.unit.DpRect);
111    method public static inline boolean isFinite(float);
112    method public static inline boolean isSpecified(float);
113    method public static inline boolean isSpecified(long);
114    method public static inline boolean isSpecified(long);
115    method public static inline boolean isUnspecified(float);
116    method public static inline boolean isUnspecified(long);
117    method public static inline boolean isUnspecified(long);
118    method @androidx.compose.runtime.Stable public static float lerp(float start, float stop, float fraction);
119    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
120    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
121    method @androidx.compose.runtime.Stable public static inline float max(float a, float b);
122    method @androidx.compose.runtime.Stable public static inline float min(float a, float b);
123    method public static inline float takeOrElse(float, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.Dp> block);
124    method public static inline long takeOrElse(long, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.DpOffset> block);
125    method public static inline long takeOrElse(long, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.DpSize> block);
126    method @androidx.compose.runtime.Stable public static inline operator float times(double, float other);
127    method @androidx.compose.runtime.Stable public static inline operator float times(float, float other);
128    method @androidx.compose.runtime.Stable public static inline operator long times(float, long size);
129    method @androidx.compose.runtime.Stable public static inline operator float times(int, float other);
130    method @androidx.compose.runtime.Stable public static inline operator long times(int, long size);
131  }
132
133  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class DpOffset {
134    method public long copy(optional float x, optional float y);
135    method public float getX();
136    method public float getY();
137    method @androidx.compose.runtime.Stable public inline operator long minus(long other);
138    method @androidx.compose.runtime.Stable public inline operator long plus(long other);
139    property public final float x;
140    property public final float y;
141    field public static final androidx.compose.ui.unit.DpOffset.Companion Companion;
142  }
143
144  public static final class DpOffset.Companion {
145    method public long getUnspecified();
146    method public long getZero();
147    property public final long Unspecified;
148    property public final long Zero;
149  }
150
151  @androidx.compose.runtime.Immutable public final class DpRect {
152    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);
153    ctor public DpRect(long origin, long size);
154    method public float component1-D9Ej5fM();
155    method public float component2-D9Ej5fM();
156    method public float component3-D9Ej5fM();
157    method public float component4-D9Ej5fM();
158    method public androidx.compose.ui.unit.DpRect copy-a9UjIt4(float left, float top, float right, float bottom);
159    method public float getBottom();
160    method public float getLeft();
161    method public float getRight();
162    method public float getTop();
163    property public final float bottom;
164    property public final float left;
165    property public final float right;
166    property public final float top;
167    field public static final androidx.compose.ui.unit.DpRect.Companion Companion;
168  }
169
170  public static final class DpRect.Companion {
171  }
172
173  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class DpSize {
174    method @androidx.compose.runtime.Stable public inline operator float component1();
175    method @androidx.compose.runtime.Stable public inline operator float component2();
176    method public long copy(optional float width, optional float height);
177    method @androidx.compose.runtime.Stable public operator long div(float other);
178    method @androidx.compose.runtime.Stable public operator long div(int other);
179    method public float getHeight();
180    method public float getWidth();
181    method @androidx.compose.runtime.Stable public inline operator long minus(long other);
182    method @androidx.compose.runtime.Stable public inline operator long plus(long other);
183    method @androidx.compose.runtime.Stable public operator long times(float other);
184    method @androidx.compose.runtime.Stable public operator long times(int other);
185    property public final float height;
186    property public final float width;
187    field public static final androidx.compose.ui.unit.DpSize.Companion Companion;
188  }
189
190  public static final class DpSize.Companion {
191    method public long getUnspecified();
192    method public long getZero();
193    property public final long Unspecified;
194    property public final long Zero;
195  }
196
197  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class IntOffset {
198    method @androidx.compose.runtime.Stable public operator int component1();
199    method @androidx.compose.runtime.Stable public operator int component2();
200    method public long copy(optional int x, optional int y);
201    method @androidx.compose.runtime.Stable public operator long div(float operand);
202    method public int getX();
203    method public int getY();
204    method @androidx.compose.runtime.Stable public inline operator long minus(long other);
205    method @androidx.compose.runtime.Stable public inline operator long plus(long other);
206    method @androidx.compose.runtime.Stable public operator long rem(int operand);
207    method @androidx.compose.runtime.Stable public operator long times(float operand);
208    method @androidx.compose.runtime.Stable public inline operator long unaryMinus();
209    property public final int x;
210    property public final int y;
211    field public static final androidx.compose.ui.unit.IntOffset.Companion Companion;
212  }
213
214  public static final class IntOffset.Companion {
215    method public long getZero();
216    property public final long Zero;
217  }
218
219  public final class IntOffsetKt {
220    method @androidx.compose.runtime.Stable public static long IntOffset(int x, int y);
221    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
222    method @androidx.compose.runtime.Stable public static operator long minus(long, long offset);
223    method @androidx.compose.runtime.Stable public static operator long minus(long, long offset);
224    method @androidx.compose.runtime.Stable public static operator long plus(long, long offset);
225    method @androidx.compose.runtime.Stable public static operator long plus(long, long offset);
226    method @androidx.compose.runtime.Stable public static inline long round(long);
227    method @androidx.compose.runtime.Stable public static inline long toOffset(long);
228  }
229
230  @androidx.compose.runtime.Immutable public final class IntRect {
231    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);
232    method public int component1();
233    method public int component2();
234    method public int component3();
235    method public int component4();
236    method public boolean contains(long offset);
237    method public androidx.compose.ui.unit.IntRect copy(int left, int top, int right, int bottom);
238    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect deflate(int delta);
239    method public int getBottom();
240    method public long getBottomCenter();
241    method public long getBottomLeft();
242    method public long getBottomRight();
243    method public long getCenter();
244    method public long getCenterLeft();
245    method public long getCenterRight();
246    method public int getHeight();
247    method public int getLeft();
248    method public int getMaxDimension();
249    method public int getMinDimension();
250    method public int getRight();
251    method public long getSize();
252    method public int getTop();
253    method public long getTopCenter();
254    method public long getTopLeft();
255    method public long getTopRight();
256    method public int getWidth();
257    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect inflate(int delta);
258    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect intersect(androidx.compose.ui.unit.IntRect other);
259    method public boolean isEmpty();
260    method public boolean overlaps(androidx.compose.ui.unit.IntRect other);
261    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect translate(int translateX, int translateY);
262    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect translate(long offset);
263    property public final int bottom;
264    property public final long bottomCenter;
265    property public final long bottomLeft;
266    property public final long bottomRight;
267    property public final long center;
268    property public final long centerLeft;
269    property public final long centerRight;
270    property public final int height;
271    property public final boolean isEmpty;
272    property public final int left;
273    property public final int maxDimension;
274    property public final int minDimension;
275    property public final int right;
276    property public final long size;
277    property public final int top;
278    property public final long topCenter;
279    property public final long topLeft;
280    property public final long topRight;
281    property public final int width;
282    field public static final androidx.compose.ui.unit.IntRect.Companion Companion;
283  }
284
285  public static final class IntRect.Companion {
286    method public androidx.compose.ui.unit.IntRect getZero();
287    property public final androidx.compose.ui.unit.IntRect Zero;
288  }
289
290  public final class IntRectKt {
291    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long center, int radius);
292    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long offset, long size);
293    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long topLeft, long bottomRight);
294    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);
295  }
296
297  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class IntSize {
298    method @androidx.compose.runtime.Stable public inline operator int component1();
299    method @androidx.compose.runtime.Stable public inline operator int component2();
300    method @androidx.compose.runtime.Stable public operator long div(int other);
301    method public int getHeight();
302    method public int getWidth();
303    method @androidx.compose.runtime.Stable public operator long times(int other);
304    property public final int height;
305    property public final int width;
306    field public static final androidx.compose.ui.unit.IntSize.Companion Companion;
307  }
308
309  public static final class IntSize.Companion {
310    method public long getZero();
311    property public final long Zero;
312  }
313
314  public final class IntSizeKt {
315    method @androidx.compose.runtime.Stable public static long IntSize(int width, int height);
316    method public static long getCenter(long);
317    method @androidx.compose.runtime.Stable public static operator long times(int, long size);
318    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect toIntRect(long);
319    method @androidx.compose.runtime.Stable public static long toSize(long);
320  }
321
322  public enum LayoutDirection {
323    enum_constant public static final androidx.compose.ui.unit.LayoutDirection Ltr;
324    enum_constant public static final androidx.compose.ui.unit.LayoutDirection Rtl;
325  }
326
327  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class TextUnit {
328    method public inline operator int compareTo(long other);
329    method public inline operator long div(double other);
330    method public inline operator long div(float other);
331    method public inline operator long div(int other);
332    method public long getType();
333    method public float getValue();
334    method public boolean isEm();
335    method public boolean isSp();
336    method public inline operator long times(double other);
337    method public inline operator long times(float other);
338    method public inline operator long times(int other);
339    method public inline operator long unaryMinus();
340    property public final boolean isEm;
341    property public final boolean isSp;
342    property public final long type;
343    property public final float value;
344    field public static final androidx.compose.ui.unit.TextUnit.Companion Companion;
345  }
346
347  public static final class TextUnit.Companion {
348    method public long getUnspecified();
349    property public final long Unspecified;
350  }
351
352  public final class TextUnitKt {
353    method @kotlin.PublishedApi internal static void checkArithmetic(long a);
354    method @kotlin.PublishedApi internal static void checkArithmetic(long a, long b);
355    method @kotlin.PublishedApi internal static void checkArithmetic(long a, long b, long c);
356    method public static long getEm(double);
357    method public static long getEm(float);
358    method public static long getEm(int);
359    method public static long getSp(double);
360    method public static long getSp(float);
361    method public static long getSp(int);
362    method public static inline boolean isSpecified(long);
363    method public static boolean isUnspecified(long);
364    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
365    method @kotlin.PublishedApi internal static long pack(long unitType, float v);
366    method public static inline long takeOrElse(long, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.TextUnit> block);
367    method @androidx.compose.runtime.Stable public static inline operator long times(double, long other);
368    method @androidx.compose.runtime.Stable public static inline operator long times(float, long other);
369    method @androidx.compose.runtime.Stable public static inline operator long times(int, long other);
370  }
371
372  @kotlin.jvm.JvmInline public final value class TextUnitType {
373    ctor public TextUnitType(long type);
374    field public static final androidx.compose.ui.unit.TextUnitType.Companion Companion;
375  }
376
377  public static final class TextUnitType.Companion {
378    method public long getEm();
379    method public long getSp();
380    method public long getUnspecified();
381    property public final long Em;
382    property public final long Sp;
383    property public final long Unspecified;
384  }
385
386  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class Velocity {
387    method @androidx.compose.runtime.Stable public operator float component1();
388    method @androidx.compose.runtime.Stable public operator float component2();
389    method public long copy(optional float x, optional float y);
390    method @androidx.compose.runtime.Stable public operator long div(float operand);
391    method public float getX();
392    method public float getY();
393    method @androidx.compose.runtime.Stable public operator long minus(long other);
394    method @androidx.compose.runtime.Stable public operator long plus(long other);
395    method @androidx.compose.runtime.Stable public operator long rem(float operand);
396    method @androidx.compose.runtime.Stable public operator long times(float operand);
397    method @androidx.compose.runtime.Stable public operator long unaryMinus();
398    property public final float x;
399    property public final float y;
400    field public static final androidx.compose.ui.unit.Velocity.Companion Companion;
401  }
402
403  public static final class Velocity.Companion {
404    method public long getZero();
405    property public final long Zero;
406  }
407
408  public final class VelocityKt {
409    method @androidx.compose.runtime.Stable public static long Velocity(float x, float y);
410  }
411
412}
413
414