<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello Harry;<br>
    <br>
    <div class="moz-cite-prefix">On 20/10/14 09:07, Harry van Haaren
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAKudYbMU3fwu+hkWWD2jQruU4Ekfcc3gF-VBimG-u753+YQyVQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra"><br>
          <div class="gmail_quote">Most NTK widgets that have a "value"
            like a slider or a dial, derive from a base class that
            implements value() and value( float );</div>
          <div class="gmail_quote"><br>
          </div>
          <div class="gmail_quote">What this means for a widget, is that
            in order to change the value of a widget called "wid", we do
            this:</div>
          <div class="gmail_quote">wid->value( 0.0f ); // sets widget
            value to 0</div>
        </div>
      </div>
    </blockquote>
    Oh, I get that, believe me. The info I need is around that ; I wish
    your sentence had started earlier, like so "in port_event(), given <i>this</i>
    class declared like <i>this</i> and an objet <tt>wid</tt>
    instantiated like <i>this</i>, we do this (...)"<br>
    <br>
    From my <tt>port_event()</tt> I point to my UI object via the <tt>LV2UIHandle</tt>.
    this object is a NTK widget (or so I hope, read on). So if I get a:<br>
    <br>
    <tt>error: ‘class KisWidget’ has no member named ‘value’</tt> (it's
    pretty explicit)<br>
    <br>
    It means the class KisWidget has no member named "value" I guess we
    can agree on that ;)<br>
    <br>
    It must be that I did not declare my Widget class as a proper NTK
    widget. The declaration is at line 25 in <a
href="https://bitbucket.org/xaccrocheur/kis/src/8c3a85a9899f117d2fa273b6c7948402d780fb46/widget.h?at=master">this
      file</a>. The instantiation of the widgets (a FL_Dial and 5
    FL_Slider) is at line 96 in <a
href="https://bitbucket.org/xaccrocheur/kis/src/8c3a85a9899f117d2fa273b6c7948402d780fb46/widget.cpp?at=master">this
      file</a>.<br>
    <br>
    Now for the direct questions: <br>
    <ul>
      <li>Is it a proper NTK widget class declaration, that would expose
        a <tt>value()</tt> method?</li>
      <li>Are those proper NTK widget class instances?<br>
      </li>
    </ul>
    Thanks for your patience<br>
    <br>
    --Phil<br>
    <blockquote
cite="mid:CAKudYbMU3fwu+hkWWD2jQruU4Ekfcc3gF-VBimG-u753+YQyVQ@mail.gmail.com"
      type="cite">
      <pre wrap="">_______________________________________________
Linux-audio-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linux-audio-dev@lists.linuxaudio.org">Linux-audio-dev@lists.linuxaudio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxaudio.org/listinfo/linux-audio-dev">http://lists.linuxaudio.org/listinfo/linux-audio-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Philippe "xaccrocheur" Coatmeur
<a class="moz-txt-link-freetext" href="http://bitbucket.org/xaccrocheur">http://bitbucket.org/xaccrocheur</a> / <a class="moz-txt-link-freetext" href="https://github.com/xaccrocheur">https://github.com/xaccrocheur</a>
<a class="moz-txt-link-freetext" href="http://opensimo.org/play/">http://opensimo.org/play/</a></pre>
  </body>
</html>