A set of defaults for graphics attributes, e.g.
for histogram fill color, line width, frame offsets etc. Uses CSS syntax.
Definition at line 32 of file RStyle.hxx.
Classes | |
struct | Block_t |
Public Member Functions | |
RAttrMap & | AddBlock (const std::string &selector) |
void | Clear () |
Parse string with CSS code inside. | |
const RAttrMap::Value_t * | Eval (const std::string &field, const RDrawable &drawable) const |
Evaluate attribute value for provided RDrawable. | |
const RAttrMap::Value_t * | Eval (const std::string &field, const std::string &selector) const |
Evaluate attribute value for provided selector - exact match is expected. | |
bool | ParseString (const std::string &css_code) |
Parse string with CSS code inside All data will be append to existing style records. | |
Static Public Member Functions | |
static std::shared_ptr< RStyle > | Parse (const std::string &css_code) |
Parse CSS code and returns std::shared_ptr<RStyle> when successful. | |
Private Attributes | |
std::list< Block_t > | fBlocks |
#include <ROOT/RStyle.hxx>
|
inline |
Definition at line 50 of file RStyle.hxx.
void ROOT::Experimental::RStyle::Clear | ( | ) |
Parse string with CSS code inside.
Definition at line 53 of file RStyle.cxx.
const ROOT::Experimental::RAttrMap::Value_t * ROOT::Experimental::RStyle::Eval | ( | const std::string & | field, |
const RDrawable & | drawable | ||
) | const |
Evaluate attribute value for provided RDrawable.
Definition at line 20 of file RStyle.cxx.
const ROOT::Experimental::RAttrMap::Value_t * ROOT::Experimental::RStyle::Eval | ( | const std::string & | field, |
const std::string & | selector | ||
) | const |
Evaluate attribute value for provided selector - exact match is expected.
Definition at line 36 of file RStyle.cxx.
|
static |
Parse CSS code and returns std::shared_ptr<RStyle> when successful.
Definition at line 260 of file RStyle.cxx.
bool ROOT::Experimental::RStyle::ParseString | ( | const std::string & | css_code | ) |
Parse string with CSS code inside All data will be append to existing style records.
Definition at line 62 of file RStyle.cxx.
|
private |
Definition at line 64 of file RStyle.hxx.