How to get a plasmoid's parent panel orientation?

Hello! I’m writing a plasmoid, and I need to know if it’s placed on the desktop or on a panel, and the orientation of the panel if it’s in a panel. Is this possible? I have not found a single info about this on the web…

thanks in advance!