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 extends androidx.compose.ui.unit.FontScaling {
50    method public float getDensity();
51    method @androidx.compose.runtime.Stable public default int roundToPx(float);
52    method @androidx.compose.runtime.Stable public default int roundToPx(long);
53    method @androidx.compose.runtime.Stable public default float toDp(float);
54    method @androidx.compose.runtime.Stable public default float toDp(int);
55    method @androidx.compose.runtime.Stable public default long toDpSize(long);
56    method @androidx.compose.runtime.Stable public default float toPx(float);
57    method @androidx.compose.runtime.Stable public default float toPx(long);
58    method @androidx.compose.runtime.Stable public default androidx.compose.ui.geometry.Rect toRect(androidx.compose.ui.unit.DpRect);
59    method @androidx.compose.runtime.Stable public default long toSize(long);
60    method @androidx.compose.runtime.Stable public default long toSp(int);
61    property public abstract float density;
62  }
63
64  public final class DensityKt {
65    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.Density Density(float density, optional float fontScale);
66  }
67
68  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class Dp implements java.lang.Comparable<androidx.compose.ui.unit.Dp> {
69    ctor public Dp(float value);
70    method @androidx.compose.runtime.Stable public operator int compareTo(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(float other);
73    method @androidx.compose.runtime.Stable public inline operator float div(int other);
74    method public float getValue();
75    method @androidx.compose.runtime.Stable public inline operator float minus(float other);
76    method @androidx.compose.runtime.Stable public inline operator float plus(float other);
77    method @androidx.compose.runtime.Stable public inline operator float times(float other);
78    method @androidx.compose.runtime.Stable public inline operator float times(int other);
79    method @androidx.compose.runtime.Stable public inline operator float unaryMinus();
80    property public final float value;
81    field public static final androidx.compose.ui.unit.Dp.Companion Companion;
82  }
83
84  public static final class Dp.Companion {
85    method public float getHairline();
86    method public float getInfinity();
87    method public float getUnspecified();
88    property public final float Hairline;
89    property public final float Infinity;
90    property public final float Unspecified;
91  }
92
93  public final class DpKt {
94    method @androidx.compose.runtime.Stable public static long DpOffset(float x, float y);
95    method @androidx.compose.runtime.Stable public static long DpSize(float width, float height);
96    method @androidx.compose.runtime.Stable public static inline float coerceAtLeast(float, float minimumValue);
97    method @androidx.compose.runtime.Stable public static inline float coerceAtMost(float, float maximumValue);
98    method @androidx.compose.runtime.Stable public static inline float coerceIn(float, float minimumValue, float maximumValue);
99    method public static long getCenter(long);
100    method public static inline float getDp(double);
101    method public static inline float getDp(float);
102    method public static inline float getDp(int);
103    method public static inline float getHeight(androidx.compose.ui.unit.DpRect);
104    method public static inline long getSize(androidx.compose.ui.unit.DpRect);
105    method public static inline float getWidth(androidx.compose.ui.unit.DpRect);
106    method public static inline boolean isFinite(float);
107    method public static inline boolean isSpecified(float);
108    method public static inline boolean isSpecified(long);
109    method public static inline boolean isSpecified(long);
110    method public static inline boolean isUnspecified(float);
111    method public static inline boolean isUnspecified(long);
112    method public static inline boolean isUnspecified(long);
113    method @androidx.compose.runtime.Stable public static float lerp(float start, float 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 long lerp(long start, long stop, float fraction);
116    method @androidx.compose.runtime.Stable public static inline float max(float a, float b);
117    method @androidx.compose.runtime.Stable public static inline float min(float a, float b);
118    method public static inline float takeOrElse(float, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.Dp> block);
119    method public static inline long takeOrElse(long, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.DpOffset> block);
120    method public static inline long takeOrElse(long, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.DpSize> block);
121    method @androidx.compose.runtime.Stable public static inline operator float times(double, float other);
122    method @androidx.compose.runtime.Stable public static inline operator float times(float, float other);
123    method @androidx.compose.runtime.Stable public static inline operator long times(float, long size);
124    method @androidx.compose.runtime.Stable public static inline operator float times(int, float other);
125    method @androidx.compose.runtime.Stable public static inline operator long times(int, long size);
126  }
127
128  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class DpOffset {
129    method public long copy(optional float x, optional float y);
130    method public float getX();
131    method public float getY();
132    method @androidx.compose.runtime.Stable public inline operator long minus(long other);
133    method @androidx.compose.runtime.Stable public inline operator long plus(long other);
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 public final float bottom;
159    property public final float left;
160    property public final float right;
161    property 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 public float getHeight();
175    method public float getWidth();
176    method @androidx.compose.runtime.Stable public inline operator long minus(long other);
177    method @androidx.compose.runtime.Stable public inline operator long plus(long other);
178    method @androidx.compose.runtime.Stable public operator long times(float other);
179    method @androidx.compose.runtime.Stable public operator long times(int other);
180    property @androidx.compose.runtime.Stable public final float height;
181    property @androidx.compose.runtime.Stable public final float width;
182    field public static final androidx.compose.ui.unit.DpSize.Companion Companion;
183  }
184
185  public static final class DpSize.Companion {
186    method public long getUnspecified();
187    method public long getZero();
188    property public final long Unspecified;
189    property public final long Zero;
190  }
191
192  @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 {
193  }
194
195  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmDefaultWithCompatibility public interface FontScaling {
196    method public float getFontScale();
197    method @androidx.compose.runtime.Stable public default float toDp(long);
198    method @androidx.compose.runtime.Stable public default long toSp(float);
199    property public abstract float fontScale;
200  }
201
202  public final class FontScalingKt {
203    method @SuppressCompatibility @androidx.compose.ui.ExperimentalComposeUiApi public static boolean getDisableNonLinearFontScalingInCompose();
204    method @SuppressCompatibility @androidx.compose.ui.ExperimentalComposeUiApi public static void setDisableNonLinearFontScalingInCompose(boolean);
205    property @SuppressCompatibility @androidx.compose.ui.ExperimentalComposeUiApi public static final boolean DisableNonLinearFontScalingInCompose;
206  }
207
208  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class IntOffset {
209    method @androidx.compose.runtime.Stable public operator int component1();
210    method @androidx.compose.runtime.Stable public operator int component2();
211    method public long copy(optional int x, optional int y);
212    method @androidx.compose.runtime.Stable public operator long div(float operand);
213    method public int getX();
214    method public int getY();
215    method @androidx.compose.runtime.Stable public inline operator long minus(long other);
216    method @androidx.compose.runtime.Stable public inline operator long plus(long other);
217    method @androidx.compose.runtime.Stable public operator long rem(int operand);
218    method @androidx.compose.runtime.Stable public operator long times(float operand);
219    method @androidx.compose.runtime.Stable public inline operator long unaryMinus();
220    property @androidx.compose.runtime.Stable public final int x;
221    property @androidx.compose.runtime.Stable public final int y;
222    field public static final androidx.compose.ui.unit.IntOffset.Companion Companion;
223  }
224
225  public static final class IntOffset.Companion {
226    method public long getZero();
227    property public final long Zero;
228  }
229
230  public final class IntOffsetKt {
231    method @androidx.compose.runtime.Stable public static long IntOffset(int x, int y);
232    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
233    method @androidx.compose.runtime.Stable public static operator long minus(long, long offset);
234    method @androidx.compose.runtime.Stable public static operator long minus(long, long offset);
235    method @androidx.compose.runtime.Stable public static operator long plus(long, long offset);
236    method @androidx.compose.runtime.Stable public static operator long plus(long, long offset);
237    method @androidx.compose.runtime.Stable public static inline long round(long);
238    method @androidx.compose.runtime.Stable public static inline long toOffset(long);
239  }
240
241  @androidx.compose.runtime.Immutable public final class IntRect {
242    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);
243    method public int component1();
244    method public int component2();
245    method public int component3();
246    method public int component4();
247    method public boolean contains(long offset);
248    method public androidx.compose.ui.unit.IntRect copy(int left, int top, int right, int bottom);
249    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect deflate(int delta);
250    method public int getBottom();
251    method public long getBottomCenter();
252    method public long getBottomLeft();
253    method public long getBottomRight();
254    method public long getCenter();
255    method public long getCenterLeft();
256    method public long getCenterRight();
257    method public int getHeight();
258    method public int getLeft();
259    method public int getMaxDimension();
260    method public int getMinDimension();
261    method public int getRight();
262    method public long getSize();
263    method public int getTop();
264    method public long getTopCenter();
265    method public long getTopLeft();
266    method public long getTopRight();
267    method public int getWidth();
268    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect inflate(int delta);
269    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect intersect(androidx.compose.ui.unit.IntRect other);
270    method public boolean isEmpty();
271    method public boolean overlaps(androidx.compose.ui.unit.IntRect other);
272    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect translate(int translateX, int translateY);
273    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect translate(long offset);
274    property public final int bottom;
275    property public final long bottomCenter;
276    property public final long bottomLeft;
277    property public final long bottomRight;
278    property public final long center;
279    property public final long centerLeft;
280    property public final long centerRight;
281    property @androidx.compose.runtime.Stable public final int height;
282    property @androidx.compose.runtime.Stable public final boolean isEmpty;
283    property public final int left;
284    property public final int maxDimension;
285    property public final int minDimension;
286    property public final int right;
287    property @androidx.compose.runtime.Stable public final long size;
288    property public final int top;
289    property public final long topCenter;
290    property public final long topLeft;
291    property public final long topRight;
292    property @androidx.compose.runtime.Stable public final int width;
293    field public static final androidx.compose.ui.unit.IntRect.Companion Companion;
294  }
295
296  public static final class IntRect.Companion {
297    method public androidx.compose.ui.unit.IntRect getZero();
298    property public final androidx.compose.ui.unit.IntRect Zero;
299  }
300
301  public final class IntRectKt {
302    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long center, int radius);
303    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long offset, long size);
304    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long topLeft, long bottomRight);
305    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);
306    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect roundToIntRect(androidx.compose.ui.geometry.Rect);
307    method @androidx.compose.runtime.Stable public static androidx.compose.ui.geometry.Rect toRect(androidx.compose.ui.unit.IntRect);
308  }
309
310  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class IntSize {
311    method @androidx.compose.runtime.Stable public inline operator int component1();
312    method @androidx.compose.runtime.Stable public inline operator int component2();
313    method @androidx.compose.runtime.Stable public operator long div(int other);
314    method public int getHeight();
315    method public int getWidth();
316    method @androidx.compose.runtime.Stable public operator long times(int other);
317    property @androidx.compose.runtime.Stable public final int height;
318    property @androidx.compose.runtime.Stable public final int width;
319    field public static final androidx.compose.ui.unit.IntSize.Companion Companion;
320  }
321
322  public static final class IntSize.Companion {
323    method public long getZero();
324    property public final long Zero;
325  }
326
327  public final class IntSizeKt {
328    method @androidx.compose.runtime.Stable public static long IntSize(int width, int height);
329    method public static long getCenter(long);
330    method @androidx.compose.runtime.Stable public static operator long times(int, long size);
331    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect toIntRect(long);
332    method @androidx.compose.runtime.Stable public static long toSize(long);
333  }
334
335  public enum LayoutDirection {
336    enum_constant public static final androidx.compose.ui.unit.LayoutDirection Ltr;
337    enum_constant public static final androidx.compose.ui.unit.LayoutDirection Rtl;
338  }
339
340  @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class TextUnit {
341    method public inline operator int compareTo(long other);
342    method public inline operator long div(double other);
343    method public inline operator long div(float other);
344    method public inline operator long div(int other);
345    method public long getType();
346    method public float getValue();
347    method public boolean isEm();
348    method public boolean isSp();
349    method public inline operator long times(double other);
350    method public inline operator long times(float other);
351    method public inline operator long times(int other);
352    method public inline operator long unaryMinus();
353    property public final boolean isEm;
354    property public final boolean isSp;
355    property public final long type;
356    property public final float value;
357    field public static final androidx.compose.ui.unit.TextUnit.Companion Companion;
358  }
359
360  public static final class TextUnit.Companion {
361    method public long getUnspecified();
362    property public final long Unspecified;
363  }
364
365  public final class TextUnitKt {
366    method public static long TextUnit(float value, long type);
367    method public static long getEm(double);
368    method public static long getEm(float);
369    method public static long getEm(int);
370    method public static long getSp(double);
371    method public static long getSp(float);
372    method public static long getSp(int);
373    method public static inline boolean isSpecified(long);
374    method public static boolean isUnspecified(long);
375    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
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 operator float component1();
398    method @androidx.compose.runtime.Stable public 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 public float getX();
402    method public float getY();
403    method @androidx.compose.runtime.Stable public operator long minus(long other);
404    method @androidx.compose.runtime.Stable public operator long plus(long other);
405    method @androidx.compose.runtime.Stable public operator long rem(float operand);
406    method @androidx.compose.runtime.Stable public operator long times(float operand);
407    method @androidx.compose.runtime.Stable public operator long unaryMinus();
408    property @androidx.compose.runtime.Stable public final float x;
409    property @androidx.compose.runtime.Stable public final float y;
410    field public static final androidx.compose.ui.unit.Velocity.Companion Companion;
411  }
412
413  public static final class Velocity.Companion {
414    method public long getZero();
415    property public final long Zero;
416  }
417
418  public final class VelocityKt {
419    method @androidx.compose.runtime.Stable public static long Velocity(float x, float y);
420  }
421
422}
423
424