Support for the debug "surface to screen" coordinate translation interface.
More...
#include <coordinate_translator.h>
Support for the debug "surface to screen" coordinate translation interface.
- Note
- For shells which do surface transformations the default implementation will return incorrect results.
virtual mir::scene::CoordinateTranslator::~CoordinateTranslator |
( |
| ) |
|
|
virtualdefault |
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.
virtual bool mir::scene::CoordinateTranslator::translation_supported |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file:
Copyright © 2012-2016 Canonical Ltd.
Generated on Tue Oct 31 05:57:28 UTC 2017