10 #include <bnb/utils/defs.hpp>
13 #include <unordered_map>
15 namespace bnb {
namespace interfaces {
28 virtual void on_touches_began(
const std::unordered_map<int64_t, touch> & tocuhes) = 0;
30 virtual void on_touches_moved(
const std::unordered_map<int64_t, touch> & tocuhes) = 0;
32 virtual void on_touches_ended(
const std::unordered_map<int64_t, touch> & tocuhes) = 0;
34 virtual void on_touches_cancelled(
const std::unordered_map<int64_t, touch> & tocuhes) = 0;
36 virtual void on_rotation_gesture(
float angle) = 0;
38 virtual void on_scale_gesture(
float scale) = 0;
40 virtual void on_swipe_gesture(
float dir_x,
float dir_y) = 0;
42 virtual void on_double_tap_gesture(
const touch & pos) = 0;
44 virtual void on_long_tap_gesture(
const touch & pos) = 0;
46 virtual void on_gesture_ended(
const std::string &
id) = 0;