diff options
author | jonas <himself@jonasgunz.de> | 2019-02-01 13:38:52 +0100 |
---|---|---|
committer | jonas <himself@jonasgunz.de> | 2019-02-01 13:38:52 +0100 |
commit | b59b93d3943262cb66e3355e0c9ce0ea672ff196 (patch) | |
tree | b74e581021f01bdfd415a73ee195ed24a88d1413 /testobject.h | |
parent | 6c7c4cc2f161eb02747e2ef6d1d59efae178db43 (diff) | |
download | termgl-b59b93d3943262cb66e3355e0c9ce0ea672ff196.tar.gz |
Documentation
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; -}; |