Implement DrawTitleBarBitmap() for OS X using hard coded PNG images.

Use a simple implementation working under all OS X versions, including 10.4
which doesn't have standard system images for the close button.

Added the images themselves under art/osx and png2c.py helper script to
convert them to a form used in C++ code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-10-05 22:57:32 +00:00
parent 1d3dfc57e7
commit ec20a753b9
7 changed files with 303 additions and 2 deletions

View File

@@ -41,8 +41,8 @@ class WXDLLIMPEXP_FWD_CORE wxWindow;
#undef wxHAS_NATIVE_RENDERER
#endif
// only MSW currently provides DrawTitleBarBitmap() method
#if defined(__WXMSW__)
// only MSW and OS X currently provides DrawTitleBarBitmap() method
#if defined(__WXMSW__) || (defined(__WXMAC__) && wxUSE_LIBPNG && wxUSE_IMAGE)
#define wxHAS_DRAW_TITLE_BAR_BITMAP
#endif