<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1455039237282_2726">Hi Matti,</div><div dir="ltr" id="yui_3_16_0_1_1455039237282_2789">I've been porting Pd-l2ork to a different GUI toolkit, and I now have the core <br></div><div id="yui_3_16_0_1_1455039237282_2863" dir="ltr">Pd functionality up and running with an abstract API to communicate with the <br></div><div id="yui_3_16_0_1_1455039237282_2904" dir="ltr">GUI.  In other words, all the tcl commands inside sys_gui and sys_vgui have <br></div><div id="yui_3_16_0_1_1455039237282_2983" dir="ltr">been replaced with a parameterized function call that sends strings, numbers, <br></div><div id="yui_3_16_0_1_1455039237282_3178" dir="ltr">floats, and arrays to the GUI.</div><div id="yui_3_16_0_1_1455039237282_3179" dir="ltr"><br></div><div id="yui_3_16_0_1_1455039237282_3181" dir="ltr">Even so, Pd is still way too chatty with the GUI-- for example, creating a new <br></div><div id="yui_3_16_0_1_1455039237282_3323" dir="ltr">object doesn't just send a single message to the GUI.  It sends at least 13 <br></div><div id="yui_3_16_0_1_1455039237282_3258" dir="ltr">messages in Pd Vanilla, more if your object has multiple inlets and outlets.  <br></div><div id="yui_3_16_0_1_1455039237282_4431" dir="ltr">It's not impossible to wrap that, but it is certainly will slow down the process.</div><div id="yui_3_16_0_1_1455039237282_5149" dir="ltr"><br></div><div id="yui_3_16_0_1_1455039237282_3696" dir="ltr">This is especially true given that Pd has no HIG or spec regarding GUI <br></div><div id="yui_3_16_0_1_1455039237282_4432" dir="ltr">behavior.  You're going to hit some counter-intuitive features of GOP, garrays, <br></div><div id="yui_3_16_0_1_1455039237282_3891" dir="ltr">font sizing, and a lot else in the midst of wrapping.</div><div id="yui_3_16_0_1_1455039237282_5189" dir="ltr"><br></div><div id="yui_3_16_0_1_1455039237282_5188" dir="ltr">-Jonathan<br></div><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> On Tuesday, February 9, 2016 12:18 PM, Matti Viljamaa <mviljamaa@kapsi.fi> wrote:<br></font></div>  <br><br> <div class="y_msg_container">Hi,<br><br>Is it possible to get Pd GUI through Pd API in order to be able to display it in a “wrapper program” for Pd?<br>We’re looking to develop a wrapper over Pd and we’d like to be able to display the Pd Editor as well.<br><br>-Matti<br>_______________________________________________<br>Pd-dev mailing list<br><a ymailto="mailto:Pd-dev@lists.iem.at" href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br><a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br><br><br></div>  </div> </div>  </div></div></body></html>