Inherits CameraSlide.
Definition at line 498 of file ClipSlide.cpp.
◆ HalfPlaneSlide3()
HalfPlaneSlide3::HalfPlaneSlide3 |
( |
| ) |
|
|
inline |
◆ draw()
void HalfPlaneSlide3::draw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverride |
Definition at line 520 of file ClipSlide.cpp.
520 {
521 SkM44 mx = this->get44({0, 0, 400, 400});
522
524 paint.setColor({0.75, 0.75, 0.75, 1});
526
527 paint.setShader(fShader);
528
529 if (fShowUnclipped) {
532 paint.setAlphaf(0.33f);
534 paint.setAlphaf(1.f);
536 }
537
538
544 }
549
552 }
static SkHalfPlane half_plane_w0(const SkMatrix &m)
static void draw_halfplane(SkCanvas *canvas, SkPoint p0, SkPoint p1, SkColor c)
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
void drawPath(const SkPath &path, const SkPaint &paint)
void concat(const SkMatrix &matrix)
static bool PerspectiveClip(const SkPath &src, const SkMatrix &, SkPath *result)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
◆ load()
Definition at line 506 of file ClipSlide.cpp.
506 {
510 }
static SkPath make_path()
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
static SkMatrix Scale(SkScalar sx, SkScalar sy)
SkSamplingOptions(SkFilterMode::kLinear))
◆ onChar()
bool HalfPlaneSlide3::onChar |
( |
SkUnichar |
uni | ) |
|
|
inlineoverride |
Definition at line 512 of file ClipSlide.cpp.
512 {
513 switch (uni) {
514 case 'u': fShowUnclipped = !fShowUnclipped; return true;
515 default: break;
516 }
518 }
bool onChar(SkUnichar uni) override
◆ onClick()
bool HalfPlaneSlide3::onClick |
( |
Click * |
click | ) |
|
|
inlineoverrideprotected |
◆ onFindClickHandler()
The documentation for this class was generated from the following file: