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