// Name: font.h
// Purpose:
// Author: Robert Roebling
-// Created: 01/02/97
-// Id:
+// Id: $Id$
// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// global variables
//-----------------------------------------------------------------------------
-// extern wxFontNameDirectory wxTheFontNameDirectory; // defined below
+//extern wxFontNameDirectory *wxTheFontNameDirectory; // defined below
//-----------------------------------------------------------------------------
// wxFont
public:
wxFont(void);
wxFont( int PointSize, int FontIdOrFamily, int Style, int Weight,
- bool underlined = FALSE, const char *Face=NULL );
+ 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& operator = ( const wxFont& font );
bool operator == ( const wxFont& font );
bool operator != ( const wxFont& font );
- bool Ok();
+ bool Ok() const;
int GetPointSize(void) const;
wxString GetFaceName(void) const;
bool GetUnderlined(void) const;
wxFont( char *xFontName );
+
+ // implementation
- private:
-
- friend wxDC;
- friend wxPaintDC;
- friend wxWindow;
-
- GdkFont* GetInternalFont(float scale = 1.0);
+ GdkFont* GetInternalFont(float scale = 1.0) const;
// no data :-)
};
int nextFontId;
};
-extern wxFontNameDirectory wxTheFontNameDirectory;
+extern wxFontNameDirectory *wxTheFontNameDirectory;
#endif // __GTKFONTH__