diff options
| author | nyamatongwe <devnull@localhost> | 2000-06-29 06:58:19 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2000-06-29 06:58:19 +0000 |
| commit | 5f05e5f116b8f9952c779f751309437082bbb067 (patch) | |
| tree | 9fe3440f6ffda61b078915fcd3d1feb0025a4cf2 | |
| parent | 9b446124e326980d61ea8339b5df8af28004156a (diff) | |
| download | scintilla-mirror-5f05e5f116b8f9952c779f751309437082bbb067.tar.gz | |
Changed Font class to allow subclassing in PlatWin.cxx.
| -rw-r--r-- | include/Platform.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/Platform.h b/include/Platform.h index 5a87c64fe..785bc8923 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -199,6 +199,7 @@ public: }; class Font { +protected: FontID id; #if PLAT_WX int ascent; @@ -208,10 +209,10 @@ class Font { Font &operator=(const Font &) { id=0; return *this; } public: Font(); - ~Font(); + virtual ~Font(); - void Create(const char *faceName, int characterSet, int size, bool bold, bool italic); - void Release(); + virtual void Create(const char *faceName, int characterSet, int size, bool bold, bool italic); + virtual void Release(); FontID GetID() { return id; } // Alias another font - caller guarantees not to Release |
