<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 07/03/2015 04:32 AM, Pierre Guillot
      wrote:<br>
    </div>
    <blockquote
cite="mid:CALPKkhrw-0Lmv=gR3Atz8DKowa_3Cw38Wo85Zaj41EmeOmi3eA@mail.gmail.com"
      type="cite">
      <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>
    </blockquote>
    <br>
    I can't find the screenshot atm, but you had a message box with the
    selector "path" in it, followed by a series of numbers.<br>
    <br>
    What does that message do?<br>
    <br>
    -Jonathan<br>
    <br>
    <blockquote
cite="mid:CALPKkhrw-0Lmv=gR3Atz8DKowa_3Cw38Wo85Zaj41EmeOmi3eA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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 moz-do-not-send="true"
              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
              moz-do-not-send="true" 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 moz-do-not-send="true"
              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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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
              moz-do-not-send="true" 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
              moz-do-not-send="true"
              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
              moz-do-not-send="true"
              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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>