Get absolute position of a Drawable?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-03-16 12:54 AM
Is there function to get absolute position of Drawable? getX() returns relative position within container.
So if I have 3 nested containers, I must do:
container1->getX() + container2->getX() + container3->getX() + drawable1->getX()
Is this the intended way, or am I missing something?
Labels:
- Labels:
-
TouchGFX
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-03-16 1:08 AM
I haven't tried it myself lately, so a bit unsure, but maybe Drawable::getAbsoluteRect() is what you are looking for.
