Add new methods to transform coordinates expressed in Cocoa's bounds rect to
and from those expressed in wxWidgets fashion. Use these new methods to do the translation for mouse events, child window position, and dirty rects. Also improve DoMoveWindow to only dirty the old and new rects of the control within its superview rather than the entire superview. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -111,6 +111,12 @@ protected:
|
||||
// NOTE: position is 10,10 to make it "obvious" that it's out of place
|
||||
return NSMakeRect(10.0,10.0,WidthDefault(size.x),HeightDefault(size.y));
|
||||
}
|
||||
// These functions translate NSPoint or NSRect between the coordinate
|
||||
// system of Cocoa's boudns rect and wx's coordinate system.
|
||||
NSPoint CocoaTransformBoundsToWx(NSPoint pointBounds);
|
||||
NSRect CocoaTransformBoundsToWx(NSRect rectBounds);
|
||||
NSPoint CocoaTransformWxToBounds(NSPoint pointWx);
|
||||
NSRect CocoaTransformWxToBounds(NSRect rectWx);
|
||||
#endif //def __OBJC__
|
||||
// ------------------------------------------------------------------------
|
||||
// Implementation
|
||||
|
Reference in New Issue
Block a user