43 auto iAttr =
fAttrs.find(std::string(attr));
50 std::vector<std::string_view> )
long long ParseInt(std::string_view attr, long long deflt, std::vector< std::string_view > opts={})
Parse an integer attribute, or if opts is given, return the index of the string from the options file...
basic_string_view< char > string_view
Attrs_t & fAttrs
Attributes to operate on.
bool AddFromStyleFile(std::string_view filename)
Adds attributes specified in filename to those already existing in fAttrs.
virtual std::string GetHomeDirectory(const char *userName=0) const
Return the user's home directory.
TColor ParseColor(std::string_view attr, const TColor &deflt)
Parse a TColor from attr's value.
std::unordered_map< std::string, std::string > Attrs_t
static constexpr PredefinedRGB kBlack
R__EXTERN TSystem * gSystem
static const TString & GetEtcDir()
Get the sysconfig directory in the installation. Static utility function.
static Attrs_t ReadDefaults()
Reads the attribute config values from .rootstylerc.
double ParseFP(std::string_view attr, double deflt)
Parse a floating point attribute.
A color: Red|Green|Blue|Alpha, or a position in a TPalette.