diff options
author | nyamatongwe <unknown> | 2000-06-29 06:58:19 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-06-29 06:58:19 +0000 |
commit | 0af33fc2c57022dba94a64c8fc76d7c0bcb20ca8 (patch) | |
tree | 9fe3440f6ffda61b078915fcd3d1feb0025a4cf2 /include/Platform.h | |
parent | 46299d2f6ad3b01670f8936f54a885a7e1b3562c (diff) | |
download | scintilla-mirror-0af33fc2c57022dba94a64c8fc76d7c0bcb20ca8.tar.gz |
Changed Font class to allow subclassing in PlatWin.cxx.
Diffstat (limited to 'include/Platform.h')
-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 |