QtFont.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
15 #ifndef _QtFont_H_
16 #define _QtFont_H_
17 
18 #include <qfont.h>
19 
20 #include "graphics/FontBase.h"
21 
22 namespace hippodraw {
23 
28 class QtFont : public FontBase
29 {
30 private:
31 
34 
36  bool m_flag;
37 
38 public:
39 
41  QtFont();
42 
44  QtFont( const std::string & family, int pointsize = 12,
45  int weight = QFont::Normal, bool italic = false );
46 
47 
49  QtFont( const QFont& qfont );
50 
52  virtual ~QtFont();
53 
55  virtual std::string family() const;
56 
58  virtual void setFamily( const std::string & family );
59 
61  virtual int pointSize () const;
62 
64  virtual void setPointSize( int pointsize );
65 
67  virtual int weight () const;
68 
70  virtual void setWeight( int weight );
71 
72  virtual bool italic () const;
73 
75  virtual void setItalic( bool enable );
76 
78  virtual const QFont & font() const;
79 
83  void unsetFont();
84 
86  void setFont( const QFont & qfont );
87 
89  bool isSet();
90 
91 };
92 
93 } // namespace hippodraw
94 
95 #endif //_QtFont_H_
96 
97 
98 

Generated for HippoDraw Class Library by doxygen