Sha256: 31cbe8faada8499e8413c1c1657b0055e2616bba59b4608bb205b69c26528f1e
Contents?: true
Size: 1.32 KB
Versions: 4
Compression:
Stored size: 1.32 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_LAST = PEN };// Type enum Action { ACTION_NONE = 0, DOWN, UP, MOVE, CANCEL, STAY };// Action Pointer (); Pointer ( ID id, uint types, 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 types () 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; const Pointer* down () const; operator bool () const; bool operator ! () const; struct Data; Xot::PImpl<Data> self; };// Pointer }// Reflex #endif//EOH
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
reflexion-0.3.4 | include/reflex/pointer.h |
reflexion-0.3.3 | include/reflex/pointer.h |
reflexion-0.3.2 | include/reflex/pointer.h |
reflexion-0.3.1 | include/reflex/pointer.h |