diff options
author | cvs2svn | 2005-06-10 10:29:11 +0000 |
---|---|---|
committer | cvs2svn | 2005-06-10 10:29:11 +0000 |
commit | 960cdf29197bc3f5922110cf26627aa9709ac79b (patch) | |
tree | 7d6e4a472376b203d21826c2230b4a8c6a9024bd /zinclib.d/doc/HOWTO | |
parent | 3fc9c4bc1d6f70db41ad418992bf3d461059d3c0 (diff) | |
download | tkzinc-960cdf29197bc3f5922110cf26627aa9709ac79b.zip tkzinc-960cdf29197bc3f5922110cf26627aa9709ac79b.tar.gz tkzinc-960cdf29197bc3f5922110cf26627aa9709ac79b.tar.bz2 tkzinc-960cdf29197bc3f5922110cf26627aa9709ac79b.tar.xz |
This commit was manufactured by cvs2svn to create branch 'bogue40'.
Diffstat (limited to 'zinclib.d/doc/HOWTO')
-rw-r--r-- | zinclib.d/doc/HOWTO | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/zinclib.d/doc/HOWTO b/zinclib.d/doc/HOWTO deleted file mode 100644 index 6d41c5b..0000000 --- a/zinclib.d/doc/HOWTO +++ /dev/null @@ -1,56 +0,0 @@ -How to use zinclib -================== - -Required lines --------------- - -To use zinclib in you code you need to include zinclib : - - #include "Zinc.hpp" - -Then you must load the tcl interpreter and the zinc library : - - Zinc::load (argv[0]); - - -Zinc usage ----------- - -First create a zinc widget. Each widget has its own windows and -instantly visible. - - Zinc* zn = new Zinc (ZINC_BACKEND_OPENGL); - - -All available functions are in Zinc.hpp and ZincPath.hpp -You can change and read properties of the widget with set and get -commands. Ex : - - zn->setWidth (640); - - -To draw in the widget, you need to create items uning itemCreate -functions. The parent group can be NULL, in which case, the default -one will be used. - - ZincItem* item = zn->itemCreateRectangle (NULL, 10, 10, 100, 100); - -To change item property, use itemSet functions. - - zn->itemSetFilled (item, true); - -To remove an item use itemRemove - - zn->itemRemove (item); - -Don't forget do delete item returned by itemCreate. This is different -from removing it from zinc. Usualy, delete item is called after -removing it, but you can delete it whenever you want. - - -Many zinc function can take a tag as an argument. To use such a tag, -create it using createTag. - - ZincItem* tag = zn->createTag ("tag"); - zn->itemSetFilled (tag, true); - |