X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d02e4948365a384ec0d67368ac41206e0a87b0b..4f7222ca3632e40ad8f77947dba6bced63733655:/include/wx/gtk/private/gdkconv.h diff --git a/include/wx/gtk/private/gdkconv.h b/include/wx/gtk/private/gdkconv.h index 9b18884970..e3450e0450 100644 --- a/include/wx/gtk/private/gdkconv.h +++ b/include/wx/gtk/private/gdkconv.h @@ -3,7 +3,7 @@ // 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 $ +// RCS-ID: $Id$ // Copyright: (c) 2009 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -19,6 +19,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_