diff options
Diffstat (limited to 'Camera.h')
| -rw-r--r-- | Camera.h | 35 |
1 files changed, 24 insertions, 11 deletions
@@ -1,25 +1,36 @@ #ifndef CAMERA_H__ #define CAMERA_H__ -/* ************************************* +/* ******************************************************************* * Includes - * *************************************/ + * ******************************************************************/ #include "Cursor.h" #include <stdint.h> #include <stdbool.h> -/* ************************************* +/* ******************************************************************* * Defines - * *************************************/ + * ******************************************************************/ -/* ************************************* - * Structs and enums - * *************************************/ +/* ******************************************************************* + * Global types definition + * ******************************************************************/ -/* ************************************* +/* Forward declaration. */ +class Cursor; + +/* ******************************************************************* + * Global variables declaration + * ******************************************************************/ + +/* ******************************************************************* + * Global functions declaration + * ******************************************************************/ + +/* ******************************************************************* * Class definition - * *************************************/ + * ******************************************************************/ class Camera { @@ -27,8 +38,10 @@ class Camera Camera(void); void adjustLock(const bool bLock); bool isLocked(void) const; - uint8_t getX(const uint8_t x) const; - uint8_t getY(const uint8_t y) const; + int16_t getX(const uint16_t x) const; + int16_t getY(const uint16_t y) const; + uint16_t getRealX(const int16_t x) const; + uint16_t getRealY(const int16_t y) const; /* Event handlers. */ void onLeftBtnPressed(Cursor& cursor); |
