2 #include "oxygine-include.h" 8 Vector2 convertPosUp(Actor* src, Actor* dest,
const Vector2& pos,
bool direction);
9 Vector2 convertPosDown(Actor* src, Actor* dest,
const Vector2& pos,
bool direction);
17 void init(
Actor* actor);
22 Actor* getDragClient()
const {
return _dragClient;}
23 const RectF& getDragBounds()
const {
return _bounds;}
24 const Vector2& getClientPos()
const {
return _clientPos;}
25 bool getDragEnabled()
const {
return _dragEnabled; }
26 bool isDragging()
const {
return _pressed;}
28 void setDragEnabled(
bool en) {_dragEnabled = en;}
33 void setIgnoreTouchUp(
bool ignore) { _ignoreTouchUp = ignore; }
34 void snapClient2Bounds();
38 void onEvent(
Event* event);
39 void startDrag(
const Vector2& localPos);
42 void onMove(
const Vector2& position);
void setDragBounds(const RectF &bounds)
Definition: Draggable.h:11
void setDragClient(Actor *actor)
–oxgl-end–!
Definition: Actor.h:14
Definition: PointerState.h:18
Definition: TouchEvent.h:7