]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/private/gdkconv.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/private/gdkconv.h
3 // Purpose: Helper functions for converting between GDK and wx types
4 // Author: Vadim Zeitlin
6 // RCS-ID: $Id: wxhead.h,v 1.11 2009-06-29 10:23:04 zeitlin Exp $
7 // Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _GTK_PRIVATE_GDKCONV_H_
12 #define _GTK_PRIVATE_GDKCONV_H_
17 inline wxRect
wxRectFromGDKRect(const GdkRectangle
*r
)
19 return wxRect(r
->x
, r
->y
, r
->width
, r
->height
);
22 inline void wxRectToGDKRect(const wxRect
& rect
, GdkRectangle
& r
)
27 r
.height
= rect
.height
;
30 } // namespace wxGTKImpl
32 #endif // _GTK_PRIVATE_GDKCONV_H_