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