]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mgl/fontutil.h
create wxSpinCtrl with default pos+size first, so that the subsequent call to DoSetSi...
[wxWidgets.git] / include / wx / mgl / fontutil.h
index e1d622518e81159f78e7f604e61329bfe0a49f58..f83849b133e6b42a84c7c9de734087da1675de2d 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/nix/fontutil.h
+// Name:        wx/mgl/fontutil.h
 // Purpose:     font-related helper functions for MGL
 // Author:      Vaclav Slavik
 // Created:     2001/05/01
@@ -11,8 +11,6 @@
 #ifndef _WX_MGL_FONTUTIL_H_
 #define _WX_MGL_FONTUTIL_H_
 
-#ifdef __WXMGL__
-
 #include "wx/list.h"
 
 struct font_info_t;
@@ -59,10 +57,11 @@ private:
 class wxMGLFontLibrary
 {
 public:
-    wxMGLFontLibrary(const wxString& filename, int type);
+    wxMGLFontLibrary(const wxString& filename, int type, wxMGLFontFamily *parentFamily);
     ~wxMGLFontLibrary();
     
     wxMGLFontInstance *GetFontInstance(wxFont *font, float scale, bool aa);
+    wxMGLFontFamily *GetFamily() const { return m_family; }
     
     void IncRef();
     void DecRef();
@@ -75,6 +74,7 @@ private:
     wxString m_fileName;
     size_t m_refs;
     wxMGLFontInstanceList *m_instances;
+    wxMGLFontFamily *m_family;
 };
 
 // structure representing native MGL font family
@@ -121,6 +121,4 @@ class wxFontsManager
 
 extern wxFontsManager *wxTheFontsManager;
 
-#endif
-
 #endif // _WX_MGL_FONTUTIL_H_