X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34c9978dac9a0120731737d5c6c5f629d1ace32b..8c9f8f91cd62335261ee29762747218f28d129de:/include/wx/cocoa/window.h diff --git a/include/wx/cocoa/window.h b/include/wx/cocoa/window.h index bedf65dcc9..06ce0bb977 100644 --- a/include/wx/cocoa/window.h +++ b/include/wx/cocoa/window.h @@ -18,6 +18,8 @@ #import #endif //def __OBJC__ +DECLARE_WXCOCOA_OBJC_CLASS(NSAffineTransform); + class wxWindowCocoaHider; class wxWindowCocoaScrollView; @@ -70,6 +72,14 @@ public: // Add/remove children void CocoaAddChild(wxWindowCocoa *child); void CocoaRemoveFromParent(void); +#ifdef __OBJC__ + // Returns an autoreleased NSAffineTransform which can be applied + // to a graphics context currently using the view's coordinate system + // (such as the one locked when drawRect is called or after a call + // to [NSView lockFocus]) such that further drawing is done using + // the wxWidgets coordinate system. + WX_NSAffineTransform CocoaGetWxToBoundsTransform(); +#endif //def __OBJC__ protected: // enable==false: disables the control // enable==true: enables the control IF it should be enabled