Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 25
Registered: ‎06-28-2012
My Device: Z10, Q10
My Carrier: Beeline

Coordinates mapping?

Hi all,

 

Is there any convenient way to map coordinates from one item's coordinate system to another, just like in Qt Quick (using mapToItem/mapFromItem calls)? Or at least map coordinates from item's coordinate system to global (window) coordinate system and back? My question isn't related to touch events - they have all necessary info already - but to coordinates returned by LayoutUpdateHandler, for example.

 

Thanks in advance for your answer.

 

 

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Coordinates mapping?

I think there's no such API yet, this has to be done manually.

Andrey Fidrya, @zmeyc on twitter
Contributor
Posts: 25
Registered: ‎06-28-2012
My Device: Z10, Q10
My Carrier: Beeline

Re: Coordinates mapping?

That's sad... OK, no problem to do it by hand in fact.