Definition at line 24 of file PathClipSlide.cpp.
◆ PathClipSlide()
PathClipSlide::PathClipSlide |
( |
| ) |
|
|
inline |
Definition at line 29 of file PathClipSlide.cpp.
31 }
static constexpr SkPoint Make(float x, float y)
static constexpr SkRect MakeWH(float w, float h)
◆ draw()
void PathClipSlide::draw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverridevirtual |
Implements Slide.
Definition at line 33 of file PathClipSlide.cpp.
33 {
36
39
42
45
49
50 p.setColor(0x800000FF);
52 }
constexpr SkColor SK_ColorRED
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawOval(const SkRect &oval, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
constexpr SkRect makeOffset(float dx, float dy) const
constexpr float centerX() const
constexpr float centerY() const
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
◆ onClick()
|
inlineoverrideprotectedvirtual |
◆ onFindClickHandler()
|
inlineoverrideprotectedvirtual |
Return a Click object to handle the click. onClick will be called repeatedly with the latest mouse state tracked on the Click object until it returns false.
Implements ClickHandlerSlide.
Definition at line 55 of file PathClipSlide.cpp.
55 {
56 return new Click([&](Click* c) {
58 return false;
59 });
60 }
◆ fCenter
◆ fOval
The documentation for this class was generated from the following file: