gdkinputprivate.h

Go to the documentation of this file.
00001 /* GDK - The GIMP Drawing Kit
00002  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this library; if not, write to the
00016  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017  * Boston, MA 02111-1307, USA.
00018  */
00019 
00020 /*
00021  * Modified by the GTK+ Team and others 1997-1999.  See the AUTHORS
00022  * file for a list of people on the GTK+ Team.  See the ChangeLog
00023  * files for a list of changes.  These files are distributed with
00024  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
00025  */
00026 
00027 #ifndef __GDK_INPUTPRIVATE_H__
00028 #define __GDK_INPUTPRIVATE_H__
00029 
00030 typedef struct _GdkAxisInfo GdkAxisInfo;
00031 typedef struct _GdkInputVTable GdkInputVTable;
00032 typedef struct _GdkDevicePrivate GdkDevicePrivate;
00033 typedef struct _GdkInputWindow GdkInputWindow;
00034 
00035 struct _GdkInputVTable {
00036    gint(*set_mode) (guint32 deviceid, GdkInputMode mode);
00037    void (*set_axes) (guint32 deviceid, GdkAxisUse * axes);
00038    void (*set_key) (guint32 deviceid,
00039                     guint index, guint keyval, GdkModifierType modifiers);
00040 
00041    GdkTimeCoord *(*motion_events) (GdkWindow * window,
00042                                    guint32 deviceid,
00043                                    guint32 start,
00044                                    guint32 stop, gint * nevents_return);
00045    void (*get_pointer) (GdkWindow * window,
00046                         guint32 deviceid,
00047                         gdouble * x,
00048                         gdouble * y,
00049                         gdouble * pressure,
00050                         gdouble * xtilt,
00051                         gdouble * ytilt, GdkModifierType * mask);
00052     gint(*grab_pointer) (GdkWindow * window,
00053                          gint owner_events,
00054                          GdkEventMask event_mask,
00055                          GdkWindow * confine_to, guint32 time);
00056    void (*ungrab_pointer) (guint32 time);
00057 
00058    void (*configure_event) (GdkEventConfigure * event, GdkWindow * window);
00059    void (*enter_event) (GdkEventCrossing * event, GdkWindow * window);
00060     gint(*other_event) (GdkEvent * event, MSG * xevent);
00061     gint(*enable_window) (GdkWindow * window, GdkDevicePrivate * gdkdev);
00062     gint(*disable_window) (GdkWindow * window, GdkDevicePrivate * gdkdev);
00063 };
00064 
00065 /* information about a device axis */
00066 struct _GdkAxisInfo {
00067    /* reported x resolution */
00068    gint xresolution;
00069 
00070    /* reported x minimum/maximum values */
00071    gint xmin_value, xmax_value;
00072 
00073    /* calibrated resolution (for aspect ration) - only relative values
00074       between axes used */
00075    gint resolution;
00076 
00077    /* calibrated minimum/maximum values */
00078    gint min_value, max_value;
00079 };
00080 
00081 struct _GdkInputWindow {
00082    /* gdk window */
00083    GdkWindow *window;
00084 
00085    /* Extension mode (GDK_EXTENSION_EVENTS_ALL/CURSOR) */
00086    GdkExtensionMode mode;
00087 
00088    /* position relative to root window */
00089    gint16 root_x;
00090    gint16 root_y;
00091 
00092    /* rectangles relative to window of windows obscuring this one */
00093    GdkRectangle *obscuring;
00094    gint num_obscuring;
00095 
00096    /* Is there a pointer grab for this window ? */
00097    gint grabbed;
00098 };
00099 
00100 /* Global data */
00101 
00102 extern GdkInputVTable gdk_input_vtable;
00103 extern gint gdk_input_ignore_core;
00104 extern gint gdk_input_ignore_wintab;
00105 
00106 /* Function declarations */
00107 
00108 void gdk_input_window_destroy(GdkWindow * window);
00109 void gdk_input_init(void);
00110 void gdk_input_exit(void);
00111 
00112 #endif                          /* __GDK_INPUTPRIVATE_H__ */

Generated on Tue Jul 5 14:14:40 2011 for ROOT_528-00b_version by  doxygen 1.5.1