]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/private/gdkconv.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / gtk / private / gdkconv.h
... / ...
CommitLineData
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk/private/gdkconv.h
3// Purpose: Helper functions for converting between GDK and wx types
4// Author: Vadim Zeitlin
5// Created: 2009-11-10
6// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
7// Licence: wxWindows licence
8///////////////////////////////////////////////////////////////////////////////
9
10#ifndef _GTK_PRIVATE_GDKCONV_H_
11#define _GTK_PRIVATE_GDKCONV_H_
12
13namespace wxGTKImpl
14{
15
16inline wxRect wxRectFromGDKRect(const GdkRectangle *r)
17{
18 return wxRect(r->x, r->y, r->width, r->height);
19}
20
21inline void wxRectToGDKRect(const wxRect& rect, GdkRectangle& r)
22{
23 r.x = rect.x;
24 r.y = rect.y;
25 r.width = rect.width;
26 r.height = rect.height;
27}
28
29} // namespace wxGTKImpl
30
31#endif // _GTK_PRIVATE_GDKCONV_H_
32