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