1#ifndef __BINDCANVASSETTINGS_HPP
2#define __BINDCANVASSETTINGS_HPP
4#include "BindUtils.hpp"
7#define SCREEN_ORIENTATION_UNSET -2
9#define SCREEN_ORIENTATION_UNSPECIFIED -1
11#define SCREEN_ORIENTATION_LANDSCAPE 0
13#define SCREEN_ORIENTATION_PORTRAIT 1
15#define SCREEN_ORIENTATION_USER 2
17#define SCREEN_ORIENTATION_BEHIND 3
19#define SCREEN_ORIENTATION_SENSOR 4
21#define SCREEN_ORIENTATION_NOSENSOR 5
23#define SCREEN_ORIENTATION_SENSOR_LANDSCAPE 6
25#define SCREEN_ORIENTATION_SENSOR_PORTRAIT 7
27#define SCREEN_ORIENTATION_REVERSE_LANDSCAPE 8
29#define SCREEN_ORIENTATION_REVERSE_PORTRAIT 9
31#define SCREEN_ORIENTATION_FULL_SENSOR 10
33#define SCREEN_ORIENTATION_USER_LANDSCAPE 11
35#define SCREEN_ORIENTATION_USER_PORTRAIT 12
37#define SCREEN_ORIENTATION_FULL_USER 13
39#define SCREEN_ORIENTATION_LOCKED 14
98 uint16_t
getBytes(uint8_t *out, int8_t _screenOrientation, int32_t _backColor, int32_t _actionBarColor,
const char *cstr)
119 strLength = strlen(str);
120 if (strLength > MAX_STRING_LENGTH_TERMINAL)
122 strLength = MAX_STRING_LENGTH_TERMINAL;
124 copyAndOffset(out, &offset, &objID,
sizeof(objID));
129 copyAndOffset(out, &offset, str, strLength);
135 uint8_t objID = BIND_ID_SETTINGS;
Represents the configuration settings for a BindCanvas application screen.
Definition BindCanvasSettings.hpp:59
int32_t backColor
Background color in 32-bit format.
Definition BindCanvasSettings.hpp:70
BindCanvasSettings()
Constructs a BindCanvasSettings object with default label "BindApp.".
Definition BindCanvasSettings.hpp:64
int32_t actionBarColor
Action bar color in 32-bit format.
Definition BindCanvasSettings.hpp:71
int8_t screenOrientation
Screen orientation value.
Definition BindCanvasSettings.hpp:69
uint16_t getBytes(uint8_t *out, int8_t _screenOrientation, int32_t _backColor, int32_t _actionBarColor, const char *cstr)
Generates and returns the byte data representing the screen configuration.
Definition BindCanvasSettings.hpp:98
void setlabel(const char *cstr)
Sets the label for the BindCanvas application screen.
Definition BindCanvasSettings.hpp:80
bool resetScreen
Flag to reset the screen.
Definition BindCanvasSettings.hpp:72
uint16_t getBytes(uint8_t *out) override
Generates and returns the byte data representing the screen configuration.
Definition BindCanvasSettings.hpp:116
Definition BindView.hpp:22