<div dir="ltr"><font face="arial, helvetica, sans-serif">> Pierre: what is the syntax for the "path" method, and what does it do?</font><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">The wrapper offers a layer structure called <i>t_elayer </i>that owns a set of points. </font></div><div><font face="arial, helvetica, sans-serif">First we create a layer for a t_ebox (GUI object) :</font></div><div><font face="arial, helvetica, sans-serif"><a class="" href="http://cicm.github.io/CicmWrapper/a00006.html#ga7c384db44fdd8ca5cc9d70db7bb15926" style="color:rgb(70,101,162);line-height:22px">ebox_start_layer</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> (</span><a class="" href="http://cicm.github.io/CicmWrapper/a00006.html#a00039" style="color:rgb(70,101,162);line-height:22px">t_ebox</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> *x, </span><a class="" href="http://cicm.github.io/CicmWrapper/a00003.html#a00063" style="color:rgb(70,101,162);line-height:22px">t_symbol</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> *name, float width, float height)</span><br></font></div><div><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><font face="arial, helvetica, sans-serif">To create a path, you can use several functions :</font></div><div><font face="arial, helvetica, sans-serif"><a class="" href="http://cicm.github.io/CicmWrapper/a00008.html#ga256b717f8eeea9cc755374b8a60cd293" style="color:rgb(70,101,162);line-height:22px">egraphics_move_to</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> (</span><a class="" href="http://cicm.github.io/CicmWrapper/a00008.html#a00047" style="color:rgb(70,101,162);line-height:22px">t_elayer</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> *g, float x, float y), </span><a class="" href="http://cicm.github.io/CicmWrapper/a00008.html#gae7850b71992b31e3a6d51225898837ae" style="color:rgb(70,101,162);line-height:22px">egraphics_line_to</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> (</span><a class="" href="http://cicm.github.io/CicmWrapper/a00008.html#a00047" style="color:rgb(70,101,162);line-height:22px">t_elayer</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> *g, float x, float y), </span><a class="" href="http://cicm.github.io/CicmWrapper/a00008.html#ga61413d3f1e047843c061123564341809" style="color:rgb(70,101,162);line-height:22px">egraphics_curve_to</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> (</span><a class="" href="http://cicm.github.io/CicmWrapper/a00008.html#a00047" style="color:rgb(70,101,162);line-height:22px">t_elayer</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> *g, float ctrl1x, float ctrl1y, float ctrl2x, float ctrl2y, float endx, float endy), ect... </span></font></div><div><font color="#000000" face="arial, helvetica, sans-serif"><span style="line-height:22px;background-color:rgb(249,250,252)">The functions append points to the t_elayer. </span></font></div><div><font color="#000000" face="arial, helvetica, sans-serif"><span style="line-height:22px;background-color:rgb(249,250,252)"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)">Before drawing all the paths, we apply the matrix transformations and mark the layer ready to be drawn :</span><font color="#000000"><span style="line-height:22px;background-color:rgb(249,250,252)"><br></span></font></font></div><div><font face="arial, helvetica, sans-serif"><a class="" href="http://cicm.github.io/CicmWrapper/a00006.html#gafbd3037b1afe3939912b1b5cff96a5bd" style="color:rgb(70,101,162);line-height:22px">ebox_end_layer</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> (</span><a class="" href="http://cicm.github.io/CicmWrapper/a00006.html#a00039" style="color:rgb(70,101,162);line-height:22px">t_ebox</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> *x, </span><a class="" href="http://cicm.github.io/CicmWrapper/a00003.html#a00063" style="color:rgb(70,101,162);line-height:22px">t_symbol</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> *name)</span><font color="#000000"><span style="line-height:22px;background-color:rgb(249,250,252)"><br></span></font></font></div><div><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"><font face="arial, helvetica, sans-serif">Then we paint the layer :</font></span></div><div><font face="arial, helvetica, sans-serif"><a class="" href="http://cicm.github.io/CicmWrapper/a00006.html#ga4c40a6ef105573223e9d9cbb515c9db1" style="color:rgb(70,101,162);line-height:22px">ebox_paint_layer</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> (</span><a class="" href="http://cicm.github.io/CicmWrapper/a00006.html#a00039" style="color:rgb(70,101,162);line-height:22px">t_ebox</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> *x, </span><a class="" href="http://cicm.github.io/CicmWrapper/a00003.html#a00063" style="color:rgb(70,101,162);line-height:22px">t_symbol</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> *name, float x_p, float y_p)</span><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"><br></span></font></div><div><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"><font face="arial, helvetica, sans-serif">if something has changed (an attribute or whatever you want) and we need to repaint a layer, we invalidate the layer with :</font></span></div><div><font face="arial, helvetica, sans-serif"><a class="" href="http://cicm.github.io/CicmWrapper/a00006.html#ga4e3b81f831ab7cf2730daae51405c715" style="color:rgb(70,101,162);line-height:22px">ebox_invalidate_layer</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> (</span><a class="" href="http://cicm.github.io/CicmWrapper/a00006.html#a00039" style="color:rgb(70,101,162);line-height:22px">t_ebox</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> *x, </span><a class="" href="http://cicm.github.io/CicmWrapper/a00003.html#a00063" style="color:rgb(70,101,162);line-height:22px">t_symbol</a><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"> *name)</span><span style="color:rgb(0,0,0);line-height:22px;background-color:rgb(249,250,252)"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Graphical part of the wrapper : </font></div><div><font face="arial, helvetica, sans-serif"><a href="http://cicm.github.io/CicmWrapper/a00008.html">http://cicm.github.io/CicmWrapper/a00008.html</a></font></div><div><font face="arial, helvetica, sans-serif">Gui box part f the wrapper :</font></div><div><font face="arial, helvetica, sans-serif"><a href="http://cicm.github.io/CicmWrapper/a00006.html">http://cicm.github.io/CicmWrapper/a00006.html</a><br></font></div><div><br></div><div><br></div></div>