1// Signature format: 4.0 2package androidx.compose.ui.graphics { 3 4 public final class AndroidBlendMode_androidKt { 5 method public static boolean isSupported(int); 6 } 7 8 public final class AndroidCanvas_androidKt { 9 method public static androidx.compose.ui.graphics.Canvas Canvas(android.graphics.Canvas c); 10 method public static android.graphics.Canvas getNativeCanvas(androidx.compose.ui.graphics.Canvas); 11 } 12 13 public final class AndroidColorFilter_androidKt { 14 method public static android.graphics.ColorFilter asAndroidColorFilter(androidx.compose.ui.graphics.ColorFilter); 15 method public static androidx.compose.ui.graphics.ColorFilter asComposeColorFilter(android.graphics.ColorFilter); 16 } 17 18 public final class AndroidColorSpace_androidKt { 19 method @RequiresApi(android.os.Build.VERSION_CODES.O) public static android.graphics.ColorSpace toAndroidColorSpace(androidx.compose.ui.graphics.colorspace.ColorSpace); 20 method @RequiresApi(android.os.Build.VERSION_CODES.O) public static androidx.compose.ui.graphics.colorspace.ColorSpace toComposeColorSpace(android.graphics.ColorSpace); 21 } 22 23 public final class AndroidGraphicsContext_androidKt { 24 method public static androidx.compose.ui.graphics.GraphicsContext GraphicsContext(android.view.ViewGroup layerContainer); 25 } 26 27 public final class AndroidImageBitmap_androidKt { 28 method public static android.graphics.Bitmap asAndroidBitmap(androidx.compose.ui.graphics.ImageBitmap); 29 method public static androidx.compose.ui.graphics.ImageBitmap asImageBitmap(android.graphics.Bitmap); 30 } 31 32 public final class AndroidMatrixConversions_androidKt { 33 method public static void setFrom(android.graphics.Matrix, float[] matrix); 34 method public static void setFrom(float[], android.graphics.Matrix matrix); 35 } 36 37 public final class AndroidPaint implements androidx.compose.ui.graphics.Paint { 38 ctor public AndroidPaint(); 39 ctor public AndroidPaint(android.graphics.Paint internalPaint); 40 method public android.graphics.Paint asFrameworkPaint(); 41 method public float getAlpha(); 42 method public int getBlendMode(); 43 method public long getColor(); 44 method public androidx.compose.ui.graphics.ColorFilter? getColorFilter(); 45 method public int getFilterQuality(); 46 method public androidx.compose.ui.graphics.PathEffect? getPathEffect(); 47 method public android.graphics.Shader? getShader(); 48 method public int getStrokeCap(); 49 method public int getStrokeJoin(); 50 method public float getStrokeMiterLimit(); 51 method public float getStrokeWidth(); 52 method public int getStyle(); 53 method public boolean isAntiAlias(); 54 method public void setAlpha(float); 55 method public void setAntiAlias(boolean); 56 method public void setBlendMode(int); 57 method public void setColor(long); 58 method public void setColorFilter(androidx.compose.ui.graphics.ColorFilter?); 59 method public void setFilterQuality(int); 60 method public void setPathEffect(androidx.compose.ui.graphics.PathEffect?); 61 method public void setShader(android.graphics.Shader?); 62 method public void setStrokeCap(int); 63 method public void setStrokeJoin(int); 64 method public void setStrokeMiterLimit(float); 65 method public void setStrokeWidth(float); 66 method public void setStyle(int); 67 property public float alpha; 68 property public int blendMode; 69 property public long color; 70 property public androidx.compose.ui.graphics.ColorFilter? colorFilter; 71 property public int filterQuality; 72 property public boolean isAntiAlias; 73 property public androidx.compose.ui.graphics.PathEffect? pathEffect; 74 property public android.graphics.Shader? shader; 75 property public int strokeCap; 76 property public int strokeJoin; 77 property public float strokeMiterLimit; 78 property public float strokeWidth; 79 property public int style; 80 } 81 82 public final class AndroidPaint_androidKt { 83 method public static androidx.compose.ui.graphics.Paint Paint(); 84 method public static androidx.compose.ui.graphics.Paint asComposePaint(android.graphics.Paint); 85 } 86 87 public final class AndroidPath implements androidx.compose.ui.graphics.Path { 88 ctor public AndroidPath(); 89 ctor public AndroidPath(optional android.graphics.Path internalPath); 90 method public void addArc(androidx.compose.ui.geometry.Rect oval, float startAngleDegrees, float sweepAngleDegrees); 91 method public void addArcRad(androidx.compose.ui.geometry.Rect oval, float startAngleRadians, float sweepAngleRadians); 92 method public void addOval(androidx.compose.ui.geometry.Rect oval); 93 method public void addOval(androidx.compose.ui.geometry.Rect oval, androidx.compose.ui.graphics.Path.Direction direction); 94 method public void addPath(androidx.compose.ui.graphics.Path path, long offset); 95 method public void addRect(androidx.compose.ui.geometry.Rect rect); 96 method public void addRect(androidx.compose.ui.geometry.Rect rect, androidx.compose.ui.graphics.Path.Direction direction); 97 method public void addRoundRect(androidx.compose.ui.geometry.RoundRect roundRect); 98 method public void addRoundRect(androidx.compose.ui.geometry.RoundRect roundRect, androidx.compose.ui.graphics.Path.Direction direction); 99 method public void arcTo(androidx.compose.ui.geometry.Rect rect, float startAngleDegrees, float sweepAngleDegrees, boolean forceMoveTo); 100 method public void close(); 101 method public void cubicTo(float x1, float y1, float x2, float y2, float x3, float y3); 102 method public androidx.compose.ui.geometry.Rect getBounds(); 103 method public int getFillType(); 104 method public android.graphics.Path getInternalPath(); 105 method public boolean isConvex(); 106 method public boolean isEmpty(); 107 method public void lineTo(float x, float y); 108 method public void moveTo(float x, float y); 109 method public boolean op(androidx.compose.ui.graphics.Path path1, androidx.compose.ui.graphics.Path path2, int operation); 110 method public void quadraticBezierTo(float x1, float y1, float x2, float y2); 111 method public void relativeCubicTo(float dx1, float dy1, float dx2, float dy2, float dx3, float dy3); 112 method public void relativeLineTo(float dx, float dy); 113 method public void relativeMoveTo(float dx, float dy); 114 method public void relativeQuadraticBezierTo(float dx1, float dy1, float dx2, float dy2); 115 method public void reset(); 116 method public void setFillType(int); 117 method public void translate(long offset); 118 property public int fillType; 119 property public final android.graphics.Path internalPath; 120 property public boolean isConvex; 121 property public boolean isEmpty; 122 } 123 124 public final class AndroidPathEffect_androidKt { 125 method public static android.graphics.PathEffect asAndroidPathEffect(androidx.compose.ui.graphics.PathEffect); 126 method public static androidx.compose.ui.graphics.PathEffect toComposePathEffect(android.graphics.PathEffect); 127 } 128 129 public final class AndroidPathIterator_androidKt { 130 method public static androidx.compose.ui.graphics.PathIterator PathIterator(androidx.compose.ui.graphics.Path path, optional androidx.compose.ui.graphics.PathIterator.ConicEvaluation conicEvaluation, optional float tolerance); 131 } 132 133 public final class AndroidPathMeasure implements androidx.compose.ui.graphics.PathMeasure { 134 method public float getLength(); 135 method public long getPosition(float distance); 136 method public boolean getSegment(float startDistance, float stopDistance, androidx.compose.ui.graphics.Path destination, boolean startWithMoveTo); 137 method public long getTangent(float distance); 138 method public void setPath(androidx.compose.ui.graphics.Path? path, boolean forceClosed); 139 property public float length; 140 } 141 142 public final class AndroidPathMeasure_androidKt { 143 method public static androidx.compose.ui.graphics.PathMeasure PathMeasure(); 144 } 145 146 public final class AndroidPath_androidKt { 147 method public static androidx.compose.ui.graphics.Path Path(); 148 method public static inline android.graphics.Path asAndroidPath(androidx.compose.ui.graphics.Path); 149 method public static androidx.compose.ui.graphics.Path asComposePath(android.graphics.Path); 150 } 151 152 public final class AndroidRenderEffect_androidKt { 153 method public static androidx.compose.ui.graphics.RenderEffect asComposeRenderEffect(android.graphics.RenderEffect); 154 } 155 156 public final class AndroidTileMode_androidKt { 157 method public static boolean isSupported(int); 158 method public static android.graphics.Shader.TileMode toAndroidTileMode(int); 159 method public static int toComposeTileMode(android.graphics.Shader.TileMode); 160 } 161 162 public final class AndroidVertexMode_androidKt { 163 method public static android.graphics.Canvas.VertexMode toAndroidVertexMode(int); 164 } 165 166 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class BlendMode { 167 field public static final androidx.compose.ui.graphics.BlendMode.Companion Companion; 168 } 169 170 public static final class BlendMode.Companion { 171 method public int getClear(); 172 method public int getColor(); 173 method public int getColorBurn(); 174 method public int getColorDodge(); 175 method public int getDarken(); 176 method public int getDifference(); 177 method public int getDst(); 178 method public int getDstAtop(); 179 method public int getDstIn(); 180 method public int getDstOut(); 181 method public int getDstOver(); 182 method public int getExclusion(); 183 method public int getHardlight(); 184 method public int getHue(); 185 method public int getLighten(); 186 method public int getLuminosity(); 187 method public int getModulate(); 188 method public int getMultiply(); 189 method public int getOverlay(); 190 method public int getPlus(); 191 method public int getSaturation(); 192 method public int getScreen(); 193 method public int getSoftlight(); 194 method public int getSrc(); 195 method public int getSrcAtop(); 196 method public int getSrcIn(); 197 method public int getSrcOut(); 198 method public int getSrcOver(); 199 method public int getXor(); 200 property public final int Clear; 201 property public final int Color; 202 property public final int ColorBurn; 203 property public final int ColorDodge; 204 property public final int Darken; 205 property public final int Difference; 206 property public final int Dst; 207 property public final int DstAtop; 208 property public final int DstIn; 209 property public final int DstOut; 210 property public final int DstOver; 211 property public final int Exclusion; 212 property public final int Hardlight; 213 property public final int Hue; 214 property public final int Lighten; 215 property public final int Luminosity; 216 property public final int Modulate; 217 property public final int Multiply; 218 property public final int Overlay; 219 property public final int Plus; 220 property public final int Saturation; 221 property public final int Screen; 222 property public final int Softlight; 223 property public final int Src; 224 property public final int SrcAtop; 225 property public final int SrcIn; 226 property public final int SrcOut; 227 property public final int SrcOver; 228 property public final int Xor; 229 } 230 231 @androidx.compose.runtime.Immutable public final class BlendModeColorFilter extends androidx.compose.ui.graphics.ColorFilter { 232 ctor public BlendModeColorFilter(long color, int blendMode); 233 method public int getBlendMode(); 234 method public long getColor(); 235 property public final int blendMode; 236 property public final long color; 237 } 238 239 @androidx.compose.runtime.Immutable public final class BlurEffect extends androidx.compose.ui.graphics.RenderEffect { 240 ctor public BlurEffect(androidx.compose.ui.graphics.RenderEffect? renderEffect, float radiusX, optional float radiusY, optional int edgeTreatment); 241 method @RequiresApi(android.os.Build.VERSION_CODES.S) protected android.graphics.RenderEffect createRenderEffect(); 242 } 243 244 @androidx.compose.runtime.Immutable public abstract sealed class Brush { 245 method public abstract void applyTo(long size, androidx.compose.ui.graphics.Paint p, float alpha); 246 method public long getIntrinsicSize(); 247 property public long intrinsicSize; 248 field public static final androidx.compose.ui.graphics.Brush.Companion Companion; 249 } 250 251 public static final class Brush.Companion { 252 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.Brush horizontalGradient(java.util.List<androidx.compose.ui.graphics.Color> colors, optional float startX, optional float endX, optional int tileMode); 253 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.Brush horizontalGradient(kotlin.Pair<java.lang.Float,androidx.compose.ui.graphics.Color>[] colorStops, optional float startX, optional float endX, optional int tileMode); 254 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.Brush linearGradient(java.util.List<androidx.compose.ui.graphics.Color> colors, optional long start, optional long end, optional int tileMode); 255 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.Brush linearGradient(kotlin.Pair<java.lang.Float,androidx.compose.ui.graphics.Color>[] colorStops, optional long start, optional long end, optional int tileMode); 256 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.Brush radialGradient(java.util.List<androidx.compose.ui.graphics.Color> colors, optional long center, optional float radius, optional int tileMode); 257 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.Brush radialGradient(kotlin.Pair<java.lang.Float,androidx.compose.ui.graphics.Color>[] colorStops, optional long center, optional float radius, optional int tileMode); 258 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.Brush sweepGradient(java.util.List<androidx.compose.ui.graphics.Color> colors, optional long center); 259 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.Brush sweepGradient(kotlin.Pair<java.lang.Float,androidx.compose.ui.graphics.Color>[] colorStops, optional long center); 260 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.Brush verticalGradient(java.util.List<androidx.compose.ui.graphics.Color> colors, optional float startY, optional float endY, optional int tileMode); 261 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.Brush verticalGradient(kotlin.Pair<java.lang.Float,androidx.compose.ui.graphics.Color>[] colorStops, optional float startY, optional float endY, optional int tileMode); 262 } 263 264 public final class BrushKt { 265 method public static androidx.compose.ui.graphics.ShaderBrush ShaderBrush(android.graphics.Shader shader); 266 } 267 268 @kotlin.jvm.JvmDefaultWithCompatibility public interface Canvas { 269 method public void clipPath(androidx.compose.ui.graphics.Path path, optional int clipOp); 270 method public default void clipRect(androidx.compose.ui.geometry.Rect rect, optional int clipOp); 271 method public void clipRect(float left, float top, float right, float bottom, optional int clipOp); 272 method public void concat(float[] matrix); 273 method public void disableZ(); 274 method public default void drawArc(androidx.compose.ui.geometry.Rect rect, float startAngle, float sweepAngle, boolean useCenter, androidx.compose.ui.graphics.Paint paint); 275 method public void drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, androidx.compose.ui.graphics.Paint paint); 276 method public default void drawArcRad(androidx.compose.ui.geometry.Rect rect, float startAngleRad, float sweepAngleRad, boolean useCenter, androidx.compose.ui.graphics.Paint paint); 277 method public void drawCircle(long center, float radius, androidx.compose.ui.graphics.Paint paint); 278 method public void drawImage(androidx.compose.ui.graphics.ImageBitmap image, long topLeftOffset, androidx.compose.ui.graphics.Paint paint); 279 method public void drawImageRect(androidx.compose.ui.graphics.ImageBitmap image, optional long srcOffset, optional long srcSize, optional long dstOffset, optional long dstSize, androidx.compose.ui.graphics.Paint paint); 280 method public void drawLine(long p1, long p2, androidx.compose.ui.graphics.Paint paint); 281 method public default void drawOval(androidx.compose.ui.geometry.Rect rect, androidx.compose.ui.graphics.Paint paint); 282 method public void drawOval(float left, float top, float right, float bottom, androidx.compose.ui.graphics.Paint paint); 283 method public void drawPath(androidx.compose.ui.graphics.Path path, androidx.compose.ui.graphics.Paint paint); 284 method public void drawPoints(int pointMode, java.util.List<androidx.compose.ui.geometry.Offset> points, androidx.compose.ui.graphics.Paint paint); 285 method public void drawRawPoints(int pointMode, float[] points, androidx.compose.ui.graphics.Paint paint); 286 method public default void drawRect(androidx.compose.ui.geometry.Rect rect, androidx.compose.ui.graphics.Paint paint); 287 method public void drawRect(float left, float top, float right, float bottom, androidx.compose.ui.graphics.Paint paint); 288 method public void drawRoundRect(float left, float top, float right, float bottom, float radiusX, float radiusY, androidx.compose.ui.graphics.Paint paint); 289 method public void drawVertices(androidx.compose.ui.graphics.Vertices vertices, int blendMode, androidx.compose.ui.graphics.Paint paint); 290 method public void enableZ(); 291 method public void restore(); 292 method public void rotate(float degrees); 293 method public void save(); 294 method public void saveLayer(androidx.compose.ui.geometry.Rect bounds, androidx.compose.ui.graphics.Paint paint); 295 method public void scale(float sx, optional float sy); 296 method public void skew(float sx, float sy); 297 method public default void skewRad(float sxRad, float syRad); 298 method public void translate(float dx, float dy); 299 } 300 301 public final class CanvasHolder { 302 ctor public CanvasHolder(); 303 method public inline void drawInto(android.graphics.Canvas targetCanvas, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.Canvas,kotlin.Unit> block); 304 } 305 306 public final class CanvasKt { 307 method public static androidx.compose.ui.graphics.Canvas Canvas(androidx.compose.ui.graphics.ImageBitmap image); 308 method public static void rotate(androidx.compose.ui.graphics.Canvas, float degrees, float pivotX, float pivotY); 309 method public static void rotateRad(androidx.compose.ui.graphics.Canvas, float radians, optional float pivotX, optional float pivotY); 310 method public static void scale(androidx.compose.ui.graphics.Canvas, float sx, optional float sy, float pivotX, float pivotY); 311 method public static inline void withSave(androidx.compose.ui.graphics.Canvas, kotlin.jvm.functions.Function0<kotlin.Unit> block); 312 method public static inline void withSaveLayer(androidx.compose.ui.graphics.Canvas, androidx.compose.ui.geometry.Rect bounds, androidx.compose.ui.graphics.Paint paint, kotlin.jvm.functions.Function0<kotlin.Unit> block); 313 } 314 315 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class ClipOp { 316 field public static final androidx.compose.ui.graphics.ClipOp.Companion Companion; 317 } 318 319 public static final class ClipOp.Companion { 320 method public int getDifference(); 321 method public int getIntersect(); 322 property public final int Difference; 323 property public final int Intersect; 324 } 325 326 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class Color { 327 ctor public Color(long value); 328 method @androidx.compose.runtime.Stable public inline operator float component1(); 329 method @androidx.compose.runtime.Stable public inline operator float component2(); 330 method @androidx.compose.runtime.Stable public inline operator float component3(); 331 method @androidx.compose.runtime.Stable public inline operator float component4(); 332 method @androidx.compose.runtime.Stable public inline operator androidx.compose.ui.graphics.colorspace.ColorSpace component5(); 333 method public long convert(androidx.compose.ui.graphics.colorspace.ColorSpace colorSpace); 334 method @androidx.compose.runtime.Stable public long copy(optional float alpha, optional float red, optional float green, optional float blue); 335 method public long getValue(); 336 property @androidx.compose.runtime.Stable public final float alpha; 337 property @androidx.compose.runtime.Stable public final float blue; 338 property @androidx.compose.runtime.Stable public final androidx.compose.ui.graphics.colorspace.ColorSpace colorSpace; 339 property @androidx.compose.runtime.Stable public final float green; 340 property @androidx.compose.runtime.Stable public final float red; 341 property public final long value; 342 field public static final androidx.compose.ui.graphics.Color.Companion Companion; 343 } 344 345 public static final class Color.Companion { 346 method public long getBlack(); 347 method public long getBlue(); 348 method public long getCyan(); 349 method public long getDarkGray(); 350 method public long getGray(); 351 method public long getGreen(); 352 method public long getLightGray(); 353 method public long getMagenta(); 354 method public long getRed(); 355 method public long getTransparent(); 356 method public long getUnspecified(); 357 method public long getWhite(); 358 method public long getYellow(); 359 method public long hsl(float hue, float saturation, float lightness, optional float alpha, optional androidx.compose.ui.graphics.colorspace.Rgb colorSpace); 360 method public long hsv(float hue, float saturation, float value, optional float alpha, optional androidx.compose.ui.graphics.colorspace.Rgb colorSpace); 361 property @androidx.compose.runtime.Stable public final long Black; 362 property @androidx.compose.runtime.Stable public final long Blue; 363 property @androidx.compose.runtime.Stable public final long Cyan; 364 property @androidx.compose.runtime.Stable public final long DarkGray; 365 property @androidx.compose.runtime.Stable public final long Gray; 366 property @androidx.compose.runtime.Stable public final long Green; 367 property @androidx.compose.runtime.Stable public final long LightGray; 368 property @androidx.compose.runtime.Stable public final long Magenta; 369 property @androidx.compose.runtime.Stable public final long Red; 370 property @androidx.compose.runtime.Stable public final long Transparent; 371 property @androidx.compose.runtime.Stable public final long Unspecified; 372 property @androidx.compose.runtime.Stable public final long White; 373 property @androidx.compose.runtime.Stable public final long Yellow; 374 } 375 376 @androidx.compose.runtime.Immutable public class ColorFilter { 377 field public static final androidx.compose.ui.graphics.ColorFilter.Companion Companion; 378 } 379 380 public static final class ColorFilter.Companion { 381 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.ColorFilter colorMatrix(float[] colorMatrix); 382 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.ColorFilter lighting(long multiply, long add); 383 method @androidx.compose.runtime.Stable public androidx.compose.ui.graphics.ColorFilter tint(long color, optional int blendMode); 384 } 385 386 public final class ColorKt { 387 method @androidx.compose.runtime.Stable public static long Color(float red, float green, float blue, optional float alpha, optional androidx.compose.ui.graphics.colorspace.ColorSpace colorSpace); 388 method @androidx.compose.runtime.Stable public static long Color(@ColorInt int color); 389 method @androidx.compose.runtime.Stable public static long Color(@IntRange(from=0L, to=255L) int red, @IntRange(from=0L, to=255L) int green, @IntRange(from=0L, to=255L) int blue, optional @IntRange(from=0L, to=255L) int alpha); 390 method @androidx.compose.runtime.Stable public static long Color(long color); 391 method @androidx.compose.runtime.Stable public static long compositeOver(long, long background); 392 method public static inline boolean isSpecified(long); 393 method public static inline boolean isUnspecified(long); 394 method @androidx.compose.runtime.Stable public static long lerp(long start, long stop, @FloatRange(from=0.0, to=1.0) float fraction); 395 method @androidx.compose.runtime.Stable public static float luminance(long); 396 method public static inline long takeOrElse(long, kotlin.jvm.functions.Function0<androidx.compose.ui.graphics.Color> block); 397 method @ColorInt @androidx.compose.runtime.Stable public static int toArgb(long); 398 } 399 400 @kotlin.jvm.JvmInline public final value class ColorMatrix { 401 ctor public ColorMatrix(optional float[] values); 402 method public void convertRgbToYuv(); 403 method public void convertYuvToRgb(); 404 method public inline operator float get(int row, int column); 405 method public float[] getValues(); 406 method public inline void reset(); 407 method public void set(float[] src); 408 method public inline operator void set(int row, int column, float v); 409 method public void setToRotateBlue(float degrees); 410 method public void setToRotateGreen(float degrees); 411 method public void setToRotateRed(float degrees); 412 method public void setToSaturation(float sat); 413 method public void setToScale(float redScale, float greenScale, float blueScale, float alphaScale); 414 method public operator void timesAssign(float[] colorMatrix); 415 property public final float[] values; 416 } 417 418 @androidx.compose.runtime.Immutable public final class ColorMatrixColorFilter extends androidx.compose.ui.graphics.ColorFilter { 419 ctor public ColorMatrixColorFilter(float[] colorMatrix); 420 method public float[] copyColorMatrix(optional float[] targetColorMatrix); 421 } 422 423 public fun interface ColorProducer { 424 method public operator long invoke(); 425 } 426 427 @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 ExperimentalGraphicsApi { 428 } 429 430 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class FilterQuality { 431 method public int getValue(); 432 property public final int value; 433 field public static final androidx.compose.ui.graphics.FilterQuality.Companion Companion; 434 } 435 436 public static final class FilterQuality.Companion { 437 method public int getHigh(); 438 method public int getLow(); 439 method public int getMedium(); 440 method public int getNone(); 441 property public final int High; 442 property public final int Low; 443 property public final int Medium; 444 property public final int None; 445 } 446 447 public interface GraphicsContext { 448 method public androidx.compose.ui.graphics.layer.GraphicsLayer createGraphicsLayer(); 449 method public void releaseGraphicsLayer(androidx.compose.ui.graphics.layer.GraphicsLayer layer); 450 } 451 452 @kotlin.jvm.JvmDefaultWithCompatibility public interface ImageBitmap { 453 method public androidx.compose.ui.graphics.colorspace.ColorSpace getColorSpace(); 454 method public int getConfig(); 455 method public boolean getHasAlpha(); 456 method public int getHeight(); 457 method public int getWidth(); 458 method public void prepareToDraw(); 459 method public void readPixels(int[] buffer, optional int startX, optional int startY, optional int width, optional int height, optional int bufferOffset, optional int stride); 460 property public abstract androidx.compose.ui.graphics.colorspace.ColorSpace colorSpace; 461 property public abstract int config; 462 property public abstract boolean hasAlpha; 463 property public abstract int height; 464 property public abstract int width; 465 field public static final androidx.compose.ui.graphics.ImageBitmap.Companion Companion; 466 } 467 468 public static final class ImageBitmap.Companion { 469 } 470 471 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class ImageBitmapConfig { 472 method public int getValue(); 473 property public final int value; 474 field public static final androidx.compose.ui.graphics.ImageBitmapConfig.Companion Companion; 475 } 476 477 public static final class ImageBitmapConfig.Companion { 478 method public int getAlpha8(); 479 method public int getArgb8888(); 480 method public int getF16(); 481 method public int getGpu(); 482 method public int getRgb565(); 483 property public final int Alpha8; 484 property public final int Argb8888; 485 property public final int F16; 486 property public final int Gpu; 487 property public final int Rgb565; 488 } 489 490 public final class ImageBitmapKt { 491 method public static androidx.compose.ui.graphics.ImageBitmap ImageBitmap(int width, int height, optional int config, optional boolean hasAlpha, optional androidx.compose.ui.graphics.colorspace.ColorSpace colorSpace); 492 method public static androidx.compose.ui.graphics.ImageBitmap decodeToImageBitmap(byte[]); 493 method public static androidx.compose.ui.graphics.PixelMap toPixelMap(androidx.compose.ui.graphics.ImageBitmap, optional int startX, optional int startY, optional int width, optional int height, optional int[] buffer, optional int bufferOffset, optional int stride); 494 } 495 496 @androidx.compose.runtime.Immutable public final class LightingColorFilter extends androidx.compose.ui.graphics.ColorFilter { 497 ctor public LightingColorFilter(long multiply, long add); 498 method public long getAdd(); 499 method public long getMultiply(); 500 property public final long add; 501 property public final long multiply; 502 } 503 504 @androidx.compose.runtime.Immutable public final class LinearGradient extends androidx.compose.ui.graphics.ShaderBrush { 505 method public android.graphics.Shader createShader(long size); 506 property public long intrinsicSize; 507 } 508 509 @kotlin.jvm.JvmInline public final value class Matrix { 510 ctor public Matrix(optional float[] values); 511 method public inline operator float get(int row, int column); 512 method public float[] getValues(); 513 method public void invert(); 514 method public void map(androidx.compose.ui.geometry.MutableRect rect); 515 method public androidx.compose.ui.geometry.Rect map(androidx.compose.ui.geometry.Rect rect); 516 method public long map(long point); 517 method public void reset(); 518 method public void resetToPivotedTransform(optional float pivotX, optional float pivotY, optional float translationX, optional float translationY, optional float translationZ, optional float rotationX, optional float rotationY, optional float rotationZ, optional float scaleX, optional float scaleY, optional float scaleZ); 519 method public void rotateX(float degrees); 520 method public void rotateY(float degrees); 521 method public void rotateZ(float degrees); 522 method public void scale(optional float x, optional float y, optional float z); 523 method public inline operator void set(int row, int column, float v); 524 method public void setFrom(float[] matrix); 525 method public operator void timesAssign(float[] m); 526 method public void translate(optional float x, optional float y, optional float z); 527 property public final float[] values; 528 field public static final androidx.compose.ui.graphics.Matrix.Companion Companion; 529 field public static final int Perspective0 = 3; // 0x3 530 field public static final int Perspective1 = 7; // 0x7 531 field public static final int Perspective2 = 15; // 0xf 532 field public static final int ScaleX = 0; // 0x0 533 field public static final int ScaleY = 5; // 0x5 534 field public static final int ScaleZ = 10; // 0xa 535 field public static final int SkewX = 4; // 0x4 536 field public static final int SkewY = 1; // 0x1 537 field public static final int TranslateX = 12; // 0xc 538 field public static final int TranslateY = 13; // 0xd 539 field public static final int TranslateZ = 14; // 0xe 540 } 541 542 public static final class Matrix.Companion { 543 property public static final int Perspective0; 544 property public static final int Perspective1; 545 property public static final int Perspective2; 546 property public static final int ScaleX; 547 property public static final int ScaleY; 548 property public static final int ScaleZ; 549 property public static final int SkewX; 550 property public static final int SkewY; 551 property public static final int TranslateX; 552 property public static final int TranslateY; 553 property public static final int TranslateZ; 554 } 555 556 public final class MatrixKt { 557 method public static boolean isIdentity(float[]); 558 } 559 560 @androidx.compose.runtime.Immutable public final class OffsetEffect extends androidx.compose.ui.graphics.RenderEffect { 561 ctor public OffsetEffect(androidx.compose.ui.graphics.RenderEffect? renderEffect, long offset); 562 method @RequiresApi(android.os.Build.VERSION_CODES.S) protected android.graphics.RenderEffect createRenderEffect(); 563 } 564 565 public abstract sealed class Outline { 566 method public abstract androidx.compose.ui.geometry.Rect getBounds(); 567 property public abstract androidx.compose.ui.geometry.Rect bounds; 568 } 569 570 public static final class Outline.Generic extends androidx.compose.ui.graphics.Outline { 571 ctor public Outline.Generic(androidx.compose.ui.graphics.Path path); 572 method public androidx.compose.ui.geometry.Rect getBounds(); 573 method public androidx.compose.ui.graphics.Path getPath(); 574 property public androidx.compose.ui.geometry.Rect bounds; 575 property public final androidx.compose.ui.graphics.Path path; 576 } 577 578 @androidx.compose.runtime.Immutable public static final class Outline.Rectangle extends androidx.compose.ui.graphics.Outline { 579 ctor public Outline.Rectangle(androidx.compose.ui.geometry.Rect rect); 580 method public androidx.compose.ui.geometry.Rect getBounds(); 581 method public androidx.compose.ui.geometry.Rect getRect(); 582 property public androidx.compose.ui.geometry.Rect bounds; 583 property public final androidx.compose.ui.geometry.Rect rect; 584 } 585 586 @androidx.compose.runtime.Immutable public static final class Outline.Rounded extends androidx.compose.ui.graphics.Outline { 587 ctor public Outline.Rounded(androidx.compose.ui.geometry.RoundRect roundRect); 588 method public androidx.compose.ui.geometry.Rect getBounds(); 589 method public androidx.compose.ui.geometry.RoundRect getRoundRect(); 590 property public androidx.compose.ui.geometry.Rect bounds; 591 property public final androidx.compose.ui.geometry.RoundRect roundRect; 592 } 593 594 public final class OutlineKt { 595 method public static void addOutline(androidx.compose.ui.graphics.Path, androidx.compose.ui.graphics.Outline outline); 596 method public static void drawOutline(androidx.compose.ui.graphics.Canvas, androidx.compose.ui.graphics.Outline outline, androidx.compose.ui.graphics.Paint paint); 597 method public static void drawOutline(androidx.compose.ui.graphics.drawscope.DrawScope, androidx.compose.ui.graphics.Outline outline, androidx.compose.ui.graphics.Brush brush, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 598 method public static void drawOutline(androidx.compose.ui.graphics.drawscope.DrawScope, androidx.compose.ui.graphics.Outline outline, long color, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 599 } 600 601 public interface Paint { 602 method public android.graphics.Paint asFrameworkPaint(); 603 method public float getAlpha(); 604 method public int getBlendMode(); 605 method public long getColor(); 606 method public androidx.compose.ui.graphics.ColorFilter? getColorFilter(); 607 method public int getFilterQuality(); 608 method public androidx.compose.ui.graphics.PathEffect? getPathEffect(); 609 method public android.graphics.Shader? getShader(); 610 method public int getStrokeCap(); 611 method public int getStrokeJoin(); 612 method public float getStrokeMiterLimit(); 613 method public float getStrokeWidth(); 614 method public int getStyle(); 615 method public boolean isAntiAlias(); 616 method public void setAlpha(float); 617 method public void setAntiAlias(boolean); 618 method public void setBlendMode(int); 619 method public void setColor(long); 620 method public void setColorFilter(androidx.compose.ui.graphics.ColorFilter?); 621 method public void setFilterQuality(int); 622 method public void setPathEffect(androidx.compose.ui.graphics.PathEffect?); 623 method public void setShader(android.graphics.Shader?); 624 method public void setStrokeCap(int); 625 method public void setStrokeJoin(int); 626 method public void setStrokeMiterLimit(float); 627 method public void setStrokeWidth(float); 628 method public void setStyle(int); 629 property public abstract float alpha; 630 property public abstract int blendMode; 631 property public abstract long color; 632 property public abstract androidx.compose.ui.graphics.ColorFilter? colorFilter; 633 property public abstract int filterQuality; 634 property public abstract boolean isAntiAlias; 635 property public abstract androidx.compose.ui.graphics.PathEffect? pathEffect; 636 property public abstract android.graphics.Shader? shader; 637 property public abstract int strokeCap; 638 property public abstract int strokeJoin; 639 property public abstract float strokeMiterLimit; 640 property public abstract float strokeWidth; 641 property public abstract int style; 642 } 643 644 public final class PaintKt { 645 property public static final float DefaultAlpha; 646 field public static final float DefaultAlpha = 1.0f; 647 } 648 649 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class PaintingStyle { 650 field public static final androidx.compose.ui.graphics.PaintingStyle.Companion Companion; 651 } 652 653 public static final class PaintingStyle.Companion { 654 method public int getFill(); 655 method public int getStroke(); 656 property public final int Fill; 657 property public final int Stroke; 658 } 659 660 @kotlin.jvm.JvmDefaultWithCompatibility public interface Path { 661 method public void addArc(androidx.compose.ui.geometry.Rect oval, float startAngleDegrees, float sweepAngleDegrees); 662 method public void addArcRad(androidx.compose.ui.geometry.Rect oval, float startAngleRadians, float sweepAngleRadians); 663 method @Deprecated public void addOval(androidx.compose.ui.geometry.Rect oval); 664 method public void addOval(androidx.compose.ui.geometry.Rect oval, optional androidx.compose.ui.graphics.Path.Direction direction); 665 method public void addPath(androidx.compose.ui.graphics.Path path, optional long offset); 666 method @Deprecated public void addRect(androidx.compose.ui.geometry.Rect rect); 667 method public void addRect(androidx.compose.ui.geometry.Rect rect, optional androidx.compose.ui.graphics.Path.Direction direction); 668 method @Deprecated public void addRoundRect(androidx.compose.ui.geometry.RoundRect roundRect); 669 method public void addRoundRect(androidx.compose.ui.geometry.RoundRect roundRect, optional androidx.compose.ui.graphics.Path.Direction direction); 670 method public default infix androidx.compose.ui.graphics.Path and(androidx.compose.ui.graphics.Path path); 671 method public void arcTo(androidx.compose.ui.geometry.Rect rect, float startAngleDegrees, float sweepAngleDegrees, boolean forceMoveTo); 672 method public default void arcToRad(androidx.compose.ui.geometry.Rect rect, float startAngleRadians, float sweepAngleRadians, boolean forceMoveTo); 673 method public void close(); 674 method public void cubicTo(float x1, float y1, float x2, float y2, float x3, float y3); 675 method public androidx.compose.ui.geometry.Rect getBounds(); 676 method public int getFillType(); 677 method public boolean isConvex(); 678 method public boolean isEmpty(); 679 method public default operator androidx.compose.ui.graphics.PathIterator iterator(); 680 method public default androidx.compose.ui.graphics.PathIterator iterator(androidx.compose.ui.graphics.PathIterator.ConicEvaluation conicEvaluation, optional float tolerance); 681 method public void lineTo(float x, float y); 682 method public default operator androidx.compose.ui.graphics.Path minus(androidx.compose.ui.graphics.Path path); 683 method public void moveTo(float x, float y); 684 method public boolean op(androidx.compose.ui.graphics.Path path1, androidx.compose.ui.graphics.Path path2, int operation); 685 method public default infix androidx.compose.ui.graphics.Path or(androidx.compose.ui.graphics.Path path); 686 method public default operator androidx.compose.ui.graphics.Path plus(androidx.compose.ui.graphics.Path path); 687 method @Deprecated public void quadraticBezierTo(float x1, float y1, float x2, float y2); 688 method public default void quadraticTo(float x1, float y1, float x2, float y2); 689 method public void relativeCubicTo(float dx1, float dy1, float dx2, float dy2, float dx3, float dy3); 690 method public void relativeLineTo(float dx, float dy); 691 method public void relativeMoveTo(float dx, float dy); 692 method @Deprecated public void relativeQuadraticBezierTo(float dx1, float dy1, float dx2, float dy2); 693 method public default void relativeQuadraticTo(float dx1, float dy1, float dx2, float dy2); 694 method public void reset(); 695 method public default void rewind(); 696 method public void setFillType(int); 697 method public default void transform(float[] matrix); 698 method public void translate(long offset); 699 method public default infix androidx.compose.ui.graphics.Path xor(androidx.compose.ui.graphics.Path path); 700 property public abstract int fillType; 701 property public abstract boolean isConvex; 702 property public abstract boolean isEmpty; 703 field public static final androidx.compose.ui.graphics.Path.Companion Companion; 704 } 705 706 public static final class Path.Companion { 707 method public androidx.compose.ui.graphics.Path combine(int operation, androidx.compose.ui.graphics.Path path1, androidx.compose.ui.graphics.Path path2); 708 } 709 710 public enum Path.Direction { 711 enum_constant public static final androidx.compose.ui.graphics.Path.Direction Clockwise; 712 enum_constant public static final androidx.compose.ui.graphics.Path.Direction CounterClockwise; 713 } 714 715 public interface PathEffect { 716 field public static final androidx.compose.ui.graphics.PathEffect.Companion Companion; 717 } 718 719 public static final class PathEffect.Companion { 720 method public androidx.compose.ui.graphics.PathEffect chainPathEffect(androidx.compose.ui.graphics.PathEffect outer, androidx.compose.ui.graphics.PathEffect inner); 721 method public androidx.compose.ui.graphics.PathEffect cornerPathEffect(float radius); 722 method public androidx.compose.ui.graphics.PathEffect dashPathEffect(float[] intervals, optional float phase); 723 method public androidx.compose.ui.graphics.PathEffect stampedPathEffect(androidx.compose.ui.graphics.Path shape, float advance, float phase, int style); 724 } 725 726 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class PathFillType { 727 field public static final androidx.compose.ui.graphics.PathFillType.Companion Companion; 728 } 729 730 public static final class PathFillType.Companion { 731 method public int getEvenOdd(); 732 method public int getNonZero(); 733 property public final int EvenOdd; 734 property public final int NonZero; 735 } 736 737 public final class PathGeometryKt { 738 method public static androidx.compose.ui.graphics.Path.Direction computeDirection(androidx.compose.ui.graphics.Path); 739 method public static java.util.List<androidx.compose.ui.graphics.Path> divide(androidx.compose.ui.graphics.Path, optional java.util.List<androidx.compose.ui.graphics.Path> contours); 740 method public static androidx.compose.ui.graphics.Path reverse(androidx.compose.ui.graphics.Path, optional androidx.compose.ui.graphics.Path destination); 741 } 742 743 public final class PathHitTester { 744 ctor public PathHitTester(); 745 method public operator boolean contains(long position); 746 method public void updatePath(androidx.compose.ui.graphics.Path path, optional @FloatRange(from=0.0) float tolerance); 747 } 748 749 public final class PathHitTesterKt { 750 method public static androidx.compose.ui.graphics.PathHitTester PathHitTester(androidx.compose.ui.graphics.Path path, optional @FloatRange(from=0.0) float tolerance); 751 } 752 753 public interface PathIterator extends java.util.Iterator<androidx.compose.ui.graphics.PathSegment> kotlin.jvm.internal.markers.KMappedMarker { 754 method public int calculateSize(optional boolean includeConvertedConics); 755 method public androidx.compose.ui.graphics.PathIterator.ConicEvaluation getConicEvaluation(); 756 method public androidx.compose.ui.graphics.Path getPath(); 757 method public float getTolerance(); 758 method public androidx.compose.ui.graphics.PathSegment next(); 759 method public androidx.compose.ui.graphics.PathSegment.Type next(float[] outPoints, optional int offset); 760 property public abstract androidx.compose.ui.graphics.PathIterator.ConicEvaluation conicEvaluation; 761 property public abstract androidx.compose.ui.graphics.Path path; 762 property public abstract float tolerance; 763 } 764 765 public enum PathIterator.ConicEvaluation { 766 enum_constant public static final androidx.compose.ui.graphics.PathIterator.ConicEvaluation AsConic; 767 enum_constant public static final androidx.compose.ui.graphics.PathIterator.ConicEvaluation AsQuadratics; 768 } 769 770 public final class PathKt { 771 method public static androidx.compose.ui.graphics.Path copy(androidx.compose.ui.graphics.Path); 772 } 773 774 @kotlin.jvm.JvmDefaultWithCompatibility public interface PathMeasure { 775 method public float getLength(); 776 method public long getPosition(float distance); 777 method public boolean getSegment(float startDistance, float stopDistance, androidx.compose.ui.graphics.Path destination, optional boolean startWithMoveTo); 778 method public long getTangent(float distance); 779 method public void setPath(androidx.compose.ui.graphics.Path? path, boolean forceClosed); 780 property public abstract float length; 781 } 782 783 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class PathOperation { 784 field public static final androidx.compose.ui.graphics.PathOperation.Companion Companion; 785 } 786 787 public static final class PathOperation.Companion { 788 method public int getDifference(); 789 method public int getIntersect(); 790 method public int getReverseDifference(); 791 method public int getUnion(); 792 method public int getXor(); 793 property public final int Difference; 794 property public final int Intersect; 795 property public final int ReverseDifference; 796 property public final int Union; 797 property public final int Xor; 798 } 799 800 public final class PathOperationKt { 801 method @Deprecated public static int getDifference(androidx.compose.ui.graphics.PathOperation.Companion); 802 method @Deprecated public static int getIntersect(androidx.compose.ui.graphics.PathOperation.Companion); 803 method @Deprecated public static int getReverseDifference(androidx.compose.ui.graphics.PathOperation.Companion); 804 method @Deprecated public static int getUnion(androidx.compose.ui.graphics.PathOperation.Companion); 805 method @Deprecated public static int getXor(androidx.compose.ui.graphics.PathOperation.Companion); 806 } 807 808 public final class PathSegment { 809 method public float[] getPoints(); 810 method public androidx.compose.ui.graphics.PathSegment.Type getType(); 811 method public float getWeight(); 812 property public final float[] points; 813 property public final androidx.compose.ui.graphics.PathSegment.Type type; 814 property public final float weight; 815 } 816 817 public enum PathSegment.Type { 818 enum_constant public static final androidx.compose.ui.graphics.PathSegment.Type Close; 819 enum_constant public static final androidx.compose.ui.graphics.PathSegment.Type Conic; 820 enum_constant public static final androidx.compose.ui.graphics.PathSegment.Type Cubic; 821 enum_constant public static final androidx.compose.ui.graphics.PathSegment.Type Done; 822 enum_constant public static final androidx.compose.ui.graphics.PathSegment.Type Line; 823 enum_constant public static final androidx.compose.ui.graphics.PathSegment.Type Move; 824 enum_constant public static final androidx.compose.ui.graphics.PathSegment.Type Quadratic; 825 } 826 827 public final class PathSegmentKt { 828 method public static androidx.compose.ui.graphics.PathSegment getCloseSegment(); 829 method public static androidx.compose.ui.graphics.PathSegment getDoneSegment(); 830 property public static final androidx.compose.ui.graphics.PathSegment CloseSegment; 831 property public static final androidx.compose.ui.graphics.PathSegment DoneSegment; 832 } 833 834 public final class PathSvgKt { 835 method public static void addSvg(androidx.compose.ui.graphics.Path, String pathData); 836 method public static String toSvg(androidx.compose.ui.graphics.Path, optional boolean asDocument); 837 } 838 839 public final class PixelMap { 840 ctor public PixelMap(int[] buffer, int width, int height, int bufferOffset, int stride); 841 method public operator long get(@IntRange(from=0L) int x, @IntRange(from=0L) int y); 842 method public int[] getBuffer(); 843 method public int getBufferOffset(); 844 method public int getHeight(); 845 method public int getStride(); 846 method public int getWidth(); 847 property public final int[] buffer; 848 property public final int bufferOffset; 849 property public final int height; 850 property public final int stride; 851 property public final int width; 852 } 853 854 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class PointMode { 855 field public static final androidx.compose.ui.graphics.PointMode.Companion Companion; 856 } 857 858 public static final class PointMode.Companion { 859 method public int getLines(); 860 method public int getPoints(); 861 method public int getPolygon(); 862 property public final int Lines; 863 property public final int Points; 864 property public final int Polygon; 865 } 866 867 @androidx.compose.runtime.Immutable public final class RadialGradient extends androidx.compose.ui.graphics.ShaderBrush { 868 method public android.graphics.Shader createShader(long size); 869 property public long intrinsicSize; 870 } 871 872 public final class RectHelper_androidKt { 873 method @Deprecated public static android.graphics.Rect toAndroidRect(androidx.compose.ui.geometry.Rect); 874 method public static android.graphics.Rect toAndroidRect(androidx.compose.ui.unit.IntRect); 875 method public static android.graphics.RectF toAndroidRectF(androidx.compose.ui.geometry.Rect); 876 method public static androidx.compose.ui.unit.IntRect toComposeIntRect(android.graphics.Rect); 877 method public static androidx.compose.ui.geometry.Rect toComposeRect(android.graphics.Rect); 878 method public static androidx.compose.ui.geometry.Rect toComposeRect(android.graphics.RectF); 879 } 880 881 public final class RectangleShapeKt { 882 method public static androidx.compose.ui.graphics.Shape getRectangleShape(); 883 property @androidx.compose.runtime.Stable public static final androidx.compose.ui.graphics.Shape RectangleShape; 884 } 885 886 @androidx.compose.runtime.Immutable public abstract sealed class RenderEffect { 887 method @RequiresApi(android.os.Build.VERSION_CODES.S) public final android.graphics.RenderEffect asAndroidRenderEffect(); 888 method @RequiresApi(android.os.Build.VERSION_CODES.S) protected abstract android.graphics.RenderEffect createRenderEffect(); 889 method public boolean isSupported(); 890 } 891 892 public final class RenderEffectKt { 893 method @androidx.compose.runtime.Stable public static androidx.compose.ui.graphics.BlurEffect BlurEffect(float radiusX, float radiusY, optional int edgeTreatment); 894 method @androidx.compose.runtime.Stable public static androidx.compose.ui.graphics.OffsetEffect OffsetEffect(float offsetX, float offsetY); 895 } 896 897 @androidx.compose.runtime.Immutable public abstract class ShaderBrush extends androidx.compose.ui.graphics.Brush { 898 ctor public ShaderBrush(); 899 method public final void applyTo(long size, androidx.compose.ui.graphics.Paint p, float alpha); 900 method public abstract android.graphics.Shader createShader(long size); 901 } 902 903 public final class ShaderKt { 904 method public static android.graphics.Shader ImageShader(androidx.compose.ui.graphics.ImageBitmap image, optional int tileModeX, optional int tileModeY); 905 method public static android.graphics.Shader LinearGradientShader(long from, long to, java.util.List<androidx.compose.ui.graphics.Color> colors, optional java.util.List<java.lang.Float>? colorStops, optional int tileMode); 906 method public static android.graphics.Shader RadialGradientShader(long center, float radius, java.util.List<androidx.compose.ui.graphics.Color> colors, optional java.util.List<java.lang.Float>? colorStops, optional int tileMode); 907 method public static android.graphics.Shader SweepGradientShader(long center, java.util.List<androidx.compose.ui.graphics.Color> colors, optional java.util.List<java.lang.Float>? colorStops); 908 } 909 910 @androidx.compose.runtime.Immutable public final class Shadow { 911 ctor public Shadow(); 912 ctor public Shadow(optional @androidx.compose.runtime.Stable long color, optional @androidx.compose.runtime.Stable long offset, optional @androidx.compose.runtime.Stable float blurRadius); 913 method public androidx.compose.ui.graphics.Shadow copy(optional long color, optional long offset, optional float blurRadius); 914 method public float getBlurRadius(); 915 method public long getColor(); 916 method public long getOffset(); 917 property @androidx.compose.runtime.Stable public final float blurRadius; 918 property @androidx.compose.runtime.Stable public final long color; 919 property @androidx.compose.runtime.Stable public final long offset; 920 field public static final androidx.compose.ui.graphics.Shadow.Companion Companion; 921 } 922 923 public static final class Shadow.Companion { 924 method public androidx.compose.ui.graphics.Shadow getNone(); 925 property @androidx.compose.runtime.Stable public final androidx.compose.ui.graphics.Shadow None; 926 } 927 928 public final class ShadowKt { 929 method @androidx.compose.runtime.Stable public static androidx.compose.ui.graphics.Shadow lerp(androidx.compose.ui.graphics.Shadow start, androidx.compose.ui.graphics.Shadow stop, float fraction); 930 } 931 932 @androidx.compose.runtime.Stable public interface Shape { 933 method public androidx.compose.ui.graphics.Outline createOutline(long size, androidx.compose.ui.unit.LayoutDirection layoutDirection, androidx.compose.ui.unit.Density density); 934 } 935 936 @androidx.compose.runtime.Immutable public final class SolidColor extends androidx.compose.ui.graphics.Brush { 937 ctor public SolidColor(long value); 938 method public void applyTo(long size, androidx.compose.ui.graphics.Paint p, float alpha); 939 method public long getValue(); 940 property public final long value; 941 } 942 943 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class StampedPathEffectStyle { 944 field public static final androidx.compose.ui.graphics.StampedPathEffectStyle.Companion Companion; 945 } 946 947 public static final class StampedPathEffectStyle.Companion { 948 method public int getMorph(); 949 method public int getRotate(); 950 method public int getTranslate(); 951 property public final int Morph; 952 property public final int Rotate; 953 property public final int Translate; 954 } 955 956 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class StrokeCap { 957 field public static final androidx.compose.ui.graphics.StrokeCap.Companion Companion; 958 } 959 960 public static final class StrokeCap.Companion { 961 method public int getButt(); 962 method public int getRound(); 963 method public int getSquare(); 964 property public final int Butt; 965 property public final int Round; 966 property public final int Square; 967 } 968 969 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class StrokeJoin { 970 field public static final androidx.compose.ui.graphics.StrokeJoin.Companion Companion; 971 } 972 973 public static final class StrokeJoin.Companion { 974 method public int getBevel(); 975 method public int getMiter(); 976 method public int getRound(); 977 property public final int Bevel; 978 property public final int Miter; 979 property public final int Round; 980 } 981 982 @androidx.compose.runtime.Immutable public final class SweepGradient extends androidx.compose.ui.graphics.ShaderBrush { 983 method public android.graphics.Shader createShader(long size); 984 } 985 986 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class TileMode { 987 field public static final androidx.compose.ui.graphics.TileMode.Companion Companion; 988 } 989 990 public static final class TileMode.Companion { 991 method public int getClamp(); 992 method public int getDecal(); 993 method public int getMirror(); 994 method public int getRepeated(); 995 property public final int Clamp; 996 property public final int Decal; 997 property public final int Mirror; 998 property public final int Repeated; 999 } 1000 1001 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class VertexMode { 1002 field public static final androidx.compose.ui.graphics.VertexMode.Companion Companion; 1003 } 1004 1005 public static final class VertexMode.Companion { 1006 method public int getTriangleFan(); 1007 method public int getTriangleStrip(); 1008 method public int getTriangles(); 1009 property public final int TriangleFan; 1010 property public final int TriangleStrip; 1011 property public final int Triangles; 1012 } 1013 1014 public final class Vertices { 1015 ctor public Vertices(int vertexMode, java.util.List<androidx.compose.ui.geometry.Offset> positions, java.util.List<androidx.compose.ui.geometry.Offset> textureCoordinates, java.util.List<androidx.compose.ui.graphics.Color> colors, java.util.List<java.lang.Integer> indices); 1016 method public int[] getColors(); 1017 method public short[] getIndices(); 1018 method public float[] getPositions(); 1019 method public float[] getTextureCoordinates(); 1020 method public int getVertexMode(); 1021 property public final int[] colors; 1022 property public final short[] indices; 1023 property public final float[] positions; 1024 property public final float[] textureCoordinates; 1025 property public final int vertexMode; 1026 } 1027 1028} 1029 1030package androidx.compose.ui.graphics.colorspace { 1031 1032 public abstract class Adaptation { 1033 field public static final androidx.compose.ui.graphics.colorspace.Adaptation.Companion Companion; 1034 } 1035 1036 public static final class Adaptation.Companion { 1037 method public androidx.compose.ui.graphics.colorspace.Adaptation getBradford(); 1038 method public androidx.compose.ui.graphics.colorspace.Adaptation getCiecat02(); 1039 method public androidx.compose.ui.graphics.colorspace.Adaptation getVonKries(); 1040 property public final androidx.compose.ui.graphics.colorspace.Adaptation Bradford; 1041 property public final androidx.compose.ui.graphics.colorspace.Adaptation Ciecat02; 1042 property public final androidx.compose.ui.graphics.colorspace.Adaptation VonKries; 1043 } 1044 1045 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class ColorModel { 1046 property @androidx.compose.runtime.Stable public final int componentCount; 1047 field public static final androidx.compose.ui.graphics.colorspace.ColorModel.Companion Companion; 1048 } 1049 1050 public static final class ColorModel.Companion { 1051 method public long getCmyk(); 1052 method public long getLab(); 1053 method public long getRgb(); 1054 method public long getXyz(); 1055 property public final long Cmyk; 1056 property public final long Lab; 1057 property public final long Rgb; 1058 property public final long Xyz; 1059 } 1060 1061 public abstract class ColorSpace { 1062 ctor public ColorSpace(String name, long model); 1063 method @Size(min=3L) public final float[] fromXyz(float x, float y, float z); 1064 method @Size(min=3L) public abstract float[] fromXyz(@Size(min=3L) float[] v); 1065 method @IntRange(from=1L, to=4L) public final int getComponentCount(); 1066 method public abstract float getMaxValue(@IntRange(from=0L, to=3L) int component); 1067 method public abstract float getMinValue(@IntRange(from=0L, to=3L) int component); 1068 method public final long getModel(); 1069 method public final String getName(); 1070 method public boolean isSrgb(); 1071 method public abstract boolean isWideGamut(); 1072 method @Size(3L) public final float[] toXyz(float r, float g, float b); 1073 method @Size(min=3L) public abstract float[] toXyz(@Size(min=3L) float[] v); 1074 property @IntRange(from=1L, to=4L) public final int componentCount; 1075 property public boolean isSrgb; 1076 property public abstract boolean isWideGamut; 1077 property public final long model; 1078 property public final String name; 1079 } 1080 1081 public final class ColorSpaceKt { 1082 method public static androidx.compose.ui.graphics.colorspace.ColorSpace adapt(androidx.compose.ui.graphics.colorspace.ColorSpace, androidx.compose.ui.graphics.colorspace.WhitePoint whitePoint); 1083 method public static androidx.compose.ui.graphics.colorspace.ColorSpace adapt(androidx.compose.ui.graphics.colorspace.ColorSpace, androidx.compose.ui.graphics.colorspace.WhitePoint whitePoint, optional androidx.compose.ui.graphics.colorspace.Adaptation adaptation); 1084 method public static androidx.compose.ui.graphics.colorspace.Connector connect(androidx.compose.ui.graphics.colorspace.ColorSpace, optional androidx.compose.ui.graphics.colorspace.ColorSpace destination, optional int intent); 1085 } 1086 1087 public final class ColorSpaces { 1088 method public androidx.compose.ui.graphics.colorspace.Rgb getAces(); 1089 method public androidx.compose.ui.graphics.colorspace.Rgb getAcescg(); 1090 method public androidx.compose.ui.graphics.colorspace.Rgb getAdobeRgb(); 1091 method public androidx.compose.ui.graphics.colorspace.Rgb getBt2020(); 1092 method public androidx.compose.ui.graphics.colorspace.Rgb getBt2020Hlg(); 1093 method public androidx.compose.ui.graphics.colorspace.Rgb getBt2020Pq(); 1094 method public androidx.compose.ui.graphics.colorspace.Rgb getBt709(); 1095 method public androidx.compose.ui.graphics.colorspace.ColorSpace getCieLab(); 1096 method public androidx.compose.ui.graphics.colorspace.ColorSpace getCieXyz(); 1097 method public androidx.compose.ui.graphics.colorspace.Rgb getDciP3(); 1098 method public androidx.compose.ui.graphics.colorspace.Rgb getDisplayP3(); 1099 method public androidx.compose.ui.graphics.colorspace.Rgb getExtendedSrgb(); 1100 method public androidx.compose.ui.graphics.colorspace.Rgb getLinearExtendedSrgb(); 1101 method public androidx.compose.ui.graphics.colorspace.Rgb getLinearSrgb(); 1102 method public androidx.compose.ui.graphics.colorspace.Rgb getNtsc1953(); 1103 method public androidx.compose.ui.graphics.colorspace.ColorSpace getOklab(); 1104 method public androidx.compose.ui.graphics.colorspace.Rgb getProPhotoRgb(); 1105 method public androidx.compose.ui.graphics.colorspace.Rgb getSmpteC(); 1106 method public androidx.compose.ui.graphics.colorspace.Rgb getSrgb(); 1107 method public androidx.compose.ui.graphics.colorspace.ColorSpace? match(@Size(9L) float[] toXYZD50, androidx.compose.ui.graphics.colorspace.TransferParameters function); 1108 property public final androidx.compose.ui.graphics.colorspace.Rgb Aces; 1109 property public final androidx.compose.ui.graphics.colorspace.Rgb Acescg; 1110 property public final androidx.compose.ui.graphics.colorspace.Rgb AdobeRgb; 1111 property public final androidx.compose.ui.graphics.colorspace.Rgb Bt2020; 1112 property public final androidx.compose.ui.graphics.colorspace.Rgb Bt2020Hlg; 1113 property public final androidx.compose.ui.graphics.colorspace.Rgb Bt2020Pq; 1114 property public final androidx.compose.ui.graphics.colorspace.Rgb Bt709; 1115 property public final androidx.compose.ui.graphics.colorspace.ColorSpace CieLab; 1116 property public final androidx.compose.ui.graphics.colorspace.ColorSpace CieXyz; 1117 property public final androidx.compose.ui.graphics.colorspace.Rgb DciP3; 1118 property public final androidx.compose.ui.graphics.colorspace.Rgb DisplayP3; 1119 property public final androidx.compose.ui.graphics.colorspace.Rgb ExtendedSrgb; 1120 property public final androidx.compose.ui.graphics.colorspace.Rgb LinearExtendedSrgb; 1121 property public final androidx.compose.ui.graphics.colorspace.Rgb LinearSrgb; 1122 property public final androidx.compose.ui.graphics.colorspace.Rgb Ntsc1953; 1123 property public final androidx.compose.ui.graphics.colorspace.ColorSpace Oklab; 1124 property public final androidx.compose.ui.graphics.colorspace.Rgb ProPhotoRgb; 1125 property public final androidx.compose.ui.graphics.colorspace.Rgb SmpteC; 1126 property public final androidx.compose.ui.graphics.colorspace.Rgb Srgb; 1127 field public static final androidx.compose.ui.graphics.colorspace.ColorSpaces INSTANCE; 1128 } 1129 1130 public class Connector { 1131 method public final androidx.compose.ui.graphics.colorspace.ColorSpace getDestination(); 1132 method public final int getRenderIntent(); 1133 method public final androidx.compose.ui.graphics.colorspace.ColorSpace getSource(); 1134 method @Size(3L) public final float[] transform(float r, float g, float b); 1135 method @Size(min=3L) public float[] transform(@Size(min=3L) float[] v); 1136 property public final androidx.compose.ui.graphics.colorspace.ColorSpace destination; 1137 property public final int renderIntent; 1138 property public final androidx.compose.ui.graphics.colorspace.ColorSpace source; 1139 } 1140 1141 public final class Illuminant { 1142 method public androidx.compose.ui.graphics.colorspace.WhitePoint getA(); 1143 method public androidx.compose.ui.graphics.colorspace.WhitePoint getB(); 1144 method public androidx.compose.ui.graphics.colorspace.WhitePoint getC(); 1145 method public androidx.compose.ui.graphics.colorspace.WhitePoint getD50(); 1146 method public androidx.compose.ui.graphics.colorspace.WhitePoint getD55(); 1147 method public androidx.compose.ui.graphics.colorspace.WhitePoint getD60(); 1148 method public androidx.compose.ui.graphics.colorspace.WhitePoint getD65(); 1149 method public androidx.compose.ui.graphics.colorspace.WhitePoint getD75(); 1150 method public androidx.compose.ui.graphics.colorspace.WhitePoint getE(); 1151 property public final androidx.compose.ui.graphics.colorspace.WhitePoint A; 1152 property public final androidx.compose.ui.graphics.colorspace.WhitePoint B; 1153 property public final androidx.compose.ui.graphics.colorspace.WhitePoint C; 1154 property public final androidx.compose.ui.graphics.colorspace.WhitePoint D50; 1155 property public final androidx.compose.ui.graphics.colorspace.WhitePoint D55; 1156 property public final androidx.compose.ui.graphics.colorspace.WhitePoint D60; 1157 property public final androidx.compose.ui.graphics.colorspace.WhitePoint D65; 1158 property public final androidx.compose.ui.graphics.colorspace.WhitePoint D75; 1159 property public final androidx.compose.ui.graphics.colorspace.WhitePoint E; 1160 field public static final androidx.compose.ui.graphics.colorspace.Illuminant INSTANCE; 1161 } 1162 1163 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class RenderIntent { 1164 field public static final androidx.compose.ui.graphics.colorspace.RenderIntent.Companion Companion; 1165 } 1166 1167 public static final class RenderIntent.Companion { 1168 method public int getAbsolute(); 1169 method public int getPerceptual(); 1170 method public int getRelative(); 1171 method public int getSaturation(); 1172 property public final int Absolute; 1173 property public final int Perceptual; 1174 property public final int Relative; 1175 property public final int Saturation; 1176 } 1177 1178 public final class Rgb extends androidx.compose.ui.graphics.colorspace.ColorSpace { 1179 ctor public Rgb(@Size(min=1L) String name, @Size(9L) float[] toXYZ, androidx.compose.ui.graphics.colorspace.TransferParameters function); 1180 ctor public Rgb(@Size(min=1L) String name, @Size(min=6L, max=9L) float[] primaries, androidx.compose.ui.graphics.colorspace.WhitePoint whitePoint, androidx.compose.ui.graphics.colorspace.TransferParameters function); 1181 ctor public Rgb(@Size(min=1L) String name, @Size(min=6L, max=9L) float[] primaries, androidx.compose.ui.graphics.colorspace.WhitePoint whitePoint, double gamma); 1182 ctor public Rgb(@Size(min=1L) String name, @Size(min=6L, max=9L) float[] primaries, androidx.compose.ui.graphics.colorspace.WhitePoint whitePoint, kotlin.jvm.functions.Function1<? super java.lang.Double,java.lang.Double> oetf, kotlin.jvm.functions.Function1<? super java.lang.Double,java.lang.Double> eotf, float min, float max); 1183 ctor public Rgb(@Size(min=1L) String name, @Size(9L) float[] toXYZ, double gamma); 1184 ctor public Rgb(@Size(min=1L) String name, @Size(9L) float[] toXYZ, kotlin.jvm.functions.Function1<? super java.lang.Double,java.lang.Double> oetf, kotlin.jvm.functions.Function1<? super java.lang.Double,java.lang.Double> eotf); 1185 method @Size(3L) public float[] fromLinear(float r, float g, float b); 1186 method @Size(min=3L) public float[] fromLinear(@Size(min=3L) float[] v); 1187 method public float[] fromXyz(float[] v); 1188 method public kotlin.jvm.functions.Function1<java.lang.Double,java.lang.Double> getEotf(); 1189 method @Size(9L) public float[] getInverseTransform(); 1190 method @Size(min=9L) public float[] getInverseTransform(@Size(min=9L) float[] inverseTransform); 1191 method public float getMaxValue(int component); 1192 method public float getMinValue(int component); 1193 method public kotlin.jvm.functions.Function1<java.lang.Double,java.lang.Double> getOetf(); 1194 method @Size(6L) public float[] getPrimaries(); 1195 method @Size(min=6L) public float[] getPrimaries(@Size(min=6L) float[] primaries); 1196 method public androidx.compose.ui.graphics.colorspace.TransferParameters? getTransferParameters(); 1197 method @Size(9L) public float[] getTransform(); 1198 method @Size(min=9L) public float[] getTransform(@Size(min=9L) float[] transform); 1199 method public androidx.compose.ui.graphics.colorspace.WhitePoint getWhitePoint(); 1200 method public boolean isWideGamut(); 1201 method @Size(3L) public float[] toLinear(float r, float g, float b); 1202 method @Size(min=3L) public float[] toLinear(@Size(min=3L) float[] v); 1203 method public float[] toXyz(float[] v); 1204 property public final kotlin.jvm.functions.Function1<java.lang.Double,java.lang.Double> eotf; 1205 property public boolean isSrgb; 1206 property public boolean isWideGamut; 1207 property public final kotlin.jvm.functions.Function1<java.lang.Double,java.lang.Double> oetf; 1208 property public final androidx.compose.ui.graphics.colorspace.TransferParameters? transferParameters; 1209 property public final androidx.compose.ui.graphics.colorspace.WhitePoint whitePoint; 1210 } 1211 1212 public final class TransferParameters { 1213 ctor public TransferParameters(double gamma, double a, double b, double c, double d, optional double e, optional double f); 1214 method public double component1(); 1215 method public double component2(); 1216 method public double component3(); 1217 method public double component4(); 1218 method public double component5(); 1219 method public double component6(); 1220 method public double component7(); 1221 method public androidx.compose.ui.graphics.colorspace.TransferParameters copy(double gamma, double a, double b, double c, double d, double e, double f); 1222 method public double getA(); 1223 method public double getB(); 1224 method public double getC(); 1225 method public double getD(); 1226 method public double getE(); 1227 method public double getF(); 1228 method public double getGamma(); 1229 property public final double a; 1230 property public final double b; 1231 property public final double c; 1232 property public final double d; 1233 property public final double e; 1234 property public final double f; 1235 property public final double gamma; 1236 } 1237 1238 public final class WhitePoint { 1239 ctor public WhitePoint(float x, float y); 1240 ctor public WhitePoint(float x, float y, float z); 1241 method public float component1(); 1242 method public float component2(); 1243 method public androidx.compose.ui.graphics.colorspace.WhitePoint copy(float x, float y); 1244 method public float getX(); 1245 method public float getY(); 1246 property public final float x; 1247 property public final float y; 1248 } 1249 1250} 1251 1252package androidx.compose.ui.graphics.drawscope { 1253 1254 public final class CanvasDrawScope implements androidx.compose.ui.graphics.drawscope.DrawScope { 1255 ctor public CanvasDrawScope(); 1256 method public inline void draw(androidx.compose.ui.unit.Density density, androidx.compose.ui.unit.LayoutDirection layoutDirection, androidx.compose.ui.graphics.Canvas canvas, long size, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1257 method public void drawArc(androidx.compose.ui.graphics.Brush brush, float startAngle, float sweepAngle, boolean useCenter, long topLeft, long size, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1258 method public void drawArc(long color, float startAngle, float sweepAngle, boolean useCenter, long topLeft, long size, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1259 method public void drawCircle(androidx.compose.ui.graphics.Brush brush, float radius, long center, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1260 method public void drawCircle(long color, float radius, long center, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1261 method public void drawImage(androidx.compose.ui.graphics.ImageBitmap image, long topLeft, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1262 method @Deprecated public void drawImage(androidx.compose.ui.graphics.ImageBitmap image, long srcOffset, long srcSize, long dstOffset, long dstSize, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1263 method public void drawLine(androidx.compose.ui.graphics.Brush brush, long start, long end, float strokeWidth, int cap, androidx.compose.ui.graphics.PathEffect? pathEffect, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1264 method public void drawLine(long color, long start, long end, float strokeWidth, int cap, androidx.compose.ui.graphics.PathEffect? pathEffect, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1265 method public void drawOval(androidx.compose.ui.graphics.Brush brush, long topLeft, long size, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1266 method public void drawOval(long color, long topLeft, long size, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1267 method public void drawPath(androidx.compose.ui.graphics.Path path, androidx.compose.ui.graphics.Brush brush, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1268 method public void drawPath(androidx.compose.ui.graphics.Path path, long color, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1269 method public void drawPoints(java.util.List<androidx.compose.ui.geometry.Offset> points, int pointMode, androidx.compose.ui.graphics.Brush brush, float strokeWidth, int cap, androidx.compose.ui.graphics.PathEffect? pathEffect, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1270 method public void drawPoints(java.util.List<androidx.compose.ui.geometry.Offset> points, int pointMode, long color, float strokeWidth, int cap, androidx.compose.ui.graphics.PathEffect? pathEffect, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1271 method public void drawRect(androidx.compose.ui.graphics.Brush brush, long topLeft, long size, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1272 method public void drawRect(long color, long topLeft, long size, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1273 method public void drawRoundRect(androidx.compose.ui.graphics.Brush brush, long topLeft, long size, long cornerRadius, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.drawscope.DrawStyle style, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1274 method public void drawRoundRect(long color, long topLeft, long size, long cornerRadius, androidx.compose.ui.graphics.drawscope.DrawStyle style, @FloatRange(from=0.0, to=1.0) float alpha, androidx.compose.ui.graphics.ColorFilter? colorFilter, int blendMode); 1275 method public float getDensity(); 1276 method public androidx.compose.ui.graphics.drawscope.DrawContext getDrawContext(); 1277 method public float getFontScale(); 1278 method public androidx.compose.ui.unit.LayoutDirection getLayoutDirection(); 1279 property public float density; 1280 property public androidx.compose.ui.graphics.drawscope.DrawContext drawContext; 1281 property public float fontScale; 1282 property public androidx.compose.ui.unit.LayoutDirection layoutDirection; 1283 } 1284 1285 @kotlin.jvm.JvmDefaultWithCompatibility public interface ContentDrawScope extends androidx.compose.ui.graphics.drawscope.DrawScope { 1286 method public void drawContent(); 1287 } 1288 1289 public interface DrawContext { 1290 method public default androidx.compose.ui.graphics.Canvas getCanvas(); 1291 method public default androidx.compose.ui.unit.Density getDensity(); 1292 method public default androidx.compose.ui.graphics.layer.GraphicsLayer? getGraphicsLayer(); 1293 method public default androidx.compose.ui.unit.LayoutDirection getLayoutDirection(); 1294 method public long getSize(); 1295 method public androidx.compose.ui.graphics.drawscope.DrawTransform getTransform(); 1296 method public default void setCanvas(androidx.compose.ui.graphics.Canvas); 1297 method public default void setDensity(androidx.compose.ui.unit.Density); 1298 method public default void setGraphicsLayer(androidx.compose.ui.graphics.layer.GraphicsLayer?); 1299 method public default void setLayoutDirection(androidx.compose.ui.unit.LayoutDirection); 1300 method public void setSize(long); 1301 property public default androidx.compose.ui.graphics.Canvas canvas; 1302 property public default androidx.compose.ui.unit.Density density; 1303 property public default androidx.compose.ui.graphics.layer.GraphicsLayer? graphicsLayer; 1304 property public default androidx.compose.ui.unit.LayoutDirection layoutDirection; 1305 property public abstract long size; 1306 property public abstract androidx.compose.ui.graphics.drawscope.DrawTransform transform; 1307 } 1308 1309 @androidx.compose.ui.graphics.drawscope.DrawScopeMarker @kotlin.jvm.JvmDefaultWithCompatibility public interface DrawScope extends androidx.compose.ui.unit.Density { 1310 method public void drawArc(androidx.compose.ui.graphics.Brush brush, float startAngle, float sweepAngle, boolean useCenter, optional long topLeft, optional long size, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1311 method public void drawArc(long color, float startAngle, float sweepAngle, boolean useCenter, optional long topLeft, optional long size, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1312 method public void drawCircle(androidx.compose.ui.graphics.Brush brush, optional float radius, optional long center, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1313 method public void drawCircle(long color, optional float radius, optional long center, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1314 method public void drawImage(androidx.compose.ui.graphics.ImageBitmap image, optional long topLeft, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1315 method @Deprecated public void drawImage(androidx.compose.ui.graphics.ImageBitmap image, optional long srcOffset, optional long srcSize, optional long dstOffset, optional long dstSize, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1316 method public default void drawImage(androidx.compose.ui.graphics.ImageBitmap image, optional long srcOffset, optional long srcSize, optional long dstOffset, optional long dstSize, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode, optional int filterQuality); 1317 method public void drawLine(androidx.compose.ui.graphics.Brush brush, long start, long end, optional float strokeWidth, optional int cap, optional androidx.compose.ui.graphics.PathEffect? pathEffect, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1318 method public void drawLine(long color, long start, long end, optional float strokeWidth, optional int cap, optional androidx.compose.ui.graphics.PathEffect? pathEffect, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1319 method public void drawOval(androidx.compose.ui.graphics.Brush brush, optional long topLeft, optional long size, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1320 method public void drawOval(long color, optional long topLeft, optional long size, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1321 method public void drawPath(androidx.compose.ui.graphics.Path path, androidx.compose.ui.graphics.Brush brush, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1322 method public void drawPath(androidx.compose.ui.graphics.Path path, long color, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1323 method public void drawPoints(java.util.List<androidx.compose.ui.geometry.Offset> points, int pointMode, androidx.compose.ui.graphics.Brush brush, optional float strokeWidth, optional int cap, optional androidx.compose.ui.graphics.PathEffect? pathEffect, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1324 method public void drawPoints(java.util.List<androidx.compose.ui.geometry.Offset> points, int pointMode, long color, optional float strokeWidth, optional int cap, optional androidx.compose.ui.graphics.PathEffect? pathEffect, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1325 method public void drawRect(androidx.compose.ui.graphics.Brush brush, optional long topLeft, optional long size, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1326 method public void drawRect(long color, optional long topLeft, optional long size, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1327 method public void drawRoundRect(androidx.compose.ui.graphics.Brush brush, optional long topLeft, optional long size, optional long cornerRadius, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1328 method public void drawRoundRect(long color, optional long topLeft, optional long size, optional long cornerRadius, optional androidx.compose.ui.graphics.drawscope.DrawStyle style, optional @FloatRange(from=0.0, to=1.0) float alpha, optional androidx.compose.ui.graphics.ColorFilter? colorFilter, optional int blendMode); 1329 method public default long getCenter(); 1330 method public androidx.compose.ui.graphics.drawscope.DrawContext getDrawContext(); 1331 method public androidx.compose.ui.unit.LayoutDirection getLayoutDirection(); 1332 method public default long getSize(); 1333 method public default void record(androidx.compose.ui.graphics.layer.GraphicsLayer, optional long size, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1334 property public default long center; 1335 property public abstract androidx.compose.ui.graphics.drawscope.DrawContext drawContext; 1336 property public abstract androidx.compose.ui.unit.LayoutDirection layoutDirection; 1337 property public default long size; 1338 field public static final androidx.compose.ui.graphics.drawscope.DrawScope.Companion Companion; 1339 } 1340 1341 public static final class DrawScope.Companion { 1342 method public int getDefaultBlendMode(); 1343 method public int getDefaultFilterQuality(); 1344 property public final int DefaultBlendMode; 1345 property public final int DefaultFilterQuality; 1346 } 1347 1348 public final class DrawScopeKt { 1349 method public static inline void clipPath(androidx.compose.ui.graphics.drawscope.DrawScope, androidx.compose.ui.graphics.Path path, optional int clipOp, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1350 method public static inline void clipRect(androidx.compose.ui.graphics.drawscope.DrawScope, optional float left, optional float top, optional float right, optional float bottom, optional int clipOp, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1351 method public static inline void draw(androidx.compose.ui.graphics.drawscope.DrawScope, androidx.compose.ui.unit.Density density, androidx.compose.ui.unit.LayoutDirection layoutDirection, androidx.compose.ui.graphics.Canvas canvas, long size, optional androidx.compose.ui.graphics.layer.GraphicsLayer? graphicsLayer, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1352 method @Deprecated public static inline void draw(androidx.compose.ui.graphics.drawscope.DrawScope, androidx.compose.ui.unit.Density density, androidx.compose.ui.unit.LayoutDirection layoutDirection, androidx.compose.ui.graphics.Canvas canvas, long size, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1353 method public static inline void drawIntoCanvas(androidx.compose.ui.graphics.drawscope.DrawScope, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.Canvas,kotlin.Unit> block); 1354 method public static inline void inset(androidx.compose.ui.graphics.drawscope.DrawScope, float left, float top, float right, float bottom, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1355 method public static inline void inset(androidx.compose.ui.graphics.drawscope.DrawScope, optional float horizontal, optional float vertical, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1356 method public static inline void inset(androidx.compose.ui.graphics.drawscope.DrawScope, float inset, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1357 method public static inline void rotate(androidx.compose.ui.graphics.drawscope.DrawScope, float degrees, optional long pivot, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1358 method public static inline void rotateRad(androidx.compose.ui.graphics.drawscope.DrawScope, float radians, optional long pivot, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1359 method public static inline void scale(androidx.compose.ui.graphics.drawscope.DrawScope, float scaleX, float scaleY, optional long pivot, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1360 method public static inline void scale(androidx.compose.ui.graphics.drawscope.DrawScope, float scale, optional long pivot, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1361 method public static inline void translate(androidx.compose.ui.graphics.drawscope.DrawScope, optional float left, optional float top, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1362 method public static inline void withTransform(androidx.compose.ui.graphics.drawscope.DrawScope, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawTransform,kotlin.Unit> transformBlock, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> drawBlock); 1363 } 1364 1365 @kotlin.DslMarker public @interface DrawScopeMarker { 1366 } 1367 1368 public abstract sealed class DrawStyle { 1369 } 1370 1371 @androidx.compose.ui.graphics.drawscope.DrawScopeMarker @kotlin.jvm.JvmDefaultWithCompatibility public interface DrawTransform { 1372 method public void clipPath(androidx.compose.ui.graphics.Path path, optional int clipOp); 1373 method public void clipRect(optional float left, optional float top, optional float right, optional float bottom, optional int clipOp); 1374 method public default long getCenter(); 1375 method public long getSize(); 1376 method public void inset(float left, float top, float right, float bottom); 1377 method public void rotate(float degrees, optional long pivot); 1378 method public void scale(float scaleX, float scaleY, optional long pivot); 1379 method public void transform(float[] matrix); 1380 method public void translate(optional float left, optional float top); 1381 property public default long center; 1382 property public abstract long size; 1383 } 1384 1385 public final class DrawTransformKt { 1386 method public static inline void inset(androidx.compose.ui.graphics.drawscope.DrawTransform, float inset); 1387 method public static inline void inset(androidx.compose.ui.graphics.drawscope.DrawTransform, optional float horizontal, optional float vertical); 1388 method public static inline void rotateRad(androidx.compose.ui.graphics.drawscope.DrawTransform, float radians, optional long pivot); 1389 method public static inline void scale(androidx.compose.ui.graphics.drawscope.DrawTransform, float scale, optional long pivot); 1390 } 1391 1392 public final class Fill extends androidx.compose.ui.graphics.drawscope.DrawStyle { 1393 field public static final androidx.compose.ui.graphics.drawscope.Fill INSTANCE; 1394 } 1395 1396 public final class Stroke extends androidx.compose.ui.graphics.drawscope.DrawStyle { 1397 ctor public Stroke(); 1398 ctor public Stroke(optional float width, optional float miter, optional int cap, optional int join, optional androidx.compose.ui.graphics.PathEffect? pathEffect); 1399 method public int getCap(); 1400 method public int getJoin(); 1401 method public float getMiter(); 1402 method public androidx.compose.ui.graphics.PathEffect? getPathEffect(); 1403 method public float getWidth(); 1404 property public final int cap; 1405 property public final int join; 1406 property public final float miter; 1407 property public final androidx.compose.ui.graphics.PathEffect? pathEffect; 1408 property public final float width; 1409 field public static final androidx.compose.ui.graphics.drawscope.Stroke.Companion Companion; 1410 field public static final float DefaultMiter = 4.0f; 1411 field public static final float HairlineWidth = 0.0f; 1412 } 1413 1414 public static final class Stroke.Companion { 1415 method public int getDefaultCap(); 1416 method public int getDefaultJoin(); 1417 property public final int DefaultCap; 1418 property public final int DefaultJoin; 1419 property public static final float DefaultMiter; 1420 property public static final float HairlineWidth; 1421 } 1422 1423} 1424 1425package androidx.compose.ui.graphics.layer { 1426 1427 @androidx.compose.runtime.Immutable @kotlin.jvm.JvmInline public final value class CompositingStrategy { 1428 field public static final androidx.compose.ui.graphics.layer.CompositingStrategy.Companion Companion; 1429 } 1430 1431 public static final class CompositingStrategy.Companion { 1432 method public int getAuto(); 1433 method public int getModulateAlpha(); 1434 method public int getOffscreen(); 1435 property public final int Auto; 1436 property public final int ModulateAlpha; 1437 property public final int Offscreen; 1438 } 1439 1440 public final class GraphicsLayer { 1441 method public float getAlpha(); 1442 method public long getAmbientShadowColor(); 1443 method public int getBlendMode(); 1444 method public float getCameraDistance(); 1445 method public boolean getClip(); 1446 method public androidx.compose.ui.graphics.ColorFilter? getColorFilter(); 1447 method public int getCompositingStrategy(); 1448 method public long getLayerId(); 1449 method public androidx.compose.ui.graphics.Outline getOutline(); 1450 method public long getOwnerViewId(); 1451 method public long getPivotOffset(); 1452 method public androidx.compose.ui.graphics.RenderEffect? getRenderEffect(); 1453 method public float getRotationX(); 1454 method public float getRotationY(); 1455 method public float getRotationZ(); 1456 method public float getScaleX(); 1457 method public float getScaleY(); 1458 method public float getShadowElevation(); 1459 method public long getSize(); 1460 method public long getSpotShadowColor(); 1461 method public long getTopLeft(); 1462 method public float getTranslationX(); 1463 method public float getTranslationY(); 1464 method public boolean isReleased(); 1465 method public void record(androidx.compose.ui.unit.Density density, androidx.compose.ui.unit.LayoutDirection layoutDirection, long size, kotlin.jvm.functions.Function1<? super androidx.compose.ui.graphics.drawscope.DrawScope,kotlin.Unit> block); 1466 method public void setAlpha(float); 1467 method public void setAmbientShadowColor(long); 1468 method public void setBlendMode(int); 1469 method public void setCameraDistance(float); 1470 method public void setClip(boolean); 1471 method public void setColorFilter(androidx.compose.ui.graphics.ColorFilter?); 1472 method public void setCompositingStrategy(int); 1473 method public void setPathOutline(androidx.compose.ui.graphics.Path path); 1474 method public void setPivotOffset(long); 1475 method public void setRectOutline(optional long topLeft, optional long size); 1476 method public void setRenderEffect(androidx.compose.ui.graphics.RenderEffect?); 1477 method public void setRotationX(float); 1478 method public void setRotationY(float); 1479 method public void setRotationZ(float); 1480 method public void setRoundRectOutline(optional long topLeft, optional long size, optional float cornerRadius); 1481 method public void setScaleX(float); 1482 method public void setScaleY(float); 1483 method public void setShadowElevation(float); 1484 method public void setSpotShadowColor(long); 1485 method public void setTopLeft(long); 1486 method public void setTranslationX(float); 1487 method public void setTranslationY(float); 1488 method public suspend Object? toImageBitmap(kotlin.coroutines.Continuation<? super androidx.compose.ui.graphics.ImageBitmap>); 1489 property public final float alpha; 1490 property public final long ambientShadowColor; 1491 property public final int blendMode; 1492 property public final float cameraDistance; 1493 property public final boolean clip; 1494 property public final androidx.compose.ui.graphics.ColorFilter? colorFilter; 1495 property public final int compositingStrategy; 1496 property public final boolean isReleased; 1497 property public final long layerId; 1498 property public final androidx.compose.ui.graphics.Outline outline; 1499 property public final long ownerViewId; 1500 property public final long pivotOffset; 1501 property public final androidx.compose.ui.graphics.RenderEffect? renderEffect; 1502 property public final float rotationX; 1503 property public final float rotationY; 1504 property public final float rotationZ; 1505 property public final float scaleX; 1506 property public final float scaleY; 1507 property public final float shadowElevation; 1508 property public final long size; 1509 property public final long spotShadowColor; 1510 property public final long topLeft; 1511 property public final float translationX; 1512 property public final float translationY; 1513 field public static final androidx.compose.ui.graphics.layer.GraphicsLayer.Companion Companion; 1514 } 1515 1516 public static final class GraphicsLayer.Companion { 1517 } 1518 1519 public final class GraphicsLayerKt { 1520 method public static void drawLayer(androidx.compose.ui.graphics.drawscope.DrawScope, androidx.compose.ui.graphics.layer.GraphicsLayer graphicsLayer); 1521 method public static void setOutline(androidx.compose.ui.graphics.layer.GraphicsLayer, androidx.compose.ui.graphics.Outline outline); 1522 property public static final float DefaultCameraDistance; 1523 field public static final float DefaultCameraDistance = 8.0f; 1524 } 1525 1526} 1527 1528package androidx.compose.ui.graphics.painter { 1529 1530 public final class BitmapPainter extends androidx.compose.ui.graphics.painter.Painter { 1531 ctor public BitmapPainter(androidx.compose.ui.graphics.ImageBitmap image, optional long srcOffset, optional long srcSize); 1532 method public long getIntrinsicSize(); 1533 method protected void onDraw(androidx.compose.ui.graphics.drawscope.DrawScope); 1534 property public long intrinsicSize; 1535 } 1536 1537 public final class BitmapPainterKt { 1538 method public static androidx.compose.ui.graphics.painter.BitmapPainter BitmapPainter(androidx.compose.ui.graphics.ImageBitmap image, optional long srcOffset, optional long srcSize, optional int filterQuality); 1539 } 1540 1541 public final class BrushPainter extends androidx.compose.ui.graphics.painter.Painter { 1542 ctor public BrushPainter(androidx.compose.ui.graphics.Brush brush); 1543 method public androidx.compose.ui.graphics.Brush getBrush(); 1544 method public long getIntrinsicSize(); 1545 method protected void onDraw(androidx.compose.ui.graphics.drawscope.DrawScope); 1546 property public final androidx.compose.ui.graphics.Brush brush; 1547 property public long intrinsicSize; 1548 } 1549 1550 public final class ColorPainter extends androidx.compose.ui.graphics.painter.Painter { 1551 ctor public ColorPainter(long color); 1552 method public long getColor(); 1553 method public long getIntrinsicSize(); 1554 method protected void onDraw(androidx.compose.ui.graphics.drawscope.DrawScope); 1555 property public final long color; 1556 property public long intrinsicSize; 1557 } 1558 1559 public abstract class Painter { 1560 ctor public Painter(); 1561 method protected boolean applyAlpha(float alpha); 1562 method protected boolean applyColorFilter(androidx.compose.ui.graphics.ColorFilter? colorFilter); 1563 method protected boolean applyLayoutDirection(androidx.compose.ui.unit.LayoutDirection layoutDirection); 1564 method public final void draw(androidx.compose.ui.graphics.drawscope.DrawScope, long size, optional float alpha, optional androidx.compose.ui.graphics.ColorFilter? colorFilter); 1565 method public abstract long getIntrinsicSize(); 1566 method protected abstract void onDraw(androidx.compose.ui.graphics.drawscope.DrawScope); 1567 property public abstract long intrinsicSize; 1568 } 1569 1570} 1571 1572package androidx.compose.ui.graphics.vector { 1573 1574 public final class PathBuilder { 1575 ctor public PathBuilder(); 1576 method public androidx.compose.ui.graphics.vector.PathBuilder arcTo(float horizontalEllipseRadius, float verticalEllipseRadius, float theta, boolean isMoreThanHalf, boolean isPositiveArc, float x1, float y1); 1577 method public androidx.compose.ui.graphics.vector.PathBuilder arcToRelative(float a, float b, float theta, boolean isMoreThanHalf, boolean isPositiveArc, float dx1, float dy1); 1578 method public androidx.compose.ui.graphics.vector.PathBuilder close(); 1579 method public androidx.compose.ui.graphics.vector.PathBuilder curveTo(float x1, float y1, float x2, float y2, float x3, float y3); 1580 method public androidx.compose.ui.graphics.vector.PathBuilder curveToRelative(float dx1, float dy1, float dx2, float dy2, float dx3, float dy3); 1581 method public java.util.List<androidx.compose.ui.graphics.vector.PathNode> getNodes(); 1582 method public androidx.compose.ui.graphics.vector.PathBuilder horizontalLineTo(float x); 1583 method public androidx.compose.ui.graphics.vector.PathBuilder horizontalLineToRelative(float dx); 1584 method public androidx.compose.ui.graphics.vector.PathBuilder lineTo(float x, float y); 1585 method public androidx.compose.ui.graphics.vector.PathBuilder lineToRelative(float dx, float dy); 1586 method public androidx.compose.ui.graphics.vector.PathBuilder moveTo(float x, float y); 1587 method public androidx.compose.ui.graphics.vector.PathBuilder moveToRelative(float dx, float dy); 1588 method public androidx.compose.ui.graphics.vector.PathBuilder quadTo(float x1, float y1, float x2, float y2); 1589 method public androidx.compose.ui.graphics.vector.PathBuilder quadToRelative(float dx1, float dy1, float dx2, float dy2); 1590 method public androidx.compose.ui.graphics.vector.PathBuilder reflectiveCurveTo(float x1, float y1, float x2, float y2); 1591 method public androidx.compose.ui.graphics.vector.PathBuilder reflectiveCurveToRelative(float dx1, float dy1, float dx2, float dy2); 1592 method public androidx.compose.ui.graphics.vector.PathBuilder reflectiveQuadTo(float x1, float y1); 1593 method public androidx.compose.ui.graphics.vector.PathBuilder reflectiveQuadToRelative(float dx1, float dy1); 1594 method public androidx.compose.ui.graphics.vector.PathBuilder verticalLineTo(float y); 1595 method public androidx.compose.ui.graphics.vector.PathBuilder verticalLineToRelative(float dy); 1596 property public final java.util.List<androidx.compose.ui.graphics.vector.PathNode> nodes; 1597 } 1598 1599 @androidx.compose.runtime.Immutable public abstract sealed class PathNode { 1600 method public final boolean isCurve(); 1601 method public final boolean isQuad(); 1602 property public final boolean isCurve; 1603 property public final boolean isQuad; 1604 } 1605 1606 @androidx.compose.runtime.Immutable public static final class PathNode.ArcTo extends androidx.compose.ui.graphics.vector.PathNode { 1607 ctor public PathNode.ArcTo(float horizontalEllipseRadius, float verticalEllipseRadius, float theta, boolean isMoreThanHalf, boolean isPositiveArc, float arcStartX, float arcStartY); 1608 method public float component1(); 1609 method public float component2(); 1610 method public float component3(); 1611 method public boolean component4(); 1612 method public boolean component5(); 1613 method public float component6(); 1614 method public float component7(); 1615 method public androidx.compose.ui.graphics.vector.PathNode.ArcTo copy(float horizontalEllipseRadius, float verticalEllipseRadius, float theta, boolean isMoreThanHalf, boolean isPositiveArc, float arcStartX, float arcStartY); 1616 method public float getArcStartX(); 1617 method public float getArcStartY(); 1618 method public float getHorizontalEllipseRadius(); 1619 method public float getTheta(); 1620 method public float getVerticalEllipseRadius(); 1621 method public boolean isMoreThanHalf(); 1622 method public boolean isPositiveArc(); 1623 property public final float arcStartX; 1624 property public final float arcStartY; 1625 property public final float horizontalEllipseRadius; 1626 property public final boolean isMoreThanHalf; 1627 property public final boolean isPositiveArc; 1628 property public final float theta; 1629 property public final float verticalEllipseRadius; 1630 } 1631 1632 @androidx.compose.runtime.Immutable public static final class PathNode.Close extends androidx.compose.ui.graphics.vector.PathNode { 1633 field public static final androidx.compose.ui.graphics.vector.PathNode.Close INSTANCE; 1634 } 1635 1636 @androidx.compose.runtime.Immutable public static final class PathNode.CurveTo extends androidx.compose.ui.graphics.vector.PathNode { 1637 ctor public PathNode.CurveTo(float x1, float y1, float x2, float y2, float x3, float y3); 1638 method public float component1(); 1639 method public float component2(); 1640 method public float component3(); 1641 method public float component4(); 1642 method public float component5(); 1643 method public float component6(); 1644 method public androidx.compose.ui.graphics.vector.PathNode.CurveTo copy(float x1, float y1, float x2, float y2, float x3, float y3); 1645 method public float getX1(); 1646 method public float getX2(); 1647 method public float getX3(); 1648 method public float getY1(); 1649 method public float getY2(); 1650 method public float getY3(); 1651 property public final float x1; 1652 property public final float x2; 1653 property public final float x3; 1654 property public final float y1; 1655 property public final float y2; 1656 property public final float y3; 1657 } 1658 1659 @androidx.compose.runtime.Immutable public static final class PathNode.HorizontalTo extends androidx.compose.ui.graphics.vector.PathNode { 1660 ctor public PathNode.HorizontalTo(float x); 1661 method public float component1(); 1662 method public androidx.compose.ui.graphics.vector.PathNode.HorizontalTo copy(float x); 1663 method public float getX(); 1664 property public final float x; 1665 } 1666 1667 @androidx.compose.runtime.Immutable public static final class PathNode.LineTo extends androidx.compose.ui.graphics.vector.PathNode { 1668 ctor public PathNode.LineTo(float x, float y); 1669 method public float component1(); 1670 method public float component2(); 1671 method public androidx.compose.ui.graphics.vector.PathNode.LineTo copy(float x, float y); 1672 method public float getX(); 1673 method public float getY(); 1674 property public final float x; 1675 property public final float y; 1676 } 1677 1678 @androidx.compose.runtime.Immutable public static final class PathNode.MoveTo extends androidx.compose.ui.graphics.vector.PathNode { 1679 ctor public PathNode.MoveTo(float x, float y); 1680 method public float component1(); 1681 method public float component2(); 1682 method public androidx.compose.ui.graphics.vector.PathNode.MoveTo copy(float x, float y); 1683 method public float getX(); 1684 method public float getY(); 1685 property public final float x; 1686 property public final float y; 1687 } 1688 1689 @androidx.compose.runtime.Immutable public static final class PathNode.QuadTo extends androidx.compose.ui.graphics.vector.PathNode { 1690 ctor public PathNode.QuadTo(float x1, float y1, float x2, float y2); 1691 method public float component1(); 1692 method public float component2(); 1693 method public float component3(); 1694 method public float component4(); 1695 method public androidx.compose.ui.graphics.vector.PathNode.QuadTo copy(float x1, float y1, float x2, float y2); 1696 method public float getX1(); 1697 method public float getX2(); 1698 method public float getY1(); 1699 method public float getY2(); 1700 property public final float x1; 1701 property public final float x2; 1702 property public final float y1; 1703 property public final float y2; 1704 } 1705 1706 @androidx.compose.runtime.Immutable public static final class PathNode.ReflectiveCurveTo extends androidx.compose.ui.graphics.vector.PathNode { 1707 ctor public PathNode.ReflectiveCurveTo(float x1, float y1, float x2, float y2); 1708 method public float component1(); 1709 method public float component2(); 1710 method public float component3(); 1711 method public float component4(); 1712 method public androidx.compose.ui.graphics.vector.PathNode.ReflectiveCurveTo copy(float x1, float y1, float x2, float y2); 1713 method public float getX1(); 1714 method public float getX2(); 1715 method public float getY1(); 1716 method public float getY2(); 1717 property public final float x1; 1718 property public final float x2; 1719 property public final float y1; 1720 property public final float y2; 1721 } 1722 1723 @androidx.compose.runtime.Immutable public static final class PathNode.ReflectiveQuadTo extends androidx.compose.ui.graphics.vector.PathNode { 1724 ctor public PathNode.ReflectiveQuadTo(float x, float y); 1725 method public float component1(); 1726 method public float component2(); 1727 method public androidx.compose.ui.graphics.vector.PathNode.ReflectiveQuadTo copy(float x, float y); 1728 method public float getX(); 1729 method public float getY(); 1730 property public final float x; 1731 property public final float y; 1732 } 1733 1734 @androidx.compose.runtime.Immutable public static final class PathNode.RelativeArcTo extends androidx.compose.ui.graphics.vector.PathNode { 1735 ctor public PathNode.RelativeArcTo(float horizontalEllipseRadius, float verticalEllipseRadius, float theta, boolean isMoreThanHalf, boolean isPositiveArc, float arcStartDx, float arcStartDy); 1736 method public float component1(); 1737 method public float component2(); 1738 method public float component3(); 1739 method public boolean component4(); 1740 method public boolean component5(); 1741 method public float component6(); 1742 method public float component7(); 1743 method public androidx.compose.ui.graphics.vector.PathNode.RelativeArcTo copy(float horizontalEllipseRadius, float verticalEllipseRadius, float theta, boolean isMoreThanHalf, boolean isPositiveArc, float arcStartDx, float arcStartDy); 1744 method public float getArcStartDx(); 1745 method public float getArcStartDy(); 1746 method public float getHorizontalEllipseRadius(); 1747 method public float getTheta(); 1748 method public float getVerticalEllipseRadius(); 1749 method public boolean isMoreThanHalf(); 1750 method public boolean isPositiveArc(); 1751 property public final float arcStartDx; 1752 property public final float arcStartDy; 1753 property public final float horizontalEllipseRadius; 1754 property public final boolean isMoreThanHalf; 1755 property public final boolean isPositiveArc; 1756 property public final float theta; 1757 property public final float verticalEllipseRadius; 1758 } 1759 1760 @androidx.compose.runtime.Immutable public static final class PathNode.RelativeCurveTo extends androidx.compose.ui.graphics.vector.PathNode { 1761 ctor public PathNode.RelativeCurveTo(float dx1, float dy1, float dx2, float dy2, float dx3, float dy3); 1762 method public float component1(); 1763 method public float component2(); 1764 method public float component3(); 1765 method public float component4(); 1766 method public float component5(); 1767 method public float component6(); 1768 method public androidx.compose.ui.graphics.vector.PathNode.RelativeCurveTo copy(float dx1, float dy1, float dx2, float dy2, float dx3, float dy3); 1769 method public float getDx1(); 1770 method public float getDx2(); 1771 method public float getDx3(); 1772 method public float getDy1(); 1773 method public float getDy2(); 1774 method public float getDy3(); 1775 property public final float dx1; 1776 property public final float dx2; 1777 property public final float dx3; 1778 property public final float dy1; 1779 property public final float dy2; 1780 property public final float dy3; 1781 } 1782 1783 @androidx.compose.runtime.Immutable public static final class PathNode.RelativeHorizontalTo extends androidx.compose.ui.graphics.vector.PathNode { 1784 ctor public PathNode.RelativeHorizontalTo(float dx); 1785 method public float component1(); 1786 method public androidx.compose.ui.graphics.vector.PathNode.RelativeHorizontalTo copy(float dx); 1787 method public float getDx(); 1788 property public final float dx; 1789 } 1790 1791 @androidx.compose.runtime.Immutable public static final class PathNode.RelativeLineTo extends androidx.compose.ui.graphics.vector.PathNode { 1792 ctor public PathNode.RelativeLineTo(float dx, float dy); 1793 method public float component1(); 1794 method public float component2(); 1795 method public androidx.compose.ui.graphics.vector.PathNode.RelativeLineTo copy(float dx, float dy); 1796 method public float getDx(); 1797 method public float getDy(); 1798 property public final float dx; 1799 property public final float dy; 1800 } 1801 1802 @androidx.compose.runtime.Immutable public static final class PathNode.RelativeMoveTo extends androidx.compose.ui.graphics.vector.PathNode { 1803 ctor public PathNode.RelativeMoveTo(float dx, float dy); 1804 method public float component1(); 1805 method public float component2(); 1806 method public androidx.compose.ui.graphics.vector.PathNode.RelativeMoveTo copy(float dx, float dy); 1807 method public float getDx(); 1808 method public float getDy(); 1809 property public final float dx; 1810 property public final float dy; 1811 } 1812 1813 @androidx.compose.runtime.Immutable public static final class PathNode.RelativeQuadTo extends androidx.compose.ui.graphics.vector.PathNode { 1814 ctor public PathNode.RelativeQuadTo(float dx1, float dy1, float dx2, float dy2); 1815 method public float component1(); 1816 method public float component2(); 1817 method public float component3(); 1818 method public float component4(); 1819 method public androidx.compose.ui.graphics.vector.PathNode.RelativeQuadTo copy(float dx1, float dy1, float dx2, float dy2); 1820 method public float getDx1(); 1821 method public float getDx2(); 1822 method public float getDy1(); 1823 method public float getDy2(); 1824 property public final float dx1; 1825 property public final float dx2; 1826 property public final float dy1; 1827 property public final float dy2; 1828 } 1829 1830 @androidx.compose.runtime.Immutable public static final class PathNode.RelativeReflectiveCurveTo extends androidx.compose.ui.graphics.vector.PathNode { 1831 ctor public PathNode.RelativeReflectiveCurveTo(float dx1, float dy1, float dx2, float dy2); 1832 method public float component1(); 1833 method public float component2(); 1834 method public float component3(); 1835 method public float component4(); 1836 method public androidx.compose.ui.graphics.vector.PathNode.RelativeReflectiveCurveTo copy(float dx1, float dy1, float dx2, float dy2); 1837 method public float getDx1(); 1838 method public float getDx2(); 1839 method public float getDy1(); 1840 method public float getDy2(); 1841 property public final float dx1; 1842 property public final float dx2; 1843 property public final float dy1; 1844 property public final float dy2; 1845 } 1846 1847 @androidx.compose.runtime.Immutable public static final class PathNode.RelativeReflectiveQuadTo extends androidx.compose.ui.graphics.vector.PathNode { 1848 ctor public PathNode.RelativeReflectiveQuadTo(float dx, float dy); 1849 method public float component1(); 1850 method public float component2(); 1851 method public androidx.compose.ui.graphics.vector.PathNode.RelativeReflectiveQuadTo copy(float dx, float dy); 1852 method public float getDx(); 1853 method public float getDy(); 1854 property public final float dx; 1855 property public final float dy; 1856 } 1857 1858 @androidx.compose.runtime.Immutable public static final class PathNode.RelativeVerticalTo extends androidx.compose.ui.graphics.vector.PathNode { 1859 ctor public PathNode.RelativeVerticalTo(float dy); 1860 method public float component1(); 1861 method public androidx.compose.ui.graphics.vector.PathNode.RelativeVerticalTo copy(float dy); 1862 method public float getDy(); 1863 property public final float dy; 1864 } 1865 1866 @androidx.compose.runtime.Immutable public static final class PathNode.VerticalTo extends androidx.compose.ui.graphics.vector.PathNode { 1867 ctor public PathNode.VerticalTo(float y); 1868 method public float component1(); 1869 method public androidx.compose.ui.graphics.vector.PathNode.VerticalTo copy(float y); 1870 method public float getY(); 1871 property public final float y; 1872 } 1873 1874 public final class PathParser { 1875 ctor public PathParser(); 1876 method public androidx.compose.ui.graphics.vector.PathParser addPathNodes(java.util.List<? extends androidx.compose.ui.graphics.vector.PathNode> nodes); 1877 method public void clear(); 1878 method public androidx.compose.ui.graphics.vector.PathParser parsePathString(String pathData); 1879 method public java.util.ArrayList<androidx.compose.ui.graphics.vector.PathNode> pathStringToNodes(String pathData, optional java.util.ArrayList<androidx.compose.ui.graphics.vector.PathNode> nodes); 1880 method public java.util.List<androidx.compose.ui.graphics.vector.PathNode> toNodes(); 1881 method public androidx.compose.ui.graphics.Path toPath(optional androidx.compose.ui.graphics.Path target); 1882 } 1883 1884 public final class PathParserKt { 1885 method public static androidx.compose.ui.graphics.Path toPath(java.util.List<? extends androidx.compose.ui.graphics.vector.PathNode>, optional androidx.compose.ui.graphics.Path target); 1886 } 1887 1888} 1889 1890