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 public final inline class Constraints {
9    ctor public Constraints();
10  }
11
12  public static final class Constraints.Companion {
13    method @androidx.compose.runtime.Stable public long fixed(int width, int height);
14    method @androidx.compose.runtime.Stable public long fixedHeight(int height);
15    method @androidx.compose.runtime.Stable public long fixedWidth(int width);
16  }
17
18  public final class ConstraintsKt {
19    method @androidx.compose.runtime.Stable public static long Constraints(optional int minWidth, optional int maxWidth, optional int minHeight, optional int maxHeight);
20    method public static long constrain(long, long otherConstraints);
21    method @androidx.compose.runtime.Stable public static long constrain(long, long size);
22    method @androidx.compose.runtime.Stable public static int constrainHeight(long, int height);
23    method @androidx.compose.runtime.Stable public static int constrainWidth(long, int width);
24    method @androidx.compose.runtime.Stable public static boolean isSatisfiedBy(long, long size);
25    method @androidx.compose.runtime.Stable public static long offset(long, optional int horizontal, optional int vertical);
26  }
27
28  @androidx.compose.runtime.Immutable public interface Density {
29    method public float getDensity();
30    method public float getFontScale();
31    method @androidx.compose.runtime.Stable public default int roundToPx(float);
32    method @androidx.compose.runtime.Stable public default int roundToPx(long);
33    method @androidx.compose.runtime.Stable public default float toDp(float);
34    method @androidx.compose.runtime.Stable public default float toDp(int);
35    method @androidx.compose.runtime.Stable public default float toDp(long);
36    method @androidx.compose.runtime.Stable public default float toPx(float);
37    method @androidx.compose.runtime.Stable public default float toPx(long);
38    method @androidx.compose.runtime.Stable public default androidx.compose.ui.geometry.Rect toRect(androidx.compose.ui.unit.DpRect);
39    method @androidx.compose.runtime.Stable public default long toSp(float);
40    method @androidx.compose.runtime.Stable public default long toSp(float);
41    method @androidx.compose.runtime.Stable public default long toSp(int);
42    property public abstract float density;
43    property public abstract float fontScale;
44  }
45
46  public final class DensityKt {
47    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.Density Density(float density, optional float fontScale);
48  }
49
50  @androidx.compose.runtime.Immutable public final inline class Dp implements java.lang.Comparable<androidx.compose.ui.unit.Dp> {
51    ctor public Dp();
52    method @androidx.compose.runtime.Stable public operator int compareTo(float other);
53    method public float getValue();
54    property public final float value;
55  }
56
57  public static final class Dp.Companion {
58    method public float getHairline();
59    method public float getInfinity();
60    method public float getUnspecified();
61    property public final float Hairline;
62    property public final float Infinity;
63    property public final float Unspecified;
64  }
65
66  public final class DpKt {
67    method @androidx.compose.runtime.Stable public static long DpOffset(float x, float y);
68    method @androidx.compose.runtime.Stable public static inline float coerceAtLeast(float, float minimumValue);
69    method @androidx.compose.runtime.Stable public static inline float coerceAtMost(float, float maximumValue);
70    method @androidx.compose.runtime.Stable public static inline float coerceIn(float, float minimumValue, float maximumValue);
71    method public static inline float getDp(double);
72    method public static inline float getDp(float);
73    method public static inline float getDp(int);
74    method public static inline float getHeight(androidx.compose.ui.unit.DpRect);
75    method public static inline float getWidth(androidx.compose.ui.unit.DpRect);
76    method public static inline boolean isFinite(float);
77    method public static inline boolean isSpecified(float);
78    method public static inline boolean isUnspecified(float);
79    method @androidx.compose.runtime.Stable public static float lerp(float start, float stop, float fraction);
80    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
81    method @androidx.compose.runtime.Stable public static inline float max(float a, float b);
82    method @androidx.compose.runtime.Stable public static inline float min(float a, float b);
83    method public static inline float takeOrElse(float, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.Dp> block);
84    method @androidx.compose.runtime.Stable public static inline operator float times(double, float other);
85    method @androidx.compose.runtime.Stable public static inline operator float times(float, float other);
86    method @androidx.compose.runtime.Stable public static inline operator float times(int, float other);
87  }
88
89  @androidx.compose.runtime.Immutable public final inline class DpOffset {
90    ctor public DpOffset();
91  }
92
93  public static final class DpOffset.Companion {
94    method public long getZero();
95    property public final long Zero;
96  }
97
98  @androidx.compose.runtime.Immutable public final class DpRect {
99    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);
100    method public float component1-D9Ej5fM();
101    method public float component2-D9Ej5fM();
102    method public float component3-D9Ej5fM();
103    method public float component4-D9Ej5fM();
104    method public androidx.compose.ui.unit.DpRect copy-a9UjIt4(float left, float top, float right, float bottom);
105    method public float getBottom();
106    method public float getLeft();
107    method public float getRight();
108    method public float getTop();
109    property public final float bottom;
110    property public final float left;
111    property public final float right;
112    property public final float top;
113    field public static final androidx.compose.ui.unit.DpRect.Companion Companion;
114  }
115
116  public static final class DpRect.Companion {
117  }
118
119  @kotlin.RequiresOptIn(message="This API is experimental and is likely to change in the future.") public @interface ExperimentalUnitApi {
120  }
121
122  @androidx.compose.runtime.Immutable public final inline class IntOffset {
123    ctor public IntOffset();
124  }
125
126  public static final class IntOffset.Companion {
127    method public long getZero();
128    property public final long Zero;
129  }
130
131  public final class IntOffsetKt {
132    method @androidx.compose.runtime.Stable public static long IntOffset(int x, int y);
133    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
134    method @androidx.compose.runtime.Stable public static operator long minus(long, long offset);
135    method @androidx.compose.runtime.Stable public static operator long minus(long, long offset);
136    method @androidx.compose.runtime.Stable public static operator long plus(long, long offset);
137    method @androidx.compose.runtime.Stable public static operator long plus(long, long offset);
138    method @androidx.compose.runtime.Stable public static inline long round(long);
139    method @androidx.compose.runtime.Stable public static inline long toOffset(long);
140  }
141
142  @androidx.compose.runtime.Immutable public final class IntRect {
143    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);
144    method public int component1();
145    method public int component2();
146    method public int component3();
147    method public int component4();
148    method public boolean contains(long offset);
149    method public androidx.compose.ui.unit.IntRect copy(int left, int top, int right, int bottom);
150    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect deflate(int delta);
151    method public int getBottom();
152    method public long getBottomCenter();
153    method public long getBottomLeft();
154    method public long getBottomRight();
155    method public long getCenter();
156    method public long getCenterLeft();
157    method public long getCenterRight();
158    method public int getHeight();
159    method public int getLeft();
160    method public int getMaxDimension();
161    method public int getMinDimension();
162    method public int getRight();
163    method public long getSize();
164    method public int getTop();
165    method public long getTopCenter();
166    method public long getTopLeft();
167    method public long getTopRight();
168    method public int getWidth();
169    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect inflate(int delta);
170    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect intersect(androidx.compose.ui.unit.IntRect other);
171    method public boolean isEmpty();
172    method public boolean overlaps(androidx.compose.ui.unit.IntRect other);
173    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect translate(int translateX, int translateY);
174    method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect translate(long offset);
175    property public final int bottom;
176    property public final long bottomCenter;
177    property public final long bottomLeft;
178    property public final long bottomRight;
179    property public final long center;
180    property public final long centerLeft;
181    property public final long centerRight;
182    property public final int height;
183    property public final boolean isEmpty;
184    property public final int left;
185    property public final int maxDimension;
186    property public final int minDimension;
187    property public final int right;
188    property public final long size;
189    property public final int top;
190    property public final long topCenter;
191    property public final long topLeft;
192    property public final long topRight;
193    property public final int width;
194    field public static final androidx.compose.ui.unit.IntRect.Companion Companion;
195  }
196
197  public static final class IntRect.Companion {
198    method public androidx.compose.ui.unit.IntRect getZero();
199    property public final androidx.compose.ui.unit.IntRect Zero;
200  }
201
202  public final class IntRectKt {
203    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long center, int radius);
204    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long offset, long size);
205    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long topLeft, long bottomRight);
206    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);
207  }
208
209  @androidx.compose.runtime.Immutable public final inline class IntSize {
210    ctor public IntSize();
211  }
212
213  public static final class IntSize.Companion {
214    method public long getZero();
215    property public final long Zero;
216  }
217
218  public final class IntSizeKt {
219    method @androidx.compose.runtime.Stable public static long IntSize(int width, int height);
220    method public static long getCenter(long);
221    method @androidx.compose.runtime.Stable public static operator long times(int, long size);
222    method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect toIntRect(long);
223    method @androidx.compose.runtime.Stable public static long toSize(long);
224  }
225
226  public enum LayoutDirection {
227    enum_constant public static final androidx.compose.ui.unit.LayoutDirection Ltr;
228    enum_constant public static final androidx.compose.ui.unit.LayoutDirection Rtl;
229  }
230
231  @androidx.compose.runtime.Immutable public final inline class TextUnit {
232    ctor public TextUnit();
233  }
234
235  public static final class TextUnit.Companion {
236    method public long getUnspecified();
237    property public final long Unspecified;
238  }
239
240  public final class TextUnitKt {
241    method @androidx.compose.ui.unit.ExperimentalUnitApi public static long TextUnit(float value, long type);
242    method public static long getEm(double);
243    method public static long getEm(float);
244    method public static long getEm(int);
245    method public static long getSp(double);
246    method public static long getSp(float);
247    method public static long getSp(int);
248    method public static inline boolean isSpecified(long);
249    method public static boolean isUnspecified(long);
250    method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction);
251    method public static inline long takeOrElse(long, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.TextUnit> block);
252    method @androidx.compose.runtime.Stable public static inline operator long times(double, long other);
253    method @androidx.compose.runtime.Stable public static inline operator long times(float, long other);
254    method @androidx.compose.runtime.Stable public static inline operator long times(int, long other);
255  }
256
257  public final inline class TextUnitType {
258    ctor public TextUnitType();
259  }
260
261  public static final class TextUnitType.Companion {
262    method public long getEm();
263    method public long getSp();
264    method public long getUnspecified();
265    property public final long Em;
266    property public final long Sp;
267    property public final long Unspecified;
268  }
269
270  @androidx.compose.runtime.Immutable public final inline class Velocity {
271    ctor public Velocity();
272  }
273
274  public static final class Velocity.Companion {
275    method public long getZero();
276    property public final long Zero;
277  }
278
279  public final class VelocityKt {
280    method @androidx.compose.runtime.Stable public static long Velocity(float x, float y);
281  }
282
283}
284
285