Get the screen coordinates corresponding to a pair of surface coordinates.
- Precondition
- The surface is valid
- Parameters
-
[in] | surface | The surface |
[in] | x,y | Surface coordinates to map to screen coordinates |
[out] | screen_x,screen_y | The screen coordinates corresponding to x, y. |
- Returns
- True if screen_x and screen_y contain values
- Note
- There are many cases where such a mapping does not exist or would be expensive to calculate. Only Mir servers started with the –debug option will ever return values for this call, and even when –debug is enabled servers are free to return nothing.
This call will only be interesting for automated testing, where both the client and shell state is known and constrained.