Filled in all c++ headers from QB code.

Copied methods not yet implemented from QB to cpp files.
This commit is contained in:
2023-03-30 00:51:00 -07:00
parent 64eac55804
commit c5c8bddb48
9 changed files with 2731 additions and 4 deletions

23
sbf-cpp/Colors.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include "Colors.h"
namespace SBF {
// TODO: Update these if they're wrong. They should be the initial color pair.
static uint8_t g_foregroundColor = kColorDarkWhite;
static uint8_t g_backgroundColor = kColorDarkBlack;
static uint16_t g_color;
void SetForegroundColor(uint8_t foregroundColor) {
g_foregroundColor = foregroundColor;
// TODO: update g_color with g_foregroundColor and g_backgroundColor.
}
uint8_t GetForegroundColor() {
return g_foregroundColor;
}
// ncurses color pair
uint16_t GetColor() {
return g_color;
}
} // End namespace SBF