30 All = Translate | Rotate | Zoom,
36 ModeBit getModeMask()
const {
return touchModeMask_; }
39 virtual bool onTouchStart_(
int id,
int x,
int y )
override;
40 virtual bool onTouchMove_(
int id,
int x,
int y )
override;
41 virtual bool onTouchEnd_(
int id,
int x,
int y )
override;
52 bool update( Info info,
bool remove =
false );
58 std::optional<Vector2f> getPosition( Finger fing )
const;
59 std::optional<Vector2f> getPosition(
int id )
const;
60 std::optional<Finger> getFingerById(
int id )
const;
61 std::optional<int> getIdByFinger( Finger fing )
const;
62 int getNumPressed()
const;
64 std::array<Info,2> info_;
68 MultiInfo multiPrevInfo_;
69 bool mouseMode_{
false };
70 ModeBit touchModeMask_{ ModeBit::All };
72 std::function<void( AffineXf3f& )> transformModifierCb_;