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 
   85    [[deprecated(
"Use setLabel instead")]]
 
   86    void setlabel(
const char *cstr)
 
  104    uint16_t 
getBytes(uint8_t *out, int8_t _screenOrientation, int32_t _backColor, int32_t _actionBarColor, 
const char *cstr)
 
 
  125        strLength = strlen(str);
 
  126        if (strLength > MAX_STRING_LENGTH_TERMINAL)
 
  128            strLength = MAX_STRING_LENGTH_TERMINAL;
 
  130        copyAndOffset(out, &offset, &objID, 
sizeof(objID));
 
  135        copyAndOffset(out, &offset, str, strLength);
 
 
  141    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
 
void setLabel(const char *cstr)
Sets the label for the BindCanvas application screen.
Definition BindCanvasSettings.hpp:80
 
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:104
 
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:122
 
Definition BindView.hpp:26