Sha256: 0e6aa6a28b5ea824903b2d136ca17ed760a1f206d17a6aa7aa552a5eb765f301
Contents?: true
Size: 890 Bytes
Versions: 3
Compression:
Stored size: 890 Bytes
Contents
#include "reflex/defs.h" namespace Reflex { Key::Key () : code(KEY_NONE), modifiers(MOD_NONE), repeat(0) { } Key::Key (const char* chars, int code, uint modifiers, int repeat) : chars(chars ? chars : ""), code(code), modifiers(modifiers), repeat(repeat) { } Points::Points () : type(POINT_NONE), size(0), modifiers(MOD_NONE), count(0), drag(false), x(0), y(0) { } Points::Points ( int type, coord x_, coord y_, uint modifiers, uint count, bool drag) : type(type), size(1), modifiers(modifiers), count(count), drag(drag), x(x_), y(y_) { } Points::Points ( int type, const Point* points_, size_t size_, uint modifiers, uint count, bool drag) : type(type), size(size_), modifiers(modifiers), count(count), drag(drag) { if (size > MAX) size = MAX; if (points_) { for (size_t i = 0; i < size; ++i) points[i] = points_[i]; } } };// Reflex
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reflexion-0.1.6 | src/defs.cpp |
reflexion-0.1.5 | src/defs.cpp |
reflexion-0.1.4 | src/defs.cpp |