TouchGFX how to get the type of my Drawable
Hi,
I have multiple Drawable on my screen and I want to change the color. I decide to iterate through my screen and depending of my drawable perform some modification. Right now I am using typeid() to extract the Drawable, it work for some Drawable but not for all (slider for example). Do you have any idea how to get the type? (On the past there was a function call getType(), but now it's deprecated)
Drawable* component;
component = this->getRootContainer().getFirstChild();
while (component)
{
//If box to this
//if textarea to this
//if slider to this
component = component->getNextSibling();
}
Thank you
