Sha256: 2e7e8ca2507ec45175c2afb0639c08c5aac2d59d3758b6b74673e1844aebbf89
Contents?: true
Size: 1.26 KB
Versions: 16
Compression:
Stored size: 1.26 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, uint click_count, bool drag, 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; uint click_count () const; bool is_drag () 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
16 entries across 16 versions & 1 rubygems