Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Package Functions | List of all members
org.skia.jetski.Paint Class Reference

Classes

enum  Cap
 
enum  Join
 

Public Member Functions

 Paint ()
 
Paint setColor (Color c)
 
Paint setColor (float r, float g, float b, float a)
 
Paint setColorFilter (@Nullable ColorFilter filter)
 
Paint setShader (@Nullable Shader shader)
 
Paint setImageFilter (@Nullable ImageFilter filter)
 
Paint setStroke (boolean stroke)
 
Paint setStrokeWidth (float w)
 
Paint setStrokeCap (Cap cap)
 
Paint setStrokeJoin (Join join)
 
Paint setStrokeMiter (float limit)
 
void release ()
 

Protected Member Functions

void finalize () throws Throwable
 

Package Functions

long getNativeInstance ()
 

Detailed Description

Definition at line 12 of file Paint.java.

Constructor & Destructor Documentation

◆ Paint()

org.skia.jetski.Paint.Paint ( )
inline

Definition at line 15 of file Paint.java.

15 {
16 mNativeInstance = nCreate();
17 }

Member Function Documentation

◆ finalize()

void org.skia.jetski.Paint.finalize ( ) throws Throwable
inlineprotected

Definition at line 99 of file Paint.java.

99 {
100 release();
101 }

◆ getNativeInstance()

long org.skia.jetski.Paint.getNativeInstance ( )
inlinepackage

Definition at line 104 of file Paint.java.

104{ return mNativeInstance; }

◆ release()

void org.skia.jetski.Paint.release ( )
inline

Releases any resources associated with this Paint.

Definition at line 93 of file Paint.java.

93 {
94 nRelease(mNativeInstance);
95 mNativeInstance = 0;
96 }

◆ setColor() [1/2]

Paint org.skia.jetski.Paint.setColor ( Color  c)
inline

Definition at line 19 of file Paint.java.

19 {
20 nSetColor(mNativeInstance, c.r(), c.g(), c.b(), c.a());
21 return this;
22 }

◆ setColor() [2/2]

Paint org.skia.jetski.Paint.setColor ( float  r,
float  g,
float  b,
float  a 
)
inline

Definition at line 24 of file Paint.java.

24 {
25 nSetColor(mNativeInstance, r, g, b, a);
26 return this;
27 }
static bool b
struct MyStruct a[10]

◆ setColorFilter()

Paint org.skia.jetski.Paint.setColorFilter ( @Nullable ColorFilter  filter)
inline

Definition at line 29 of file Paint.java.

29 {
30 nSetColorFilter(mNativeInstance, filter != null ? filter.getNativeInstance() : 0);
31 return this;
32 }

◆ setImageFilter()

Paint org.skia.jetski.Paint.setImageFilter ( @Nullable ImageFilter  filter)
inline

Definition at line 39 of file Paint.java.

39 {
40 nSetImageFilter(mNativeInstance, filter != null ? filter.getNativeInstance() : 0);
41 return this;
42 }

◆ setShader()

Paint org.skia.jetski.Paint.setShader ( @Nullable Shader  shader)
inline

Definition at line 34 of file Paint.java.

34 {
35 nSetShader(mNativeInstance, shader != null ? shader.getNativeInstance() : 0);
36 return this;
37 }

◆ setStroke()

Paint org.skia.jetski.Paint.setStroke ( boolean  stroke)
inline

Definition at line 44 of file Paint.java.

44 {
45 nSetStroke(mNativeInstance, stroke);
46 return this;
47 }

◆ setStrokeCap()

Paint org.skia.jetski.Paint.setStrokeCap ( Cap  cap)
inline

Definition at line 64 of file Paint.java.

64 {
65 nSetStrokeCap(mNativeInstance, cap.nativeInt);
66 return this;
67 }

◆ setStrokeJoin()

Paint org.skia.jetski.Paint.setStrokeJoin ( Join  join)
inline

Definition at line 80 of file Paint.java.

80 {
81 nSetStrokeJoin(mNativeInstance, join.nativeInt);
82 return this;
83 }
SINT Vec< 2 *N, T > join(const Vec< N, T > &lo, const Vec< N, T > &hi)
Definition SkVx.h:242

◆ setStrokeMiter()

Paint org.skia.jetski.Paint.setStrokeMiter ( float  limit)
inline

Definition at line 85 of file Paint.java.

85 {
86 nSetStrokeMiter(mNativeInstance, limit);
87 return this;
88 }

◆ setStrokeWidth()

Paint org.skia.jetski.Paint.setStrokeWidth ( float  w)
inline

Definition at line 49 of file Paint.java.

49 {
50 nSetStrokeWidth(mNativeInstance, w);
51 return this;
52 }
SkScalar w

The documentation for this class was generated from the following file: