Flutter Engine
The Flutter Engine
|
#include <canvas.h>
Public Member Functions | |
~Canvas () override | |
void | save () |
void | saveLayerWithoutBounds (Dart_Handle paint_objects, Dart_Handle paint_data) |
void | saveLayer (double left, double top, double right, double bottom, Dart_Handle paint_objects, Dart_Handle paint_data) |
void | restore () |
int | getSaveCount () |
void | restoreToCount (int count) |
void | translate (double dx, double dy) |
void | scale (double sx, double sy) |
void | rotate (double radians) |
void | skew (double sx, double sy) |
void | transform (const tonic::Float64List &matrix4) |
void | getTransform (Dart_Handle matrix4_handle) |
void | clipRect (double left, double top, double right, double bottom, DlCanvas::ClipOp clipOp, bool doAntiAlias=true) |
void | clipRRect (const RRect &rrect, bool doAntiAlias=true) |
void | clipPath (const CanvasPath *path, bool doAntiAlias=true) |
void | getDestinationClipBounds (Dart_Handle rect_handle) |
void | getLocalClipBounds (Dart_Handle rect_handle) |
void | drawColor (SkColor color, DlBlendMode blend_mode) |
void | drawLine (double x1, double y1, double x2, double y2, Dart_Handle paint_objects, Dart_Handle paint_data) |
void | drawPaint (Dart_Handle paint_objects, Dart_Handle paint_data) |
void | drawRect (double left, double top, double right, double bottom, Dart_Handle paint_objects, Dart_Handle paint_data) |
void | drawRRect (const RRect &rrect, Dart_Handle paint_objects, Dart_Handle paint_data) |
void | drawDRRect (const RRect &outer, const RRect &inner, Dart_Handle paint_objects, Dart_Handle paint_data) |
void | drawOval (double left, double top, double right, double bottom, Dart_Handle paint_objects, Dart_Handle paint_data) |
void | drawCircle (double x, double y, double radius, Dart_Handle paint_objects, Dart_Handle paint_data) |
void | drawArc (double left, double top, double right, double bottom, double startAngle, double sweepAngle, bool useCenter, Dart_Handle paint_objects, Dart_Handle paint_data) |
void | drawPath (const CanvasPath *path, Dart_Handle paint_objects, Dart_Handle paint_data) |
Dart_Handle | drawImage (const CanvasImage *image, double x, double y, Dart_Handle paint_objects, Dart_Handle paint_data, int filterQualityIndex) |
Dart_Handle | drawImageRect (const CanvasImage *image, double src_left, double src_top, double src_right, double src_bottom, double dst_left, double dst_top, double dst_right, double dst_bottom, Dart_Handle paint_objects, Dart_Handle paint_data, int filterQualityIndex) |
Dart_Handle | drawImageNine (const CanvasImage *image, double center_left, double center_top, double center_right, double center_bottom, double dst_left, double dst_top, double dst_right, double dst_bottom, Dart_Handle paint_objects, Dart_Handle paint_data, int bitmapSamplingIndex) |
void | drawPicture (Picture *picture) |
void | drawPoints (Dart_Handle paint_objects, Dart_Handle paint_data, DlCanvas::PointMode point_mode, const tonic::Float32List &points) |
void | drawVertices (const Vertices *vertices, DlBlendMode blend_mode, Dart_Handle paint_objects, Dart_Handle paint_data) |
Dart_Handle | drawAtlas (Dart_Handle paint_objects, Dart_Handle paint_data, int filterQualityIndex, CanvasImage *atlas, Dart_Handle transforms_handle, Dart_Handle rects_handle, Dart_Handle colors_handle, DlBlendMode blend_mode, Dart_Handle cull_rect_handle) |
void | drawShadow (const CanvasPath *path, SkColor color, double elevation, bool transparentOccluder) |
void | Invalidate () |
DisplayListBuilder * | builder () |
Public Member Functions inherited from flutter::RefCountedDartWrappable< Canvas > | |
virtual void | RetainDartWrappableReference () const override |
virtual void | ReleaseDartWrappableReference () const override |
Public Member Functions inherited from fml::RefCountedThreadSafe< Canvas > | |
void | Release () const |
Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
void | AddRef () const |
bool | HasOneRef () const |
void | AssertHasOneRef () const |
Public Member Functions inherited from tonic::DartWrappable | |
DartWrappable () | |
virtual const DartWrapperInfo & | GetDartWrapperInfo () const =0 |
virtual void | RetainDartWrappableReference () const =0 |
virtual void | ReleaseDartWrappableReference () const =0 |
Dart_Handle | CreateDartWrapper (DartState *dart_state) |
void | AssociateWithDartWrapper (Dart_Handle wrappable) |
void | ClearDartWrapper () |
Dart_WeakPersistentHandle | dart_wrapper () const |
Static Public Member Functions | |
static void | Create (Dart_Handle wrapper, PictureRecorder *recorder, double left, double top, double right, double bottom) |
Additional Inherited Members | |
Public Types inherited from tonic::DartWrappable | |
enum | DartNativeFields { kPeerIndex , kNumberOfNativeFields } |
Protected Member Functions inherited from fml::RefCountedThreadSafe< Canvas > | |
RefCountedThreadSafe () | |
~RefCountedThreadSafe () | |
Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
RefCountedThreadSafeBase () | |
~RefCountedThreadSafeBase () | |
bool | Release () const |
void | Adopt () |
Protected Member Functions inherited from tonic::DartWrappable | |
virtual | ~DartWrappable () |
Static Protected Member Functions inherited from tonic::DartWrappable | |
static Dart_PersistentHandle | GetTypeForWrapper (tonic::DartState *dart_state, const tonic::DartWrapperInfo &wrapper_info) |
|
inline |
void flutter::Canvas::clipPath | ( | const CanvasPath * | path, |
bool | doAntiAlias = true |
||
) |
Definition at line 181 of file canvas.cc.
void flutter::Canvas::clipRect | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom, | ||
DlCanvas::ClipOp | clipOp, | ||
bool | doAntiAlias = true |
||
) |
Definition at line 161 of file canvas.cc.
Definition at line 174 of file canvas.cc.
|
static |
Definition at line 23 of file canvas.cc.
void flutter::Canvas::drawArc | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom, | ||
double | startAngle, | ||
double | sweepAngle, | ||
bool | useCenter, | ||
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data | ||
) |
Definition at line 335 of file canvas.cc.
Dart_Handle flutter::Canvas::drawAtlas | ( | Dart_Handle | paint_objects, |
Dart_Handle | paint_data, | ||
int | filterQualityIndex, | ||
CanvasImage * | atlas, | ||
Dart_Handle | transforms_handle, | ||
Dart_Handle | rects_handle, | ||
Dart_Handle | colors_handle, | ||
DlBlendMode | blend_mode, | ||
Dart_Handle | cull_rect_handle | ||
) |
Definition at line 562 of file canvas.cc.
void flutter::Canvas::drawCircle | ( | double | x, |
double | y, | ||
double | radius, | ||
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data | ||
) |
Definition at line 319 of file canvas.cc.
void flutter::Canvas::drawColor | ( | SkColor | color, |
DlBlendMode | blend_mode | ||
) |
Definition at line 215 of file canvas.cc.
void flutter::Canvas::drawDRRect | ( | const RRect & | outer, |
const RRect & | inner, | ||
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data | ||
) |
Definition at line 287 of file canvas.cc.
Dart_Handle flutter::Canvas::drawImage | ( | const CanvasImage * | image, |
double | x, | ||
double | y, | ||
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data, | ||
int | filterQualityIndex | ||
) |
Definition at line 379 of file canvas.cc.
Dart_Handle flutter::Canvas::drawImageNine | ( | const CanvasImage * | image, |
double | center_left, | ||
double | center_top, | ||
double | center_right, | ||
double | center_bottom, | ||
double | dst_left, | ||
double | dst_top, | ||
double | dst_right, | ||
double | dst_bottom, | ||
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data, | ||
int | bitmapSamplingIndex | ||
) |
Definition at line 454 of file canvas.cc.
Dart_Handle flutter::Canvas::drawImageRect | ( | const CanvasImage * | image, |
double | src_left, | ||
double | src_top, | ||
double | src_right, | ||
double | src_bottom, | ||
double | dst_left, | ||
double | dst_top, | ||
double | dst_right, | ||
double | dst_bottom, | ||
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data, | ||
int | filterQualityIndex | ||
) |
Definition at line 411 of file canvas.cc.
void flutter::Canvas::drawLine | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data | ||
) |
Definition at line 221 of file canvas.cc.
void flutter::Canvas::drawOval | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom, | ||
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data | ||
) |
Definition at line 301 of file canvas.cc.
void flutter::Canvas::drawPaint | ( | Dart_Handle | paint_objects, |
Dart_Handle | paint_data | ||
) |
Definition at line 239 of file canvas.cc.
void flutter::Canvas::drawPath | ( | const CanvasPath * | path, |
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data | ||
) |
Definition at line 361 of file canvas.cc.
void flutter::Canvas::drawPicture | ( | Picture * | picture | ) |
Definition at line 498 of file canvas.cc.
void flutter::Canvas::drawPoints | ( | Dart_Handle | paint_objects, |
Dart_Handle | paint_data, | ||
DlCanvas::PointMode | point_mode, | ||
const tonic::Float32List & | points | ||
) |
Definition at line 513 of file canvas.cc.
void flutter::Canvas::drawRect | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom, | ||
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data | ||
) |
Definition at line 256 of file canvas.cc.
void flutter::Canvas::drawRRect | ( | const RRect & | rrect, |
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data | ||
) |
Definition at line 274 of file canvas.cc.
void flutter::Canvas::drawShadow | ( | const CanvasPath * | path, |
SkColor | color, | ||
double | elevation, | ||
bool | transparentOccluder | ||
) |
Definition at line 612 of file canvas.cc.
void flutter::Canvas::drawVertices | ( | const Vertices * | vertices, |
DlBlendMode | blend_mode, | ||
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data | ||
) |
Definition at line 543 of file canvas.cc.
void flutter::Canvas::getDestinationClipBounds | ( | Dart_Handle | rect_handle | ) |
Definition at line 193 of file canvas.cc.
void flutter::Canvas::getLocalClipBounds | ( | Dart_Handle | rect_handle | ) |
Definition at line 204 of file canvas.cc.
int flutter::Canvas::getSaveCount | ( | ) |
Definition at line 96 of file canvas.cc.
void flutter::Canvas::getTransform | ( | Dart_Handle | matrix4_handle | ) |
Definition at line 148 of file canvas.cc.
void flutter::Canvas::Invalidate | ( | ) |
Definition at line 646 of file canvas.cc.
void flutter::Canvas::restore | ( | ) |
void flutter::Canvas::restoreToCount | ( | int | count | ) |
void flutter::Canvas::rotate | ( | double | radians | ) |
Definition at line 122 of file canvas.cc.
void flutter::Canvas::save | ( | ) |
void flutter::Canvas::saveLayer | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom, | ||
Dart_Handle | paint_objects, | ||
Dart_Handle | paint_data | ||
) |
Definition at line 70 of file canvas.cc.
void flutter::Canvas::saveLayerWithoutBounds | ( | Dart_Handle | paint_objects, |
Dart_Handle | paint_data | ||
) |
void flutter::Canvas::scale | ( | double | sx, |
double | sy | ||
) |
Definition at line 116 of file canvas.cc.
void flutter::Canvas::skew | ( | double | sx, |
double | sy | ||
) |
Definition at line 128 of file canvas.cc.
void flutter::Canvas::transform | ( | const tonic::Float64List & | matrix4 | ) |
Definition at line 134 of file canvas.cc.
void flutter::Canvas::translate | ( | double | dx, |
double | dy | ||
) |
Definition at line 110 of file canvas.cc.