19namespace Experimental {
33 std::string
fText {
"<no-text>"};
36 std::string
fFont {
"LiberationSerif-Regular"};
128 static bool SetSdfFontDir(
const std::string &dir,
bool require_write_access =
true);
129 static bool AssertSdfFont(
const std::string &font_name,
const std::string &ttf_font);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
short Color_t
Color number (short)
char Text_t
General string (char)
float Float_t
Float 4 bytes (float)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t target
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char text
void SetExtraBorder(float size)
static std::string sSdfFontDir
void SetTextAlign(Int_t h, Int_t v)
void SetFontHinting(Float_t fontHinting)
Float_t GetFontHinting() const
void SetFontWeight(Float_t w)
void SetText(const std::string &text)
Color_t GetTextColor() const
void SetPosition(const REveVector &position)
REveText(const REveText &)=delete
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Fill core part of JSON representation.
const REveVector & RefPosition() const
const std::string & GetClickMir() const
Float_t GetFontSize() const
void ComputeBBox() override
Compute bounding-box of the data.
void SetTextColor(Color_t color)
std::string GetFont() const
std::string fFont
Default must be a face ROOT ships: only Liberation Mono and Serif are in $ROOTSYS/fonts,...
static bool SetDefaultSdfFontDir()
Set default SDF font directory based on write permissions in the ui5 directory, WebGui....
void SetClickAction(const std::string &mir, REveElement *target=nullptr)
Fill core part of JSON representation.
ElementId_t GetClickTargetId() const
REveText & operator=(const REveText &)=delete
EAlignH_e
Anchoring: SetPosition() gives where the text goes, these give which point of it lands there.
ElementId_t fClickTargetId
void SetResizable(Bool_t r)
void RemoveAunt(REveAunt *au) override
Clear the click action when the click target is destroyed, so the button does not keep an id that may...
static bool AssertSdfFont(const std::string &font_name, const std::string &ttf_font)
Check if font exists, otherwise try to create it.
REveVector GetPosition() const
Float_t GetFontWeight() const
Stroke weight, applied by moving the SDF threshold rather than loading a heavier face,...
std::string GetText() const
Color_t fTextColor
target held as an aunt, so its death is noticed
Bool_t GetResizable() const
Whether the client may resize this element by dragging its corner grip.
void SetFontSize(float size)
static bool SetSdfFontDir(const std::string &dir, bool require_write_access=true)
Set location where SDF fonts and their metrics data are stored or are to be created via the AssertSdf...
Float_t GetExtraBorder() const
void SetFont(const std::string &font)
void BuildRenderData() override
Crates 3D point array for rendering.