aboutsummaryrefslogtreecommitdiff
path: root/cObject.h
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2019-02-01 13:38:52 +0100
committerGravatar jonas <himself@jonasgunz.de> 2019-02-01 13:38:52 +0100
commitb59b93d3943262cb66e3355e0c9ce0ea672ff196 (patch)
treeb74e581021f01bdfd415a73ee195ed24a88d1413 /cObject.h
parent6c7c4cc2f161eb02747e2ef6d1d59efae178db43 (diff)
downloadtermgl-b59b93d3943262cb66e3355e0c9ce0ea672ff196.tar.gz
Documentation
Diffstat (limited to 'cObject.h')
-rw-r--r--cObject.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/cObject.h b/cObject.h
index 87d0205..d0947da 100644
--- a/cObject.h
+++ b/cObject.h
@@ -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);