/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ /* * Copyright (C) 2011 Ruby-GNOME2 Project Team * Copyright (C) 2008 Ruby-GNOME2 Project Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301 USA */ #ifndef __RBGDK3_H__ #define __RBGDK3_H__ #include #ifdef GDK_WINDOWING_X11 # include #endif #ifdef GDK_WINDOWING_WIN32 # include #endif #include "rbgdk3conversions.h" #define RBGDK_MAJOR_VERSION RBGLIB_MAJOR_VERSION #define RBGDK_MINOR_VERSION RBGLIB_MINOR_VERSION #define RBGDK_MICRO_VERSION RBGLIB_MICRO_VERSION #define RVAL2GDKPOINTS(value, n) rbgdk_rval2gdkpoints(value, n) #define RVAL2GDKATOMS(value, n) rbgdk_rval2gdkatoms(value, n) #define RVAL2GDKPIXBUFGLIST(value) rbgdk_rval2gdkpixbufglist(value) /* for backword compatibility. TODO: remove me. */ #define GEV2RVAL(ev) GDKEVENT2RVAL(ev) #define RVAL2GEV(ev) RVAL2GDKEVENT(ev) #define RVAL2ATOM(atom) (get_gdkatom(atom)) #define GDK_TYPE_GEOMETRY (gdk_geometry_get_type()) #define GDK_TYPE_ATOM (gdk_atom_get_type()) #define GDK_TYPE_WINDOW_ATTR (gdk_windowattr_get_type()) #define GDK_TYPE_TIME_COORD (gdk_timecoord_get_type()) typedef struct { GdkAtom atom; } GdkAtomData; GdkPoint *rbgdk_rval2gdkpoints(VALUE value, long *n); GdkAtom *rbgdk_rval2gdkatoms(VALUE value, long *n); GList *rbgdk_rval2gdkpixbufglist(VALUE value); extern GType gdk_windowattr_get_type(void); extern GType gdk_atom_get_type(void); extern GType gdk_geometry_get_type(void); extern GType gdk_timecoord_get_type(void); extern GdkAtom get_gdkatom(VALUE atom); extern VALUE rbgdk_gdkevent2rval(GdkEvent *event); extern GdkEvent *rbgdk_rval2gdkevent(VALUE event); #endif /* __RBGDK3_H__ */