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 /cObject.h | |
parent | 6c7c4cc2f161eb02747e2ef6d1d59efae178db43 (diff) | |
download | termgl-b59b93d3943262cb66e3355e0c9ce0ea672ff196.tar.gz |
Documentation
Diffstat (limited to 'cObject.h')
-rw-r--r-- | cObject.h | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -12,14 +12,26 @@ struct sObject int sizeX; int sizeY; }; -/* cObject can be used standalone as well as inherited + +/** cObject can be used standalone as well as inherited * every cObject has its own framebuffer as well as position viariables to be moveable. -* cObject is used by cObjectHandler to manage all objects to be displayed +* cObject is used by cObjectHandler to manage all objects to be displayed. +* +* Minimal example for inheriting class +* +* +* class example : cObject +* { +* public: +* example() { setSize(10,5); } +* ~example() { destruct(); } +* }; +* */ class cObject : public cRender { public: - /* Sets the size to _sx x _sy + /** Sets the size to _sx x _sy */ cObject(int _sx, int _sy); |