Package io.github.humbleui.skija
Class Shader
- java.lang.Object
-
- io.github.humbleui.skija.impl.Native
-
- io.github.humbleui.skija.impl.Managed
-
- io.github.humbleui.skija.impl.RefCnt
-
- io.github.humbleui.skija.Shader
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Shader extends RefCnt
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.github.humbleui.skija.impl.RefCnt
RefCnt._FinalizerHolder
-
Nested classes/interfaces inherited from class io.github.humbleui.skija.impl.Managed
Managed.CleanerThunk
-
-
Field Summary
-
Fields inherited from class io.github.humbleui.skija.impl.Managed
_cleanable
-
-
Constructor Summary
Constructors Constructor Description Shader(long ptr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static long_nMakeBlend(int blendMode, long dst, long src)static long_nMakeColor(int color)static long_nMakeColorCS(float r, float g, float b, float a, long colorSpacePtr)static long_nMakeEmpty()static long_nMakeLinearGradient(float x0, float y0, float x1, float y1, int[] colors, float[] positions, int tileType, int flags, float[] matrix)static long_nMakeLinearGradientCS(float x0, float y0, float x1, float y1, float[] colors, long colorSpacePtr, float[] positions, int tileType, int flags, float[] matrix)static long_nMakeRadialGradient(float x, float y, float r, int[] colors, float[] positions, int tileType, int flags, float[] matrix)static long_nMakeRadialGradientCS(float x, float y, float r, float[] colors, long colorSpacePtr, float[] positions, int tileType, int flags, float[] matrix)static long_nMakeSweepGradient(float x, float y, float startAngle, float endAngle, int[] colors, float[] positions, int tileType, int flags, float[] matrix)static long_nMakeSweepGradientCS(float x, float y, float startAngle, float endAngle, float[] colors, long colorSpacePtr, float[] positions, int tileType, int flags, float[] matrix)static long_nMakeTwoPointConicalGradient(float x0, float y0, float r0, float x1, float y1, float r1, int[] colors, float[] positions, int tileType, int flags, float[] matrix)static long_nMakeTwoPointConicalGradientCS(float x0, float y0, float r0, float x1, float y1, float r1, float[] colors, long colorSpacePtr, float[] positions, int tileType, int flags, float[] matrix)static long_nMakeWithColorFilter(long ptr, long colorFilterPtr)static ShadermakeBlend(BlendMode mode, Shader dst, Shader src)static ShadermakeColor(int color)static ShadermakeColor(Color4f color, ColorSpace space)static ShadermakeEmpty()static ShadermakeLinearGradient(float x0, float y0, float x1, float y1, int[] colors)static ShadermakeLinearGradient(float x0, float y0, float x1, float y1, int[] colors, float[] positions)static ShadermakeLinearGradient(float x0, float y0, float x1, float y1, int[] colors, float[] positions, GradientStyle style)static ShadermakeLinearGradient(float x0, float y0, float x1, float y1, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)static ShadermakeLinearGradient(io.github.humbleui.types.Point p0, io.github.humbleui.types.Point p1, int[] colors)static ShadermakeLinearGradient(io.github.humbleui.types.Point p0, io.github.humbleui.types.Point p1, int[] colors, float[] positions)static ShadermakeLinearGradient(io.github.humbleui.types.Point p0, io.github.humbleui.types.Point p1, int[] colors, float[] positions, GradientStyle style)static ShadermakeLinearGradient(io.github.humbleui.types.Point p0, io.github.humbleui.types.Point p1, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)static ShadermakeRadialGradient(float x, float y, float r, int[] colors)static ShadermakeRadialGradient(float x, float y, float r, int[] colors, float[] positions)static ShadermakeRadialGradient(float x, float y, float r, int[] colors, float[] positions, GradientStyle style)static ShadermakeRadialGradient(float x, float y, float r, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)static ShadermakeRadialGradient(io.github.humbleui.types.Point center, float r, int[] colors)static ShadermakeRadialGradient(io.github.humbleui.types.Point center, float r, int[] colors, float[] positions)static ShadermakeRadialGradient(io.github.humbleui.types.Point center, float r, int[] colors, float[] positions, GradientStyle style)static ShadermakeRadialGradient(io.github.humbleui.types.Point center, float r, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)static ShadermakeSweepGradient(float x, float y, float startAngle, float endAngle, int[] colors, float[] positions, GradientStyle style)static ShadermakeSweepGradient(float x, float y, float startAngle, float endAngle, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)static ShadermakeSweepGradient(float x, float y, int[] colors)static ShadermakeSweepGradient(float x, float y, int[] colors, float[] positions)static ShadermakeSweepGradient(float x, float y, int[] colors, float[] positions, GradientStyle style)static ShadermakeSweepGradient(io.github.humbleui.types.Point center, float startAngle, float endAngle, int[] colors, float[] positions, GradientStyle style)static ShadermakeSweepGradient(io.github.humbleui.types.Point center, float startAngle, float endAngle, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)static ShadermakeSweepGradient(io.github.humbleui.types.Point center, int[] colors)static ShadermakeSweepGradient(io.github.humbleui.types.Point center, int[] colors, float[] positions)static ShadermakeSweepGradient(io.github.humbleui.types.Point center, int[] colors, float[] positions, GradientStyle style)static ShadermakeTwoPointConicalGradient(float x0, float y0, float r0, float x1, float y1, float r1, int[] colors)static ShadermakeTwoPointConicalGradient(float x0, float y0, float r0, float x1, float y1, float r1, int[] colors, float[] positions)static ShadermakeTwoPointConicalGradient(float x0, float y0, float r0, float x1, float y1, float r1, int[] colors, float[] positions, GradientStyle style)static ShadermakeTwoPointConicalGradient(float x0, float y0, float r0, float x1, float y1, float r1, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)static ShadermakeTwoPointConicalGradient(io.github.humbleui.types.Point p0, float r0, io.github.humbleui.types.Point p1, float r1, int[] colors)static ShadermakeTwoPointConicalGradient(io.github.humbleui.types.Point p0, float r0, io.github.humbleui.types.Point p1, float r1, int[] colors, float[] positions)static ShadermakeTwoPointConicalGradient(io.github.humbleui.types.Point p0, float r0, io.github.humbleui.types.Point p1, float r1, int[] colors, float[] positions, GradientStyle style)static ShadermakeTwoPointConicalGradient(io.github.humbleui.types.Point p0, float r0, io.github.humbleui.types.Point p1, float r1, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)ShadermakeWithColorFilter(ColorFilter f)-
Methods inherited from class io.github.humbleui.skija.impl.RefCnt
_nGetFinalizer, _nGetRefCount, getRefCount, toString
-
Methods inherited from class io.github.humbleui.skija.impl.Managed
_nInvokeFinalizer, close, isClosed
-
Methods inherited from class io.github.humbleui.skija.impl.Native
_nativeEquals, equals, getPtr, hashCode
-
-
-
-
Method Detail
-
makeWithColorFilter
public Shader makeWithColorFilter(ColorFilter f)
-
makeLinearGradient
public static Shader makeLinearGradient(io.github.humbleui.types.Point p0, io.github.humbleui.types.Point p1, int[] colors)
-
makeLinearGradient
public static Shader makeLinearGradient(float x0, float y0, float x1, float y1, int[] colors)
-
makeLinearGradient
public static Shader makeLinearGradient(io.github.humbleui.types.Point p0, io.github.humbleui.types.Point p1, int[] colors, float[] positions)
-
makeLinearGradient
public static Shader makeLinearGradient(float x0, float y0, float x1, float y1, int[] colors, float[] positions)
-
makeLinearGradient
public static Shader makeLinearGradient(io.github.humbleui.types.Point p0, io.github.humbleui.types.Point p1, int[] colors, float[] positions, GradientStyle style)
-
makeLinearGradient
public static Shader makeLinearGradient(float x0, float y0, float x1, float y1, int[] colors, float[] positions, GradientStyle style)
-
makeLinearGradient
public static Shader makeLinearGradient(io.github.humbleui.types.Point p0, io.github.humbleui.types.Point p1, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)
-
makeLinearGradient
public static Shader makeLinearGradient(float x0, float y0, float x1, float y1, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)
-
makeRadialGradient
public static Shader makeRadialGradient(io.github.humbleui.types.Point center, float r, int[] colors)
-
makeRadialGradient
public static Shader makeRadialGradient(float x, float y, float r, int[] colors)
-
makeRadialGradient
public static Shader makeRadialGradient(io.github.humbleui.types.Point center, float r, int[] colors, float[] positions)
-
makeRadialGradient
public static Shader makeRadialGradient(float x, float y, float r, int[] colors, float[] positions)
-
makeRadialGradient
public static Shader makeRadialGradient(io.github.humbleui.types.Point center, float r, int[] colors, float[] positions, GradientStyle style)
-
makeRadialGradient
public static Shader makeRadialGradient(float x, float y, float r, int[] colors, float[] positions, GradientStyle style)
-
makeRadialGradient
public static Shader makeRadialGradient(io.github.humbleui.types.Point center, float r, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)
-
makeRadialGradient
public static Shader makeRadialGradient(float x, float y, float r, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)
-
makeTwoPointConicalGradient
public static Shader makeTwoPointConicalGradient(io.github.humbleui.types.Point p0, float r0, io.github.humbleui.types.Point p1, float r1, int[] colors)
-
makeTwoPointConicalGradient
public static Shader makeTwoPointConicalGradient(float x0, float y0, float r0, float x1, float y1, float r1, int[] colors)
-
makeTwoPointConicalGradient
public static Shader makeTwoPointConicalGradient(io.github.humbleui.types.Point p0, float r0, io.github.humbleui.types.Point p1, float r1, int[] colors, float[] positions)
-
makeTwoPointConicalGradient
public static Shader makeTwoPointConicalGradient(float x0, float y0, float r0, float x1, float y1, float r1, int[] colors, float[] positions)
-
makeTwoPointConicalGradient
public static Shader makeTwoPointConicalGradient(io.github.humbleui.types.Point p0, float r0, io.github.humbleui.types.Point p1, float r1, int[] colors, float[] positions, GradientStyle style)
-
makeTwoPointConicalGradient
public static Shader makeTwoPointConicalGradient(float x0, float y0, float r0, float x1, float y1, float r1, int[] colors, float[] positions, GradientStyle style)
-
makeTwoPointConicalGradient
public static Shader makeTwoPointConicalGradient(io.github.humbleui.types.Point p0, float r0, io.github.humbleui.types.Point p1, float r1, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)
-
makeTwoPointConicalGradient
public static Shader makeTwoPointConicalGradient(float x0, float y0, float r0, float x1, float y1, float r1, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)
-
makeSweepGradient
public static Shader makeSweepGradient(io.github.humbleui.types.Point center, int[] colors)
-
makeSweepGradient
public static Shader makeSweepGradient(float x, float y, int[] colors)
-
makeSweepGradient
public static Shader makeSweepGradient(io.github.humbleui.types.Point center, int[] colors, float[] positions)
-
makeSweepGradient
public static Shader makeSweepGradient(float x, float y, int[] colors, float[] positions)
-
makeSweepGradient
public static Shader makeSweepGradient(io.github.humbleui.types.Point center, int[] colors, float[] positions, GradientStyle style)
-
makeSweepGradient
public static Shader makeSweepGradient(float x, float y, int[] colors, float[] positions, GradientStyle style)
-
makeSweepGradient
public static Shader makeSweepGradient(io.github.humbleui.types.Point center, float startAngle, float endAngle, int[] colors, float[] positions, GradientStyle style)
-
makeSweepGradient
public static Shader makeSweepGradient(float x, float y, float startAngle, float endAngle, int[] colors, float[] positions, GradientStyle style)
-
makeSweepGradient
public static Shader makeSweepGradient(io.github.humbleui.types.Point center, float startAngle, float endAngle, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)
-
makeSweepGradient
public static Shader makeSweepGradient(float x, float y, float startAngle, float endAngle, Color4f[] colors, ColorSpace cs, float[] positions, GradientStyle style)
-
makeEmpty
public static Shader makeEmpty()
-
makeColor
public static Shader makeColor(int color)
-
makeColor
public static Shader makeColor(Color4f color, ColorSpace space)
-
_nMakeWithColorFilter
public static long _nMakeWithColorFilter(long ptr, long colorFilterPtr)
-
_nMakeLinearGradient
public static long _nMakeLinearGradient(float x0, float y0, float x1, float y1, int[] colors, float[] positions, int tileType, int flags, float[] matrix)
-
_nMakeLinearGradientCS
public static long _nMakeLinearGradientCS(float x0, float y0, float x1, float y1, float[] colors, long colorSpacePtr, float[] positions, int tileType, int flags, float[] matrix)
-
_nMakeRadialGradient
public static long _nMakeRadialGradient(float x, float y, float r, int[] colors, float[] positions, int tileType, int flags, float[] matrix)
-
_nMakeRadialGradientCS
public static long _nMakeRadialGradientCS(float x, float y, float r, float[] colors, long colorSpacePtr, float[] positions, int tileType, int flags, float[] matrix)
-
_nMakeTwoPointConicalGradient
public static long _nMakeTwoPointConicalGradient(float x0, float y0, float r0, float x1, float y1, float r1, int[] colors, float[] positions, int tileType, int flags, float[] matrix)
-
_nMakeTwoPointConicalGradientCS
public static long _nMakeTwoPointConicalGradientCS(float x0, float y0, float r0, float x1, float y1, float r1, float[] colors, long colorSpacePtr, float[] positions, int tileType, int flags, float[] matrix)
-
_nMakeSweepGradient
public static long _nMakeSweepGradient(float x, float y, float startAngle, float endAngle, int[] colors, float[] positions, int tileType, int flags, float[] matrix)
-
_nMakeSweepGradientCS
public static long _nMakeSweepGradientCS(float x, float y, float startAngle, float endAngle, float[] colors, long colorSpacePtr, float[] positions, int tileType, int flags, float[] matrix)
-
_nMakeEmpty
public static long _nMakeEmpty()
-
_nMakeColor
public static long _nMakeColor(int color)
-
_nMakeColorCS
public static long _nMakeColorCS(float r, float g, float b, float a, long colorSpacePtr)
-
_nMakeBlend
public static long _nMakeBlend(int blendMode, long dst, long src)
-
-