Lines Matching refs:from
44 "dircFling [velocity stepLength] direction ranges from 0,1,2,3 (left, right, up, down)\n"
46 "swipe/drag <from_x> <from_y> <to_x> <to_y> [velocity] velocity ranges from 200 to 40000, default 600\n"
47 "fling <from_x> <from_y> <to_x> <to_y> [velocity] velocity ranges from 200 to 40000, default 600\n"
59 static bool CreateFlingPoint(Point &to, Point &from, Point screenSize, Direction direction)
64 from.px_ = to.px_ - screenSize.px_ / INDEX_FOUR;
65 from.py_ = to.py_;
68 from.px_ = to.px_ + screenSize.px_ / INDEX_FOUR;
69 from.py_ = to.py_;
72 from.px_ = to.px_;
73 from.py_ = to.py_ - screenSize.py_ / INDEX_FOUR;
76 from.px_ = to.px_;
77 from.py_ = to.py_ + screenSize.py_ / INDEX_FOUR;
85 bool GetPoints(Point &to, Point &from, int32_t argc, char *argv[])
96 from = Point(from_x, from_y);
112 bool CheckStepLength(UiOpArgs &uiOpArgs, Point to, Point from, uint32_t stepLength)
114 const int32_t distanceX = to.px_ - from.px_;
115 const int32_t distanceY = to.py_ - from.py_;
130 Point from;
135 if (!CreateFlingPoint(to, from, screenSize, direction)) {
147 if (!GetPoints(to, from, argc, argv)) {
154 if (!CheckStepLength(uiOpArgs, to, from, stepLength)) {
164 auto touch = GenericSwipe(op, from, to);
176 Point from;
179 if (!GetPoints(to, from, argc, argv)) {
191 auto touch = GenericSwipe(op, from, to);