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 @androidx.compose.runtime.Stable public final boolean hasFixedHeight;
23    property @androidx.compose.runtime.Stable public final boolean hasFixedWidth;
24    property @androidx.compose.runtime.Stable 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 @kotlin.jvm.JvmDefaultWithCompatibility 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 @androidx.compose.runtime.Stable public final float x;
140    property @androidx.compose.runtime.Stable 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 @androidx.compose.runtime.Stable public final float height;
186    property @androidx.compose.runtime.Stable 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 @androidx.compose.runtime.Stable public final int x;
210    property @androidx.compose.runtime.Stable 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 @androidx.compose.runtime.Stable public final int height;
271    property @androidx.compose.runtime.Stable 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 @androidx.compose.runtime.Stable 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 @androidx.compose.runtime.Stable 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    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect roundToIntRect(androidx.compose.ui.geometry.Rect);
296    method @androidx.compose.runtime.Stable public static androidx.compose.ui.geometry.Rect toRect(androidx.compose.ui.unit.IntRect);
297  }
298
299  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class IntSize {
300    method @androidx.compose.runtime.Stable public inline operator int component1();
301    method @androidx.compose.runtime.Stable public inline operator int component2();
302    method @androidx.compose.runtime.Stable public operator long div(int other);
303    method public int getHeight();
304    method public int getWidth();
305    method @androidx.compose.runtime.Stable public operator long times(int other);
306    property @androidx.compose.runtime.Stable public final int height;
307    property @androidx.compose.runtime.Stable public final int width;
308    field public static final androidx.compose.ui.unit.IntSize.Companion Companion;
309  }
310
311  public static final class IntSize.Companion {
312    method public long getZero();
313    property public final long Zero;
314  }
315
316  public final class IntSizeKt {
317    method @androidx.compose.runtime.Stable public static long IntSize(int width, int height);
318    method public static long getCenter(long);
319    method @androidx.compose.runtime.Stable public static operator long times(int, long size);
320    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect toIntRect(long);
321    method @androidx.compose.runtime.Stable public static long toSize(long);
322  }
323
324  public enum LayoutDirection {
325    enum_constant public static final androidx.compose.ui.unit.LayoutDirection Ltr;
326    enum_constant public static final androidx.compose.ui.unit.LayoutDirection Rtl;
327  }
328
329  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class TextUnit {
330    method public inline operator int compareTo(long other);
331    method public inline operator long div(double other);
332    method public inline operator long div(float other);
333    method public inline operator long div(int other);
334    method public long getType();
335    method public float getValue();
336    method public boolean isEm();
337    method public boolean isSp();
338    method public inline operator long times(double other);
339    method public inline operator long times(float other);
340    method public inline operator long times(int other);
341    method public inline operator long unaryMinus();
342    property public final boolean isEm;
343    property public final boolean isSp;
344    property @kotlin.PublishedApi internal final long rawType;
345    property public final long type;
346    property public final float value;
347    field public static final androidx.compose.ui.unit.TextUnit.Companion Companion;
348  }
349
350  public static final class TextUnit.Companion {
351    method public long getUnspecified();
352    property public final long Unspecified;
353  }
354
355  public final class TextUnitKt {
356    method public static long TextUnit(float value, long type);
357    method @kotlin.PublishedApi internal static void checkArithmetic(long a);
358    method @kotlin.PublishedApi internal static void checkArithmetic(long a, long b);
359    method @kotlin.PublishedApi internal static void checkArithmetic(long a, long b, long c);
360    method public static long getEm(double);
361    method public static long getEm(float);
362    method public static long getEm(int);
363    method public static long getSp(double);
364    method public static long getSp(float);
365    method public static long getSp(int);
366    method public static inline boolean isSpecified(long);
367    method public static boolean isUnspecified(long);
368    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
369    method @kotlin.PublishedApi internal static long pack(long unitType, float v);
370    method public static inline long takeOrElse(long, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.TextUnit> block);
371    method @androidx.compose.runtime.Stable public static inline operator long times(double, long other);
372    method @androidx.compose.runtime.Stable public static inline operator long times(float, long other);
373    method @androidx.compose.runtime.Stable public static inline operator long times(int, long other);
374  }
375
376  @kotlin.jvm.JvmInline public final value class TextUnitType {
377    ctor public TextUnitType(long type);
378    field public static final androidx.compose.ui.unit.TextUnitType.Companion Companion;
379  }
380
381  public static final class TextUnitType.Companion {
382    method public long getEm();
383    method public long getSp();
384    method public long getUnspecified();
385    property public final long Em;
386    property public final long Sp;
387    property public final long Unspecified;
388  }
389
390  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class Velocity {
391    method @androidx.compose.runtime.Stable public operator float component1();
392    method @androidx.compose.runtime.Stable public operator float component2();
393    method public long copy(optional float x, optional float y);
394    method @androidx.compose.runtime.Stable public operator long div(float operand);
395    method public float getX();
396    method public float getY();
397    method @androidx.compose.runtime.Stable public operator long minus(long other);
398    method @androidx.compose.runtime.Stable public operator long plus(long other);
399    method @androidx.compose.runtime.Stable public operator long rem(float operand);
400    method @androidx.compose.runtime.Stable public operator long times(float operand);
401    method @androidx.compose.runtime.Stable public operator long unaryMinus();
402    property @androidx.compose.runtime.Stable public final float x;
403    property @androidx.compose.runtime.Stable public final float y;
404    field public static final androidx.compose.ui.unit.Velocity.Companion Companion;
405  }
406
407  public static final class Velocity.Companion {
408    method public long getZero();
409    property public final long Zero;
410  }
411
412  public final class VelocityKt {
413    method @androidx.compose.runtime.Stable public static long Velocity(float x, float y);
414  }
415
416}
417
418