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