]>
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
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_