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 boolean hasBoundedHeight; 13 property public boolean hasBoundedWidth; 14 property @androidx.compose.runtime.Stable public boolean hasFixedHeight; 15 property @androidx.compose.runtime.Stable public boolean hasFixedWidth; 16 property @androidx.compose.runtime.Stable public boolean isZero; 17 property public int maxHeight; 18 property public int maxWidth; 19 property public int minHeight; 20 property public 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 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 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 float Hairline; 85 property @androidx.compose.runtime.Stable public float Infinity; 86 property @androidx.compose.runtime.Stable public 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 property @androidx.compose.runtime.Stable public static long long.center; 123 property @androidx.compose.runtime.Stable public static inline float int.dp; 124 property @androidx.compose.runtime.Stable public static inline float double.dp; 125 property @androidx.compose.runtime.Stable public static inline float float.dp; 126 property @androidx.compose.runtime.Stable public static inline float androidx.compose.ui.unit.DpRect.height; 127 property @androidx.compose.runtime.Stable public static inline boolean float.isFinite; 128 property @androidx.compose.runtime.Stable public static inline boolean float.isSpecified; 129 property @androidx.compose.runtime.Stable public static inline boolean long.isSpecified; 130 property @androidx.compose.runtime.Stable public static inline boolean long.isSpecified; 131 property @androidx.compose.runtime.Stable public static inline boolean float.isUnspecified; 132 property @androidx.compose.runtime.Stable public static inline boolean long.isUnspecified; 133 property @androidx.compose.runtime.Stable public static inline boolean long.isUnspecified; 134 property @androidx.compose.runtime.Stable public static inline long androidx.compose.ui.unit.DpRect.size; 135 property @androidx.compose.runtime.Stable public static inline float androidx.compose.ui.unit.DpRect.width; 136 } 137 138 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class DpOffset { 139 ctor public DpOffset(long packedValue); 140 method public long copy(optional float x, optional float y); 141 method public long getPackedValue(); 142 method @androidx.compose.runtime.Stable public operator long minus(long other); 143 method @androidx.compose.runtime.Stable public operator long plus(long other); 144 property public long packedValue; 145 property @androidx.compose.runtime.Stable public float x; 146 property @androidx.compose.runtime.Stable public float y; 147 field public static final androidx.compose.ui.unit.DpOffset.Companion Companion; 148 } 149 150 public static final class DpOffset.Companion { 151 method public long getUnspecified(); 152 method public long getZero(); 153 property public long Unspecified; 154 property public long Zero; 155 } 156 157 @androidx.compose.runtime.Immutable public final class DpRect { 158 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); 159 ctor public DpRect(long origin, long size); 160 method public float component1-D9Ej5fM(); 161 method public float component2-D9Ej5fM(); 162 method public float component3-D9Ej5fM(); 163 method public float component4-D9Ej5fM(); 164 method public androidx.compose.ui.unit.DpRect copy-a9UjIt4(float left, float top, float right, float bottom); 165 method public float getBottom(); 166 method public float getLeft(); 167 method public float getRight(); 168 method public float getTop(); 169 property @androidx.compose.runtime.Stable public float bottom; 170 property @androidx.compose.runtime.Stable public float left; 171 property @androidx.compose.runtime.Stable public float right; 172 property @androidx.compose.runtime.Stable public float top; 173 field public static final androidx.compose.ui.unit.DpRect.Companion Companion; 174 } 175 176 public static final class DpRect.Companion { 177 } 178 179 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class DpSize { 180 method @androidx.compose.runtime.Stable public inline operator float component1(); 181 method @androidx.compose.runtime.Stable public inline operator float component2(); 182 method public long copy(optional float width, optional float height); 183 method @androidx.compose.runtime.Stable public operator long div(float other); 184 method @androidx.compose.runtime.Stable public operator long div(int other); 185 method @androidx.compose.runtime.Stable public operator long minus(long other); 186 method @androidx.compose.runtime.Stable public operator long plus(long other); 187 method @androidx.compose.runtime.Stable public operator long times(float other); 188 method @androidx.compose.runtime.Stable public operator long times(int other); 189 property @androidx.compose.runtime.Stable public float height; 190 property @androidx.compose.runtime.Stable public float width; 191 field public static final androidx.compose.ui.unit.DpSize.Companion Companion; 192 } 193 194 public static final class DpSize.Companion { 195 method public long getUnspecified(); 196 method public long getZero(); 197 property public long Unspecified; 198 property public long Zero; 199 } 200 201 @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 { 202 } 203 204 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmDefaultWithCompatibility public interface FontScaling { 205 method public float getFontScale(); 206 method @androidx.compose.runtime.Stable public default float toDp(long); 207 method @androidx.compose.runtime.Stable public default long toSp(float); 208 property @androidx.compose.runtime.Stable public abstract float fontScale; 209 } 210 211 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class IntOffset { 212 ctor public IntOffset(long packedValue); 213 method @androidx.compose.runtime.Stable public inline operator int component1(); 214 method @androidx.compose.runtime.Stable public inline operator int component2(); 215 method public long copy(optional int x, optional int y); 216 method @androidx.compose.runtime.Stable public operator long div(float operand); 217 method public long getPackedValue(); 218 method @androidx.compose.runtime.Stable public operator long minus(long other); 219 method @androidx.compose.runtime.Stable public operator long plus(long other); 220 method @androidx.compose.runtime.Stable public operator long rem(int operand); 221 method @androidx.compose.runtime.Stable public operator long times(float operand); 222 method @androidx.compose.runtime.Stable public operator long unaryMinus(); 223 property public long packedValue; 224 property @androidx.compose.runtime.Stable public int x; 225 property @androidx.compose.runtime.Stable public int y; 226 field public static final androidx.compose.ui.unit.IntOffset.Companion Companion; 227 } 228 229 public static final class IntOffset.Companion { 230 method public long getMax(); 231 method public long getZero(); 232 property public long Max; 233 property public long Zero; 234 } 235 236 public final class IntOffsetKt { 237 method @androidx.compose.runtime.Stable public static inline long IntOffset(int x, int y); 238 method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction); 239 method @androidx.compose.runtime.Stable public static operator long minus(long, long offset); 240 method @androidx.compose.runtime.Stable public static operator long minus(long, long offset); 241 method @androidx.compose.runtime.Stable public static operator long plus(long, long offset); 242 method @androidx.compose.runtime.Stable public static operator long plus(long, long offset); 243 method @androidx.compose.runtime.Stable public static long round(long); 244 method @androidx.compose.runtime.Stable public static inline long toOffset(long); 245 } 246 247 @androidx.compose.runtime.Immutable public final class IntRect { 248 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); 249 method public int component1(); 250 method public int component2(); 251 method public int component3(); 252 method public int component4(); 253 method public boolean contains(long offset); 254 method public androidx.compose.ui.unit.IntRect copy(int left, int top, int right, int bottom); 255 method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect deflate(int delta); 256 method public int getBottom(); 257 method public long getBottomCenter(); 258 method public long getBottomLeft(); 259 method public long getBottomRight(); 260 method public long getCenter(); 261 method public long getCenterLeft(); 262 method public long getCenterRight(); 263 method public int getHeight(); 264 method public int getLeft(); 265 method public int getMaxDimension(); 266 method public int getMinDimension(); 267 method public int getRight(); 268 method public long getSize(); 269 method public int getTop(); 270 method public long getTopCenter(); 271 method public long getTopLeft(); 272 method public long getTopRight(); 273 method public int getWidth(); 274 method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect inflate(int delta); 275 method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect intersect(androidx.compose.ui.unit.IntRect other); 276 method public boolean isEmpty(); 277 method public boolean overlaps(androidx.compose.ui.unit.IntRect other); 278 method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect translate(int translateX, int translateY); 279 method @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect translate(long offset); 280 property @androidx.compose.runtime.Stable public int bottom; 281 property public long bottomCenter; 282 property public long bottomLeft; 283 property public long bottomRight; 284 property public long center; 285 property public long centerLeft; 286 property public long centerRight; 287 property @androidx.compose.runtime.Stable public int height; 288 property @androidx.compose.runtime.Stable public boolean isEmpty; 289 property @androidx.compose.runtime.Stable public int left; 290 property public int maxDimension; 291 property public int minDimension; 292 property @androidx.compose.runtime.Stable public int right; 293 property @androidx.compose.runtime.Stable public long size; 294 property @androidx.compose.runtime.Stable public int top; 295 property public long topCenter; 296 property public long topLeft; 297 property public long topRight; 298 property @androidx.compose.runtime.Stable public int width; 299 field public static final androidx.compose.ui.unit.IntRect.Companion Companion; 300 } 301 302 public static final class IntRect.Companion { 303 method public androidx.compose.ui.unit.IntRect getZero(); 304 property @androidx.compose.runtime.Stable public androidx.compose.ui.unit.IntRect Zero; 305 } 306 307 public final class IntRectKt { 308 method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long center, int radius); 309 method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long offset, long size); 310 method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect IntRect(long topLeft, long bottomRight); 311 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); 312 method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect roundToIntRect(androidx.compose.ui.geometry.Rect); 313 method @androidx.compose.runtime.Stable public static androidx.compose.ui.geometry.Rect toRect(androidx.compose.ui.unit.IntRect); 314 } 315 316 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class IntSize { 317 method @androidx.compose.runtime.Stable public inline operator int component1(); 318 method @androidx.compose.runtime.Stable public inline operator int component2(); 319 method @androidx.compose.runtime.Stable public operator long div(int other); 320 method public long getPackedValue(); 321 method @androidx.compose.runtime.Stable public operator long times(int other); 322 property @androidx.compose.runtime.Stable public inline int height; 323 property public long packedValue; 324 property @androidx.compose.runtime.Stable public inline int width; 325 field public static final androidx.compose.ui.unit.IntSize.Companion Companion; 326 } 327 328 public static final class IntSize.Companion { 329 method public long getZero(); 330 property public long Zero; 331 } 332 333 public final class IntSizeKt { 334 method @androidx.compose.runtime.Stable public static inline long IntSize(int width, int height); 335 method public static long getCenter(long); 336 method @androidx.compose.runtime.Stable public static long roundToIntSize(long); 337 method @androidx.compose.runtime.Stable public static inline operator long times(int, long size); 338 method @androidx.compose.runtime.Stable public static androidx.compose.ui.unit.IntRect toIntRect(long); 339 method @androidx.compose.runtime.Stable public static long toIntSize(long); 340 method @androidx.compose.runtime.Stable public static long toSize(long); 341 property @androidx.compose.runtime.Stable public static long long.center; 342 } 343 344 public enum LayoutDirection { 345 enum_constant public static final androidx.compose.ui.unit.LayoutDirection Ltr; 346 enum_constant public static final androidx.compose.ui.unit.LayoutDirection Rtl; 347 } 348 349 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class TextUnit { 350 method public inline operator int compareTo(long other); 351 method public inline operator long div(double other); 352 method public inline operator long div(float other); 353 method public inline operator long div(int other); 354 method public inline operator long times(double other); 355 method public inline operator long times(float other); 356 method public inline operator long times(int other); 357 method public inline operator long unaryMinus(); 358 property public boolean isEm; 359 property public boolean isSp; 360 property public long type; 361 property public float value; 362 field public static final androidx.compose.ui.unit.TextUnit.Companion Companion; 363 } 364 365 public static final class TextUnit.Companion { 366 method public long getUnspecified(); 367 property @androidx.compose.runtime.Stable public long Unspecified; 368 } 369 370 public final class TextUnitKt { 371 method public static long TextUnit(float value, long type); 372 method public static long getEm(double); 373 method public static long getEm(float); 374 method public static long getEm(int); 375 method public static long getSp(double); 376 method public static long getSp(float); 377 method public static long getSp(int); 378 method public static inline boolean isSpecified(long); 379 method public static inline boolean isUnspecified(long); 380 method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, float fraction); 381 method public static inline long takeOrElse(long, kotlin.jvm.functions.Function0<androidx.compose.ui.unit.TextUnit> block); 382 method @androidx.compose.runtime.Stable public static inline operator long times(double, long other); 383 method @androidx.compose.runtime.Stable public static inline operator long times(float, long other); 384 method @androidx.compose.runtime.Stable public static inline operator long times(int, long other); 385 property @androidx.compose.runtime.Stable public static long float.em; 386 property @androidx.compose.runtime.Stable public static long double.em; 387 property @androidx.compose.runtime.Stable public static long int.em; 388 property @androidx.compose.runtime.Stable public static inline boolean long.isSpecified; 389 property @androidx.compose.runtime.Stable public static inline boolean long.isUnspecified; 390 property @androidx.compose.runtime.Stable public static long float.sp; 391 property @androidx.compose.runtime.Stable public static long double.sp; 392 property @androidx.compose.runtime.Stable public static long int.sp; 393 } 394 395 @kotlin.jvm.JvmInline public final value class TextUnitType { 396 ctor public TextUnitType(long type); 397 field public static final androidx.compose.ui.unit.TextUnitType.Companion Companion; 398 } 399 400 public static final class TextUnitType.Companion { 401 method public long getEm(); 402 method public long getSp(); 403 method public long getUnspecified(); 404 property public long Em; 405 property public long Sp; 406 property public long Unspecified; 407 } 408 409 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class Velocity { 410 method @androidx.compose.runtime.Stable public inline operator float component1(); 411 method @androidx.compose.runtime.Stable public inline operator float component2(); 412 method public long copy(optional float x, optional float y); 413 method @androidx.compose.runtime.Stable public operator long div(float operand); 414 method @androidx.compose.runtime.Stable public operator long minus(long other); 415 method @androidx.compose.runtime.Stable public operator long plus(long other); 416 method @androidx.compose.runtime.Stable public operator long rem(float operand); 417 method @androidx.compose.runtime.Stable public operator long times(float operand); 418 method @androidx.compose.runtime.Stable public operator long unaryMinus(); 419 property @androidx.compose.runtime.Stable public float x; 420 property @androidx.compose.runtime.Stable public float y; 421 field public static final androidx.compose.ui.unit.Velocity.Companion Companion; 422 } 423 424 public static final class Velocity.Companion { 425 method public long getZero(); 426 property @androidx.compose.runtime.Stable public long Zero; 427 } 428 429 public final class VelocityKt { 430 method @androidx.compose.runtime.Stable public static long Velocity(float x, float y); 431 } 432 433} 434 435