Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
DegenerateQuadSlide::Click Class Reference
Inheritance diagram for DegenerateQuadSlide::Click:
ClickHandlerSlide::Click

Public Member Functions

 Click (const SkRect &clamp, int index)
 
void doClick (SkPoint points[4])
 
- Public Member Functions inherited from ClickHandlerSlide::Click
 Click ()
 
 Click (std::function< bool(Click *)> f)
 
virtual ~Click ()=default
 

Additional Inherited Members

- Public Attributes inherited from ClickHandlerSlide::Click
SkPoint fOrig = {0, 0}
 
SkPoint fPrev = {0, 0}
 
SkPoint fCurr = {0, 0}
 
skui::InputState fState = skui::InputState::kDown
 
skui::ModifierKey fModifierKeys = skui::ModifierKey::kNone
 
SkMetaData fMeta
 
std::function< bool(Click *)> fFunc
 
bool fHasFunc = false
 

Detailed Description

Definition at line 460 of file DegenerateQuadsSlide.cpp.

Constructor & Destructor Documentation

◆ Click()

DegenerateQuadSlide::Click::Click ( const SkRect clamp,
int  index 
)
inline

Definition at line 462 of file DegenerateQuadsSlide.cpp.

463 : fOuterRect(clamp)
464 , fIndex(index) {}
static unsigned clamp(SkFixed fx, int max)

Member Function Documentation

◆ doClick()

void DegenerateQuadSlide::Click::doClick ( SkPoint  points[4])
inline

Definition at line 466 of file DegenerateQuadsSlide.cpp.

466 {
467 if (fIndex >= 0) {
468 this->drag(&points[fIndex]);
469 } else {
470 for (int i = 0; i < 4; ++i) {
471 this->drag(&points[i]);
472 }
473 }
474 }
static const int points[]

The documentation for this class was generated from the following file: