RAIDA  1.9.0
ITextStyleROOT.h
1 // -*- C++ -*-
2 #ifndef AIDA_ITEXTSTYLEROOT_H
3 #define AIDA_ITEXTSTYLEROOT_H 1
4 
5 #include <string>
6 #include <vector>
7 
8 #include <RAIDA/IBrushStyleROOT.h>
9 #include <AIDA/ITextStyle.h>
10 
11 namespace AIDA {
12 
20 class ITextStyleROOT : public IBrushStyleROOT, public ITextStyle {
21 
22 public:
24  virtual ~ITextStyleROOT() { /* nop */; }
25 
26  ITextStyleROOT() { /* nop */; }
27 
31  virtual std::vector<std::string> availableFonts() const ;
32 
36  virtual double fontSize() const ;
37 
42  virtual bool setFontSize(double size) ;
43 
47  virtual std::string font() const ;
48 
53  virtual bool setFont(const std::string & font) ;
54 
55  virtual bool isBold() const ;
56 
57  virtual bool isItalic() const ;
58 
59  virtual bool isUnderlined() const ;
60 
61  virtual bool setBold(bool bold = true) ;
62 
63  virtual bool setItalic(bool italic = true) ;
64 
65  virtual bool setUnderlined(bool underlined = true) ;
66 }; // class
67 } // namespace AIDA
68 #endif /* ifndef AIDA_ITEXTSTYLEROOT_H */
virtual std::vector< std::string > availableFonts() const
Get list of fonts available in this implementation.
Definition: ITextStyleROOT.cc:8
virtual bool setFont(const std::string &font)
Set current font, e.g.
Definition: ITextStyleROOT.cc:35
virtual bool setFontSize(double size)
Set current font size.
Definition: ITextStyleROOT.cc:23
virtual std::string font() const
Get name of current font.
Definition: ITextStyleROOT.cc:29
Style for all text (e.g.
Definition: ITextStyleROOT.h:20
virtual ~ITextStyleROOT()
Destructor.
Definition: ITextStyleROOT.h:24
Superclass for anything which can be drawn in different colours and with (possibly) transparent/opaqu...
Definition: IBrushStyleROOT.h:21
Style for all text (e.g.
Definition: ITextStyle.h:28
virtual double fontSize() const
Get current font size.
Definition: ITextStyleROOT.cc:17