#include <default_coordinate_translator.h>
geom::Point mir::scene::DefaultCoordinateTranslator::surface_to_screen |
( |
std::shared_ptr< frontend::Surface > |
surface, |
|
|
int32_t |
x, |
|
|
int32_t |
y |
|
) |
| |
|
virtual |
Translate a surface coordinate into the screen coordinate space.
- Parameters
-
[in] | surface | A frontend::Surface. This will need to be dynamic_cast into the scene::Surface relevant for the shell. |
[in] | x,y | Coordinates to translate from the surface coordinate space |
- Returns
- The coordinates in the screen coordinate space.
- Exceptions
-
A | std::runtime_error if the translation cannot be performed for any reason. |
- Note
- It is acceptable for this call to unconditionally throw a std::runtime_error. It is not required for normal functioning of the server or clients; clients which use the debug extension will receive an appropriate failure notice.
Implements mir::scene::CoordinateTranslator.
The documentation for this class was generated from the following files:
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015