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

Public Member Functions

 DragRectClick (SkRect *rect)
 
void handleMove () override
 
- Public Member Functions inherited from EdgeClipSlide::MyClick
 MyClick ()
 
virtual void handleMove ()=0
 
- 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 236 of file PathClipSlide.cpp.

Constructor & Destructor Documentation

◆ DragRectClick()

EdgeClipSlide::DragRectClick::DragRectClick ( SkRect rect)
inline

Definition at line 239 of file PathClipSlide.cpp.

239: fRect(rect) {}
sk_sp< SkBlender > blender SkRect rect
Definition: SkRecords.h:350

Member Function Documentation

◆ handleMove()

void EdgeClipSlide::DragRectClick::handleMove ( )
inlineoverridevirtual

Implements EdgeClipSlide::MyClick.

Definition at line 240 of file PathClipSlide.cpp.

240{ fRect->offset(fCurr.x() - fPrev.x(), fCurr.y() - fPrev.y()); }
constexpr float y() const
Definition: SkPoint_impl.h:187
constexpr float x() const
Definition: SkPoint_impl.h:181
void offset(float dx, float dy)
Definition: SkRect.h:1016

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