<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello Clément,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Thanks for your answer. During my first
      disp(graphics) tests, i likely focussed on <i>.in_style</i> and
      its <i>rotation=</i> flag, instead of on <i>.style</i> that is
      only the one showing <i>flip=, mirror=</i> and <i>rotation=</i>
      flags. So i missed the info.<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Other tests done for CSCOPE show that
      in <i>.style</i>, <i>rotation=</i> is in [0,90], and it's a
      combination with <i>flip=</i> and <i>mirror=</i> that builds any
      actual rotation in [0, 270].<br>
    </div>
    <div class="moz-cite-prefix">And that the <i>flip=</i> and <i>mirror=</i>
      roles are inverted when <i>rotation=90 </i>(so: flip and mirror
      are in the icon's referential, not in the user's one. This is also
      what we see when flipping a 90°-rotated block).<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Anyway, this will allow to decide where
      is the relevant free place(s) to set a label around the icon, wrt
      existing ports. Since combinations of flip, mirror and rotation
      flags together with ports positions are not trivial, writing a
      short shared internal function (likely in scicos/macros/utils)
      returning "free sides" could be useful. I am going to do it when
      required.<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Best regards<br>
    </div>
    <p> Samuel</p>
    <div class="moz-cite-prefix">Le 24/06/2019 à 11:48, Clément David a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:DBBPR09MB3174B8BE923C25164015206BB0E00@DBBPR09MB3174.eurprd09.prod.outlook.com">
      <pre class="moz-quote-pre" wrap="">Hello Samuel,

The ports labels could be set on the on `blk.graphics.in_label` and `blk.graphics.out_label` depending on block's parameters by the interface function as it is done by the BIGSOM_f (or others). About the position, they are computed by Xcos as dataflow (on the left and right) or as eventflow (on the top and bottom) and it is not possible to fix them within the interface function.

You could also get the rotation, flip and mirror information from the blk.graphics.style value.

Thanks,

--
Clément DAVID
</pre>
    </blockquote>
    <br>
  </body>
</html>