[PD-dev] getting the classname in an class

Mathieu Bouchard matju at artengine.ca
Wed Oct 31 06:09:16 CET 2007


On Mon, 29 Oct 2007, IOhannes m zmoelnig wrote:

> hmm, i think this is just a problem with the code i mentioned: i pointed 
> hc to the [iemguts/saveargs] object, to look how to get the classname of 
> _a_ class. the sole purpose of this object ([saveargs]) is to get (and 
> set) the name (and arguments) of the abstraction it is living in.

So, is your abstraction compatible with GOP ?

t_canvas *glist_getcanvas(t_glist *x)
{
     while (x->gl_owner && !x->gl_havewindow && x->gl_isgraph)
         x = x->gl_owner;
     return((t_canvas *)x);
}

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada


More information about the Pd-dev mailing list