]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/private/gdkconv.h
Remove unnecessary Mac-specific TOOLKIT_LOWERCASE setting.
[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// 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///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _GTK_PRIVATE_GDKCONV_H_
12#define _GTK_PRIVATE_GDKCONV_H_
13
14namespace wxGTKImpl
15{
16
17inline wxRect wxRectFromGDKRect(const GdkRectangle *r)
18{
19 return wxRect(r->x, r->y, r->width, r->height);
20}
21
22inline void wxRectToGDKRect(const wxRect& rect, GdkRectangle& r)
23{
24 r.x = rect.x;
25 r.y = rect.y;
26 r.width = rect.width;
27 r.height = rect.height;
28}
29
30} // namespace wxGTKImpl
31
32#endif // _GTK_PRIVATE_GDKCONV_H_
33