-
- public:
- wxFont(void);
- wxFont( int PointSize, int FontIdOrFamily, int Style, int Weight,
- bool underlined = FALSE, const char *Face= ( const char *) NULL );
- wxFont( int PointSize, const char *Face, int Family, int Style, int Weight,
- bool underlined = FALSE );
- wxFont( const wxFont& font );
- wxFont( const wxFont* font );
- ~wxFont(void);
- wxFont& operator = ( const wxFont& font );
- bool operator == ( const wxFont& font );
- bool operator != ( const wxFont& font );
- bool Ok();
-
- int GetPointSize(void) const;
- wxString GetFaceName(void) const;
- int GetFamily(void) const;
- wxString GetFamilyString(void) const;
- int GetFontId(void) const;
- wxString GetFaceString(void) const;
- int GetStyle(void) const;
- wxString GetStyleString(void) const;
- int GetWeight(void) const;
- wxString GetWeightString(void) const;
- bool GetUnderlined(void) const;
-
- wxFont( char *xFontName );
-
- // implementation
+
+public:
+ wxFont();
+ wxFont( int pointSize, int family, int style, int weight, bool underlined = FALSE,
+ const wxString& face = wxEmptyString );
+ wxFont( const wxFont& font );
+ ~wxFont();
+ wxFont& operator = ( const wxFont& font );
+ bool operator == ( const wxFont& font ) const;
+ bool operator != ( const wxFont& font ) const;
+ bool Ok() const;
+
+ int GetPointSize() const;
+ int GetFamily() const;
+ int GetStyle() const;
+ int GetWeight() const;
+ bool GetUnderlined() const;
+
+ void SetPointSize( int pointSize );
+ void SetFamily( int family );
+ void SetStyle( int style );
+ void SetWeight( int weight );
+ void SetFaceName( const wxString& faceName );
+ void SetUnderlined( bool underlined );