2 #include "oxygine-include.h" 4 #include "math/Vector2.h" 6 #include "ClipRectActor.h" 10 DECLARE_SMART(SlidingActor, spSlidingActor);
15 static void setDefaultTouchThreshold(
float val);
22 BEGIN = sysEventID(
'S',
'B',
'G'),
23 SLIDING = sysEventID(
'S',
'S',
'L'),
24 END = sysEventID(
'S',
'E',
'N')
35 spActor getContent()
const {
return _content;}
36 const RectF& getDragBounds()
const {
return _drag.getDragBounds();}
49 void serialize(serializedata* data)
override;
50 void deserialize(
const deserializedata* data)
override;
55 void handleEvent(Event* event)
override;
56 void sizeChanged(
const Vector2& size)
override;
57 void doUpdate(
const UpdateState& us)
override;
58 void updateDragBounds();
61 void _newEvent(Event* event);
74 spClipRectActor _clip;
76 spEventDispatcher _holded;
90 pointer_index _finger;
96 EDITOR_INCLUDE(SlidingActor);
void setContent(spActor content)
void setLocked(bool locked)
–oxgl-end–!
Definition: Actor.h:14
void doUpdate(const UpdateState &us) override
Definition: SlidingActor.h:17
void setTouchThreshold(float rad)
Definition: SlidingActor.h:78
Definition: SlidingActor.h:11