Access to svg id from the Drawable class


#1

Following quick and dirty patch provide access to svg-element ‘id’ property from Drawable::getName method.
http://juce.aminche.com/DrawableName.patch
http://juce.aminche.com/DrawableName.patch.txt

Accessing to id property allows the code to perform named picking/hit on a drawable tree, which sounds very usefull !

Hope it will get included :slight_smile:


#2

Accessing to id property will also allows to perform some selective interactive rendering of a svg based drawable !


#3

Ok, seems like a sensible thing to add!


#4

Thanks!


#5