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

Public Member Functions

 DragPolyClick (SkPoint poly[], int count)
 
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 243 of file PathClipSlide.cpp.

Constructor & Destructor Documentation

◆ DragPolyClick()

EdgeClipSlide::DragPolyClick::DragPolyClick ( SkPoint  poly[],
int  count 
)
inline

Definition at line 248 of file PathClipSlide.cpp.

248 : fPoly(poly), fCount(count)
249 {
250 SkASSERT((size_t)count <= std::size(fSrc));
251 memcpy(fSrc, poly, count * sizeof(SkPoint));
252 }
int count
Definition: FontMgrTest.cpp:50
#define SkASSERT(cond)
Definition: SkAssert.h:116
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

Member Function Documentation

◆ handleMove()

void EdgeClipSlide::DragPolyClick::handleMove ( )
inlineoverridevirtual

Implements EdgeClipSlide::MyClick.

Definition at line 253 of file PathClipSlide.cpp.

253 {
254 const SkScalar dx = fCurr.x() - fOrig.x();
255 const SkScalar dy = fCurr.y() - fOrig.y();
256 for (int i = 0; i < fCount; ++i) {
257 fPoly[i].set(snap(fSrc[i].x() + dx), snap(fSrc[i].y() + dy));
258 }
259 }
static SkScalar snap(SkScalar x)
float SkScalar
Definition: extension.cpp:12
double y
double x
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
Definition: SkRecords.h:208
void set(float x, float y)
Definition: SkPoint_impl.h:200
constexpr float y() const
Definition: SkPoint_impl.h:187
constexpr float x() const
Definition: SkPoint_impl.h:181

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