]>
Commit | Line | Data |
---|---|---|
500659a8 DE |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/cocoa/fontfactory.h | |
3 | // Purpose: wxFontFactory class | |
4 | // Author: David Elliott | |
5 | // Modified by: | |
6 | // Created: 2007-10-13 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: 2007 David Elliott | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_COCOA_FONTFACTORY_H_ | |
13 | #define _WX_COCOA_FONTFACTORY_H_ | |
14 | ||
15 | /*! @discussion | |
16 | This class exists so that wxFont need not know about wxSettings | |
17 | The implementation, however, is in the font.mm file because the | |
18 | implementation needs to have knowledge of wxFontRefData. | |
19 | */ | |
20 | class wxCocoaFontFactory | |
21 | { | |
22 | public: | |
23 | /*! @abstract Create an instance with the specified NSFont and underline flag. | |
24 | */ | |
25 | static wxFont InstanceForNSFont(WX_NSFont cocoaFont, bool underlined = false); | |
26 | }; | |
27 | ||
28 | #endif //_WX_COCOA_FONTFACTORY_H_ |