- wxFont *theFont = NULL, bool use16 = FALSE ) = 0;
- virtual long GetCharWidth(void) = 0;
- virtual long GetCharHeight(void) = 0;
+ wxFont *theFont = NULL, bool use16 = FALSE ) const ;
+ virtual void GetTextExtent( const wxString &string, int *width, int *height,
+ int *descent = NULL, int *externalLeading = NULL,
+ wxFont *theFont = NULL, bool use16 = FALSE ) const
+ {
+ long lwidth,lheight,ldescent,lexternal ;
+ GetTextExtent( string, &lwidth,&lheight,&ldescent,&lexternal,theFont,use16 ) ;
+ *width = lwidth ;
+ *height = lheight ;
+ if (descent) *descent = ldescent ;
+ if (externalLeading) *externalLeading = lexternal ;
+ }
+ virtual wxCoord GetCharWidth(void) const;
+ virtual wxCoord GetCharHeight(void) const;