QtFont.h

Go to the documentation of this file.
00001 /* -*- mode: c++ -*- */
00002 
00015 #ifndef _QtFont_H_
00016 #define _QtFont_H_
00017 
00018 #include <qfont.h>
00019 
00020 #include "graphics/FontBase.h"
00021 
00022 namespace hippodraw {
00023 
00028 class QtFont : public FontBase
00029 {
00030 private:
00031 
00033   QFont m_font;
00034 
00036   bool m_flag;
00037   
00038 public:
00039 
00041   QtFont();
00042   
00044   QtFont( const std::string & family, int pointsize = 12,
00045           int weight = QFont::Normal, bool italic = false );
00046 
00047   
00049   QtFont( const QFont& qfont );
00050 
00052   virtual ~QtFont();
00053 
00055   virtual std::string family() const;
00056   
00058   virtual void setFamily( const std::string & family );
00059   
00061   virtual int pointSize () const;
00062   
00064   virtual void setPointSize( int pointsize );
00065   
00067   virtual int weight () const;
00068   
00070   virtual void setWeight( int weight );
00071   
00072   virtual bool italic () const;
00073   
00075   virtual void setItalic( bool enable );
00076 
00078   virtual const QFont & font() const;
00079 
00083   void unsetFont();
00084 
00086   void setFont( const QFont & qfont );
00087 
00089   bool isSet();
00090 
00091 };
00092 
00093 } // namespace hippodraw
00094 
00095 #endif //_QtFont_H_
00096 
00097 
00098  

Generated for HippoDraw Class Library by doxygen