Flutter Engine
The Flutter Engine
|
#include <ClickHandlerSlide.h>
Classes | |
class | Click |
Public Member Functions | |
bool | onMouse (SkScalar x, SkScalar y, skui::InputState clickState, skui::ModifierKey modifierKeys) final |
Public Member Functions inherited from Slide | |
virtual SkISize | getDimensions () const |
virtual void | gpuTeardown () |
virtual void | draw (SkCanvas *canvas)=0 |
virtual bool | animate (double nanos) |
virtual void | load (SkScalar winWidth, SkScalar winHeight) |
virtual void | resize (SkScalar winWidth, SkScalar winHeight) |
virtual void | unload () |
virtual bool | onChar (SkUnichar c) |
virtual bool | onMouse (SkScalar x, SkScalar y, skui::InputState state, skui::ModifierKey modifiers) |
virtual bool | onGetControls (SkMetaData *) |
virtual void | onSetControls (const SkMetaData &) |
const SkString & | getName () |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Protected Member Functions | |
virtual Click * | onFindClickHandler (SkScalar x, SkScalar y, skui::ModifierKey modi)=0 |
virtual bool | onClick (Click *)=0 |
Additional Inherited Members | |
Protected Attributes inherited from Slide | |
SkString | fName |
Provides a higher level abstraction for click handling than the Slide base class. A Click object is is used to track the state of the mouse over time.
Definition at line 22 of file ClickHandlerSlide.h.
|
protectedpure virtual |
Override to track clicks. Return true as long as you want to track the pen/mouse.
Implemented in CubeBaseSlide, HalfPlaneSlide, HalfPlaneSlide2, DrawLineSlide, BackdropSlide, MixerSlide, EdgeClipSlide, QuadStrokerSlide, SGSlide, XferSlide, AudioSlide, PathClipSlide, PathSlide, ArcToSlide, FatStrokeSlide, CubicCurveSlide, CubicCurve2Slide, SimpleStrokerSlide, SlidesSlide, StringArtSlide, VariableWidthStrokerSlide, and CubicResamplerSlide.
|
protectedpure virtual |
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.
Implemented in CubeBaseSlide, HalfPlaneSlide, HalfPlaneSlide2, DrawLineSlide, BackdropSlide, PathSlide, ArcToSlide, FatStrokeSlide, CubicCurveSlide, CubicCurve2Slide, QuadStrokerSlide, SGSlide, SimpleStrokerSlide, VariableWidthStrokerSlide, AudioSlide, DegenerateQuadSlide, SampleFitCubicToCircle, GraphitePrimitivesSlide, MixerSlide, PathClipSlide, EdgeClipSlide, SlidesSlide, StringArtSlide, XferSlide, and CubicResamplerSlide.
|
finalvirtual |
Reimplemented from Slide.
Definition at line 10 of file ClickHandlerSlide.cpp.