26 if (
v) res = std::to_string(
v);
31 if ((
v > 0) && !res.empty())
34 if ((
v != 0) || res.empty()) {
35 res += std::to_string(
v);
40 if (!
Empty() && res.empty())
69 std::string val =
value;
72 while (!val.empty()) {
74 while ((pos < val.length()) && ((val[pos] ==
' ') || (val[pos] ==
'\t')))
77 if (pos >= val.length())
80 if ((val[pos] ==
'-') || (val[pos] ==
'+')) {
86 operand = (val[pos] ==
'-') ? -1 : 1;
99 v = std::stod(val, &pos);
107 if (!operand) operand = 1;
109 if ((val.length() > 0) && (val[0] ==
'%')) {
111 SetNormal(GetNormal() + operand*0.01*
v);
112 }
else if ((val.length() > 1) && (val[0] ==
'p') && (val[1] ==
'x')) {
116 SetNormal(GetNormal() + operand*
v);
#define R__LOG_ERROR(...)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
static void GetPixel(int y, int width, Byte_t *scline)
Get pixels in line y and put in array scline.
std::string AsString() const
Converts RPadLength to string like "0.1 + 25px" User coordinates not (yet) supported.
bool ParseString(const std::string &val)
Parse string and fill RPadLength attributes String can be like "0.1 + 25px" User coordinates not (yet...
RLogChannel & GPadLog()
Log channel for GPad diagnostics.