Sha256: 32f6df45d64170de3059f095bcd58f77a38cdb6a3f2ca970a0b7ce43e6fdc30e
Contents?: true
Size: 1.31 KB
Versions: 6
Compression:
Stored size: 1.31 KB
Contents
// -*- c++ -*- #pragma once #ifndef __REFLEX_POINTER_H__ #define __REFLEX_POINTER_H__ #include <xot/pimpl.h> #include <xot/util.h> #include <rays/point.h> #include <reflex/defs.h> namespace Reflex { class Pointer { typedef Pointer This; public: typedef int ID; enum Type { TYPE_NONE = 0, MOUSE = Xot::bit(0), MOUSE_LEFT = Xot::bit(1), MOUSE_RIGHT = Xot::bit(2), MOUSE_MIDDLE = Xot::bit(3), TOUCH = Xot::bit(4), PEN = Xot::bit(5), };// Type enum Action { ACTION_NONE = 0, DOWN, UP, MOVE, CANCEL, STAY };// Action Pointer (); Pointer ( ID id, uint type, Action action, const Point& position, uint modifiers, bool drag, uint click_count, uint view_index, double time); Pointer (const This& obj); Pointer& operator = (const This& obj); ~Pointer (); ID id () const; uint type () const; Action action () const; const Point& position () const; uint modifiers () const; bool is_drag () const; uint click_count () const; uint view_index () const; double time () const; const Pointer* prev () const; operator bool () const; bool operator ! () const; struct Data; Xot::PImpl<Data> self; };// Pointer }// Reflex #endif//EOH
Version data entries
6 entries across 6 versions & 1 rubygems