22 using json::utility::jsonObject;
27 settings.
x =
static_cast<int>(description.getInt(
"desiredX"));
28 settings.
y =
static_cast<int>(description.getInt(
"desiredY"));
29 settings.
width =
static_cast<uint16_t
>(description.getUnsignedInt(
"desiredWidth"));
30 settings.
height =
static_cast<uint16_t
>(description.getUnsignedInt(
"desiredHeight"));
33 const vector<int64_t>& temBackgroundColor = json::utility::JSONArrayWrapper(description.getArray(
"backgroundColor")).getAsInt64_tArray();
34 const vector<int64_t>& temTextColor = json::utility::JSONArrayWrapper(description.getArray(
"textColor")).getAsInt64_tArray();
38 const vector<string>& temLocalizationKeys = json::utility::JSONArrayWrapper(description.getArray(
"localizationKeys")).getAsStringArray();
42 catch (
const json::exceptions::CantFindValueException&)
47 for (
size_t i = 0; i < temBackgroundColor.size(); i++)
52 for (
size_t i = 0; i < temTextColor.size(); i++)
54 textColor[i] =
static_cast<uint8_t
>(temTextColor[i]);