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