Custom font configuration for the RCanvas.
Public Types | |
| using | Version_t = uint64_t |
Public Member Functions | |
| RFont () | |
| RFont (const std::string &family, const std::string &fname="", const std::string &fmt="woff2") | |
| void | ClearStyle () |
| const std::string & | GetCssClass () const |
| const char * | GetCssType () const |
| bool | GetDefault () const |
| const std::string & | GetFamily () const |
| const std::string & | GetId () const |
| const std::string & | GetSrc () const |
| const std::string & | GetStyle () const |
| const std::string & | GetWeight () const |
| void | SetCssClass (const std::string &cl) |
| void | SetDefault (bool dflt=true) |
| void | SetFamily (const std::string &family) |
| void | SetFile (const std::string &fname, const std::string &fmt="woff2") |
| Set font source as file content. | |
| void | SetId (const std::string &id) |
| void | SetSrc (const std::string &src) |
| Set src attribute of font-face directly Only for expert use. | |
| void | SetStyle (const std::string &style) |
| void | SetUrl (const std::string &url, const std::string &fmt="woff2") |
| Set font source as URL. | |
| void | SetWeight (const std::string &weight) |
| virtual void | UseStyle (const std::shared_ptr< RStyle > &style) |
Protected Member Functions | |
| virtual void | CollectShared (Internal::RIOSharedVector_t &) |
| virtual std::unique_ptr< RDisplayItem > | Display (const RDisplayContext &) |
| Creates display item for drawable By default item contains drawable data itself. | |
| virtual void | Execute (const std::string &) |
| RAttrMap & | GetAttrMap () |
| const RAttrMap & | GetAttrMap () const |
| Version_t | GetVersion () const |
| virtual bool | IsFrameRequired () const |
| bool | MatchSelector (const std::string &selector) const |
| Preliminary method which checks if drawable matches with given selector Following selector are allowed: "type" or "#id" or ".class_name" Here type is drawable kind like 'rect' or 'pad' id is drawable identifier, specified with RDrawable::SetId() method class_name is drawable class name, specified with RDrawable::SetCssClass() method. | |
| virtual void | OnDisplayItemDestroyed (RDisplayItem *) const |
| virtual void | PopulateMenu (RMenuItems &) |
| void | SetCssType (const char *csstype) |
| virtual void | SetDrawableVersion (Version_t vers) |
Private Attributes | |
| RAttrMap | fAttr |
| attributes values | |
| std::string | fCssClass |
| user-defined CSS class, used for RStyle | |
| const char * | fCssType {nullptr} |
| ! drawable type, not stored in the root file, must be initialized in constructor | |
| bool | fDefault {false} |
| is font set as default for the pad | |
| std::string | fFamily |
| font family, assigned as "font-family" attribute | |
| std::string | fId |
| user-defined CSS id, used for RStyle | |
| std::string | fSrc |
| font source, assigned as "src" attribute | |
| std::string | fStyle |
| font style, assigned as "font-style" attribute, normal by default | |
| Version_t | fVersion {1} |
| ! drawable version, changed from the canvas | |
| std::string | fWeight |
| font weight, assigned as "font-weight" attribute, normal by default | |
#include <ROOT/RFont.hxx>
|
inherited |
Definition at line 123 of file RDrawable.hxx.
|
inlineinherited |
Definition at line 213 of file RDrawable.hxx.
|
inlineprotectedvirtualinherited |
Reimplemented in ROOT::Experimental::RLegend, ROOT::Experimental::RPadBase, and ROOT::Experimental::TObjectDrawable.
Definition at line 181 of file RDrawable.hxx.
|
protectedvirtualinherited |
Creates display item for drawable By default item contains drawable data itself.
Reimplemented in ROOT::Experimental::RLegend, ROOT::Experimental::RPad, and ROOT::Experimental::TObjectDrawable.
Definition at line 68 of file RDrawable.cxx.
Reimplemented in ROOT::Experimental::TObjectDrawable.
Definition at line 40 of file RDrawable.cxx.
|
inlineprotectedinherited |
Definition at line 185 of file RDrawable.hxx.
Definition at line 186 of file RDrawable.hxx.
|
inlineinherited |
Definition at line 218 of file RDrawable.hxx.
|
inlineinherited |
Definition at line 215 of file RDrawable.hxx.
|
inline |
|
inline |
|
inlineinherited |
Definition at line 221 of file RDrawable.hxx.
|
inline |
|
inline |
|
inlineprotectedinherited |
Definition at line 197 of file RDrawable.hxx.
|
inline |
|
inlineprotectedvirtualinherited |
Reimplemented in ROOT::Experimental::RFrameTitle, and ROOT::Experimental::RPaletteDrawable.
Definition at line 183 of file RDrawable.hxx.
Preliminary method which checks if drawable matches with given selector Following selector are allowed: "type" or "#id" or ".class_name" Here type is drawable kind like 'rect' or 'pad' id is drawable identifier, specified with RDrawable::SetId() method class_name is drawable class name, specified with RDrawable::SetCssClass() method.
Definition at line 59 of file RDrawable.cxx.
|
inlineprotectedvirtualinherited |
Reimplemented in ROOT::Experimental::RLegend.
Definition at line 194 of file RDrawable.hxx.
|
protectedvirtualinherited |
Reimplemented in ROOT::Experimental::RFrame, and ROOT::Experimental::TObjectDrawable.
Definition at line 30 of file RDrawable.cxx.
Definition at line 217 of file RDrawable.hxx.
Definition at line 192 of file RDrawable.hxx.
|
inlineprotectedvirtualinherited |
Reimplemented in ROOT::Experimental::RPadBase.
Definition at line 196 of file RDrawable.hxx.
Definition at line 220 of file RDrawable.hxx.
|
inlinevirtualinherited |
Reimplemented in ROOT::Experimental::RPadBase.
Definition at line 212 of file RDrawable.hxx.
|
privateinherited |
attributes values
Definition at line 172 of file RDrawable.hxx.
|
privateinherited |
user-defined CSS class, used for RStyle
Definition at line 175 of file RDrawable.hxx.
|
privateinherited |
! drawable type, not stored in the root file, must be initialized in constructor
Definition at line 174 of file RDrawable.hxx.
|
private |
|
private |
|
privateinherited |
user-defined CSS id, used for RStyle
Definition at line 176 of file RDrawable.hxx.
|
private |
|
private |
|
privateinherited |
! drawable version, changed from the canvas
Definition at line 177 of file RDrawable.hxx.
|
private |