1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#pragma once #include <kurator/engine/Point.h> #include <kurator/engine/Rect.h> namespace kurator { class Mouse { public: Mouse(); void update(); engine::Point position() const; engine::Rect selection() const; bool is_dragging() const; private: engine::Point start_; }; } // namespace kurator