5#ifndef FLUTTER_LIB_UI_PAINTING_GRADIENT_H_
6#define FLUTTER_LIB_UI_PAINTING_GRADIENT_H_
8#include "flutter/display_list/effects/dl_color_source.h"
9#include "flutter/lib/ui/painting/matrix.h"
10#include "flutter/lib/ui/painting/shader.h"
16 DEFINE_WRAPPERTYPEINFO();
23 void initLinear(
const tonic::Float32List& end_points,
24 const tonic::Int32List&
colors,
25 const tonic::Float32List& color_stops,
27 const tonic::Float64List& matrix4);
32 const tonic::Int32List&
colors,
33 const tonic::Float32List& color_stops,
35 const tonic::Float64List& matrix4);
39 const tonic::Int32List&
colors,
40 const tonic::Float32List& color_stops,
44 const tonic::Float64List& matrix4);
52 const tonic::Int32List&
colors,
53 const tonic::Float32List& color_stops,
55 const tonic::Float64List& matrix4);
64 std::shared_ptr<DlColorSource> dl_shader_;
static void Create(Dart_Handle wrapper)
void initRadial(double center_x, double center_y, double radius, const tonic::Int32List &colors, const tonic::Float32List &color_stops, DlTileMode tile_mode, const tonic::Float64List &matrix4)
void initLinear(const tonic::Float32List &end_points, const tonic::Int32List &colors, const tonic::Float32List &color_stops, DlTileMode tile_mode, const tonic::Float64List &matrix4)
std::shared_ptr< DlColorSource > shader(DlImageSampling sampling) override
void initTwoPointConical(double start_x, double start_y, double start_radius, double end_x, double end_y, double end_radius, const tonic::Int32List &colors, const tonic::Float32List &color_stops, DlTileMode tile_mode, const tonic::Float64List &matrix4)
void initSweep(double center_x, double center_y, const tonic::Int32List &colors, const tonic::Float32List &color_stops, DlTileMode tile_mode, double start_angle, double end_angle, const tonic::Float64List &matrix4)
~CanvasGradient() override
struct _Dart_Handle * Dart_Handle
PODArray< SkColor > colors
SkSamplingOptions sampling