25 #include <unordered_map> 28 namespace Experimental {
37 template <
class PRIMITIVE>
using Attrs_t = std::unordered_map<std::string, PRIMITIVE>;
76 #endif // ROOT7_TStyle std::unordered_map< std::string, PRIMITIVE > Attrs_t
A map of attribute name to attribute value for an attribute type PRIMITIVE.
static TStyle * Get(std::string_view name)
Get the TStyle named name from the global style collection, or nullptr if that doesn't exist...
std::string fName
Mapping of user coordinates to normal coordinates.
basic_string_view< char > string_view
Namespace for new ROOT classes and functions.
A set of defaults for graphics attributes, e.g.
static TStyle & GetCurrent()
Get the current TStyle.
static void SetCurrent(const TStyle &style)
Set the current TStyle by copying style into the static current style object.
TStyle(std::string_view name)
Creates a named but empty style.
TStyle()=default
Default constructor, creating an unnamed, empty style.
const std::string & GetName() const
static void Register(const TStyle &style)
Register a copy of style in the global style collection, possibly replacing a global style with the s...
std::tuple< Attrs_t< TColor >, Attrs_t< long long >, Attrs_t< double > > AllAttrs_t
TStyle(std::string_view name, AllAttrs_t &&attrs)
Constructor taking user coordinate system, position and extent.