X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d02e4948365a384ec0d67368ac41206e0a87b0b..59f76658d3ab2bfd3e645617c7d2b7676ae63e18:/include/wx/gtk/private/gdkconv.h diff --git a/include/wx/gtk/private/gdkconv.h b/include/wx/gtk/private/gdkconv.h index 9b18884970..b63b0c74cd 100644 --- a/include/wx/gtk/private/gdkconv.h +++ b/include/wx/gtk/private/gdkconv.h @@ -3,7 +3,6 @@ // Purpose: Helper functions for converting between GDK and wx types // Author: Vadim Zeitlin // Created: 2009-11-10 -// RCS-ID: $Id: wxhead.h,v 1.11 2009-06-29 10:23:04 zeitlin Exp $ // Copyright: (c) 2009 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -19,6 +18,14 @@ inline wxRect wxRectFromGDKRect(const GdkRectangle *r) return wxRect(r->x, r->y, r->width, r->height); } +inline void wxRectToGDKRect(const wxRect& rect, GdkRectangle& r) +{ + r.x = rect.x; + r.y = rect.y; + r.width = rect.width; + r.height = rect.height; +} + } // namespace wxGTKImpl #endif // _GTK_PRIVATE_GDKCONV_H_