26 #include <unordered_map> 31 fCanvas(&pad.GetCanvas()), fName(configPrefix) {}
35 static std::unordered_map<std::string, TCanvas> sCanv;
37 auto iCanv = sCanv.find(style.
GetName());
38 if (iCanv != sCanv.end())
48 if (
const TCanvas* canv = dynamic_cast<const TCanvas*>(&canvPad)) {
static TStyle * Get(std::string_view name)
Get the TStyle named name from the global style collection, or nullptr if that doesn't exist...
basic_string_view< char > string_view
TDrawingOptsBaseNoDefault()=default
A window's topmost TPad.
TCanvas * fCanvas
The TCanvas holding the TDrawable (or its TPad).
A set of defaults for graphics attributes, e.g.
OptsAttrRefArr< TColor > fColorIdx
Indexes of the TCanvas's color table entries used by this options object.
~TDrawingOptsBaseNoDefault()
void RegisterCopy(TCanvas &canv)
Once copied, elements of a OptsAttrRefArr need to increase their use count.
Base class for graphic containers for TDrawable-s.
OptsAttrRefArr< long long > fIntIdx
Indexes of the TCanvas's integer table entries used by this options object.
TCanvas & GetCanvas()
The TCanvas holding the TDrawable (or its TPad) (non-const version).
static bool IsDefaultCanvas(const TPadBase &canv)
Whether the canvas is one of the canvases used to store attribute defaults.
void Release(TCanvas &canv)
Clear all attribute references, removing their uses in TCanvas.
const std::string & GetName() const
static TPadBase & GetDefaultCanvas(const TStyle &style)
Default attributes need to register their values in a pad - they will take this pad for default attri...
OptsAttrRefArr< double > fFPIdx
Indexes of the TCanvas's floating point table entries used by this options object.