+CGRect wxToNSRect(UIView* parent, const wxRect& r )
+{
+ CGRect frame = parent ? [parent bounds] : [[UIScreen mainScreen] bounds];
+ int y = r.y;
+ int x = r.x ;
+ return CGRectMake(x, y, r.width , r.height);
+}
+
+wxRect wxFromNSRect( UIView* parent, const CGRect& rect )
+{
+ CGRect frame = parent ? [parent bounds] : [[UIScreen mainScreen] bounds];
+ int y = rect.origin.y;
+ int x = rect.origin.x;
+ return wxRect( x, y, rect.size.width, rect.size.height );
+}
+
+CGPoint wxToNSPoint( UIView* parent, const wxPoint& p )
+{
+ CGRect frame = parent ? [parent bounds] : [[UIScreen mainScreen] bounds];
+ int x = p.x ;
+ int y = p.y;
+ return CGPointMake(x, y);
+}
+
+wxPoint wxFromNSPoint( UIView* parent, const CGPoint& p )
+{
+ CGRect frame = parent ? [parent bounds] : [[UIScreen mainScreen] bounds];
+ int x = p.x;
+ int y = p.y;
+ return wxPoint( x, y);
+}
+
+