<div dir="ltr">libpds can do this:<div><br><div><div>void libpds_show_gui(pd_t *pd); </div><div>void libpds_hide_gui(pd_t *pd); </div><div><br></div><div><a href="https://github.com/kmatheussen/libpd">https://github.com/kmatheussen/libpd</a><br></div></div><div>Only linux though.<br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 9, 2016 at 7:05 PM, Jonathan Wilkes via Pd-dev <span dir="ltr"><<a href="mailto:pd-dev@lists.iem.at" target="_blank">pd-dev@lists.iem.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div>Hi Matti,</div><div dir="ltr">I've been porting Pd-l2ork to a different GUI toolkit, and I now have the core <br></div><div dir="ltr">Pd functionality up and running with an abstract API to communicate with the <br></div><div dir="ltr">GUI.  In other words, all the tcl commands inside sys_gui and sys_vgui have <br></div><div dir="ltr">been replaced with a parameterized function call that sends strings, numbers, <br></div><div dir="ltr">floats, and arrays to the GUI.</div><div dir="ltr"><br></div><div dir="ltr">Even so, Pd is still way too chatty with the GUI-- for example, creating a new <br></div><div dir="ltr">object doesn't just send a single message to the GUI.  It sends at least 13 <br></div><div dir="ltr">messages in Pd Vanilla, more if your object has multiple inlets and outlets.  <br></div><div dir="ltr">It's not impossible to wrap that, but it is certainly will slow down the process.</div><div dir="ltr"><br></div><div dir="ltr">This is especially true given that Pd has no HIG or spec regarding GUI <br></div><div dir="ltr">behavior.  You're going to hit some counter-intuitive features of GOP, garrays, <br></div><div dir="ltr">font sizing, and a lot else in the midst of wrapping.</div><span class="HOEnZb"><font color="#888888"><div dir="ltr"><br></div><div dir="ltr">-Jonathan<br></div></font></span><div><div class="h5"><div><br><br></div><div style="display:block"> <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 <<a href="mailto:mviljamaa@kapsi.fi" target="_blank">mviljamaa@kapsi.fi</a>> wrote:<br></font></div>  <br><br> <div>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 href="mailto:Pd-dev@lists.iem.at" target="_blank">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></div></div></div><br>_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
<br></blockquote></div><br></div>