Gets the parent of this, cast to a Element.
If a this has no parent or its parent is not an element, return null .
| this |
a pad |
|
the parent of the pad. The caller has a reference on the parent, so unref when you're finished with it. MT safe. |