Flutter Engine
The Flutter Engine
|
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkShader.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkTileMode.h"
#include "include/effects/SkGradientShader.h"
Go to the source code of this file.
Classes | |
class | HardstopGradientShaderGM |
Functions | |
static void | shade_rect (SkCanvas *canvas, sk_sp< SkShader > shader, int cellRow, int cellCol) |
static void | create_gradient_points (int cellRow, int cellCol, SkPoint points[2]) |
Variables | |
const int | WIDTH = 500 |
const int | HEIGHT = 500 |
const int | NUM_ROWS = 8 |
const int | NUM_COLS = 3 |
const int | CELL_WIDTH = WIDTH / NUM_COLS |
const int | CELL_HEIGHT = HEIGHT / NUM_ROWS |
const int | PAD_WIDTH = 3 |
const int | PAD_HEIGHT = 3 |
const int | RECT_WIDTH = CELL_WIDTH - (2 * PAD_WIDTH) |
const int | RECT_HEIGHT = CELL_HEIGHT - (2 * PAD_HEIGHT) |
Definition at line 80 of file hardstop_gradients.cpp.
|
static |
Definition at line 68 of file hardstop_gradients.cpp.
Definition at line 60 of file hardstop_gradients.cpp.
Definition at line 59 of file hardstop_gradients.cpp.
const int HEIGHT = 500 |
Definition at line 54 of file hardstop_gradients.cpp.
const int NUM_COLS = 3 |
Definition at line 57 of file hardstop_gradients.cpp.
const int NUM_ROWS = 8 |
Definition at line 56 of file hardstop_gradients.cpp.
const int PAD_HEIGHT = 3 |
Definition at line 63 of file hardstop_gradients.cpp.
const int PAD_WIDTH = 3 |
Definition at line 62 of file hardstop_gradients.cpp.
const int RECT_HEIGHT = CELL_HEIGHT - (2 * PAD_HEIGHT) |
Definition at line 66 of file hardstop_gradients.cpp.
const int RECT_WIDTH = CELL_WIDTH - (2 * PAD_WIDTH) |
Definition at line 65 of file hardstop_gradients.cpp.
const int WIDTH = 500 |
Definition at line 53 of file hardstop_gradients.cpp.