summaryrefslogtreecommitdiff
path: root/Camera.h
diff options
context:
space:
mode:
Diffstat (limited to 'Camera.h')
-rw-r--r--Camera.h35
1 files changed, 24 insertions, 11 deletions
diff --git a/Camera.h b/Camera.h
index 6ff3045..3b3acad 100644
--- a/Camera.h
+++ b/Camera.h
@@ -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);