diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-02-10 00:53:58 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-02-10 00:53:58 +0100 |
commit | 5bfaf048e81900ffdc0bb2815f8465235c4462d5 (patch) | |
tree | 5264bf22976d9dd666fceb8dc7d337e9b71fa787 /testobject.h | |
parent | 4e59b62be595d9c0e1e95f51c6c4c25f37bdb783 (diff) | |
parent | c459b4901f3f453f83a93a38228e3241dd8190c2 (diff) | |
download | termgl-5bfaf048e81900ffdc0bb2815f8465235c4462d5.tar.gz |
Merge branch 'master' of https://gitlab.lrz.de/ge49jic/engine
Diffstat (limited to 'testobject.h')
-rw-r--r-- | testobject.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/testobject.h b/testobject.h deleted file mode 100644 index 80882b7..0000000 --- a/testobject.h +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once - -#include "cObject.h" -#include <string> - -class testobject : cObject -{ - -public: - testobject() - { - setSize(10,5); - cc = 0; - - drawRectangle('#', NULL, {0,0}, {9,4}, _COL_GREEN, _COL_DEFAULT); - } - - ~testobject() - { - destruct(); - } - - virtual void onClick(sPos _pos, unsigned int _button) - { - cc++; - drawText(std::to_string(cc), {2,2}, _COL_RED); - - drawPoint('Q', _pos, true, _COL_YELLOW); - } - - virtual void onChar(unsigned char _c) - { - drawPoint(_c, {1,1},true, _COL_BLUE); - } -private: - int cc; -}; |