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