Ardour
9.0-pre0-384-ga76afae0e9
gdkinputprivate.h
Go to the documentation of this file.
1
/* GDK - The GIMP Drawing Kit
2
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3
*
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
8
*
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the
16
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
18
*/
19
20
/*
21
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
22
* file for a list of people on the GTK+ Team. See the ChangeLog
23
* files for a list of changes. These files are distributed with
24
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
25
*/
26
27
#ifndef __GDK_INPUTPRIVATE_H__
28
#define __GDK_INPUTPRIVATE_H__
29
30
#include "config.h"
31
#include "
gdkinput.h
"
32
#include "
gdkevents.h
"
33
#include "gdkquartz.h"
34
35
typedef
struct
_GdkAxisInfo
GdkAxisInfo
;
36
typedef
struct
_GdkInputVTable
GdkInputVTable
;
37
typedef
struct
_GdkDevicePrivate
GdkDevicePrivate
;
38
39
struct
_GdkInputVTable
{
40
gint (*
set_mode
) (guint32 deviceid,
GdkInputMode
mode);
41
void (*
set_axes
) (guint32 deviceid,
GdkAxisUse
*axes);
42
void (*
set_key
) (guint32 deviceid,
43
guint index,
44
guint keyval,
45
GdkModifierType
modifiers);
46
47
GdkTimeCoord
* (*motion_events) (
GdkWindow
*window,
48
guint32 deviceid,
49
guint32
start
,
50
guint32
stop
,
51
gint *nevents_return);
52
void (*
get_pointer
) (
GdkWindow
*window,
53
guint32 deviceid,
54
gdouble *x,
55
gdouble *y,
56
gdouble *pressure,
57
gdouble *xtilt,
58
gdouble *ytilt,
59
GdkModifierType
*mask);
60
gint (*
grab_pointer
) (
GdkWindow
* window,
61
gint owner_events,
62
GdkEventMask
event_mask,
63
GdkWindow
* confine_to,
64
guint32 time);
65
void (*
ungrab_pointer
) (guint32 time);
66
67
void (*
configure_event
) (
GdkEventConfigure
*event,
GdkWindow
*window);
68
void (*
enter_event
) (
GdkEventCrossing
*event,
GdkWindow
*window);
69
gint (*
other_event
) (
GdkEvent
*event,
GdkWindow
*window);
70
/* Handle an unidentified event. Returns TRUE if handled, FALSE
71
otherwise */
72
gint (*
window_none_event
) (
GdkEvent
*event);
73
gint (*
enable_window
) (
GdkWindow
*window,
GdkDevicePrivate
*gdkdev);
74
gint (*
disable_window
) (
GdkWindow
*window,
GdkDevicePrivate
*gdkdev);
75
};
76
77
/* information about a device axis */
78
struct
_GdkAxisInfo
79
{
80
/* reported x resolution */
81
gint
xresolution
;
82
83
/* reported x minimum/maximum values */
84
gint
xmin_value
,
xmax_value
;
85
86
/* calibrated resolution (for aspect ration) - only relative values
87
between axes used */
88
gint
resolution
;
89
90
/* calibrated minimum/maximum values */
91
gint
min_value
,
max_value
;
92
};
93
94
#define GDK_INPUT_NUM_EVENTC 6
95
96
struct
_GdkDevicePrivate
{
97
GdkDevice
info
;
98
99
gint
last_state
;
100
gdouble *
last_axes_state
;
101
};
102
103
struct
_GdkDeviceClass
104
{
105
GObjectClass
parent_class
;
106
};
107
108
struct
_GdkInputWindow
109
{
110
/* gdk window */
111
GdkWindow
*
window
;
112
113
/* Extension mode (GDK_EXTENSION_EVENTS_ALL/CURSOR) */
114
GdkExtensionMode
mode
;
115
116
/* position relative to root window */
117
gint
root_x
;
118
gint
root_y
;
119
120
/* rectangles relative to window of windows obscuring this one */
121
GdkRectangle
*
obscuring
;
122
gint
num_obscuring
;
123
124
/* Is there a pointer grab for this window ? */
125
gint
grabbed
;
126
};
127
128
/* Global data */
129
130
extern
const
GdkDevice
gdk_input_core_info
;
131
132
extern
GdkInputVTable
gdk_input_vtable
;
133
/* information about network port and host for gxid daemon */
134
extern
gchar *
_gdk_input_gxid_host
;
135
extern
gint
_gdk_input_gxid_port
;
136
extern
gint
_gdk_input_ignore_core
;
137
138
/* Function declarations */
139
140
GdkInputWindow
*
_gdk_input_window_find
(
GdkWindow
*window);
141
void
_gdk_input_window_destroy
(
GdkWindow
*window);
142
void
_gdk_input_init
(
void
);
143
void
_gdk_input_exit
(
void
);
144
gint
_gdk_input_enable_window
(
GdkWindow
*window,
145
GdkDevicePrivate
*gdkdev);
146
gint
_gdk_input_disable_window
(
GdkWindow
*window,
147
GdkDevicePrivate
*gdkdev);
148
void
_gdk_init_input_core
(
void
);
149
150
void
_gdk_input_window_crossing
(
GdkWindow
*window,
151
gboolean enter);
152
153
void
_gdk_input_quartz_tablet_proximity
(NSPointingDeviceType deviceType);
154
gboolean
_gdk_input_fill_quartz_input_event
(
GdkEvent
*event,
155
NSEvent *nsevent,
156
GdkEvent
*input_event);
157
158
void
_gdk_input_exit
(
void
);
159
160
#endif
/* __GDK_INPUTPRIVATE_H__ */
gdkevents.h
GdkEventMask
GdkEventMask
Definition:
gdkevents.h:166
gdkinput.h
GdkInputMode
GdkInputMode
Definition:
gdkinput.h:67
GdkExtensionMode
GdkExtensionMode
Definition:
gdkinput.h:52
GdkAxisUse
GdkAxisUse
Definition:
gdkinput.h:74
_gdk_init_input_core
void _gdk_init_input_core(void)
_gdk_input_quartz_tablet_proximity
void _gdk_input_quartz_tablet_proximity(NSPointingDeviceType deviceType)
gdk_input_vtable
GdkInputVTable gdk_input_vtable
_gdk_input_window_destroy
void _gdk_input_window_destroy(GdkWindow *window)
_gdk_input_ignore_core
gint _gdk_input_ignore_core
_gdk_input_window_find
GdkInputWindow * _gdk_input_window_find(GdkWindow *window)
_gdk_input_enable_window
gint _gdk_input_enable_window(GdkWindow *window, GdkDevicePrivate *gdkdev)
_gdk_input_exit
void _gdk_input_exit(void)
_gdk_input_init
void _gdk_input_init(void)
_gdk_input_gxid_host
gchar * _gdk_input_gxid_host
_gdk_input_gxid_port
gint _gdk_input_gxid_port
_gdk_input_window_crossing
void _gdk_input_window_crossing(GdkWindow *window, gboolean enter)
_gdk_input_disable_window
gint _gdk_input_disable_window(GdkWindow *window, GdkDevicePrivate *gdkdev)
gdk_input_core_info
const GdkDevice gdk_input_core_info
_gdk_input_fill_quartz_input_event
gboolean _gdk_input_fill_quartz_input_event(GdkEvent *event, NSEvent *nsevent, GdkEvent *input_event)
GdkModifierType
GdkModifierType
Definition:
gdktypes.h:127
ARDOUR::Properties::start
PBD::PropertyDescriptor< timepos_t > start
MIDI::stop
@ stop
Definition:
midi++2/midi++/types.h:59
_GdkAxisInfo
Definition:
gdkinputprivate.h:79
_GdkAxisInfo::xmin_value
gint xmin_value
Definition:
gdkinputprivate.h:84
_GdkAxisInfo::resolution
gint resolution
Definition:
gdkinputprivate.h:88
_GdkAxisInfo::min_value
gint min_value
Definition:
gdkinputprivate.h:91
_GdkAxisInfo::max_value
gint max_value
Definition:
gdkinputprivate.h:91
_GdkAxisInfo::xresolution
gint xresolution
Definition:
gdkinputprivate.h:81
_GdkAxisInfo::xmax_value
gint xmax_value
Definition:
gdkinputprivate.h:84
_GdkDeviceClass
Definition:
gdkinputprivate.h:104
_GdkDeviceClass::parent_class
GObjectClass parent_class
Definition:
gdkinputprivate.h:105
_GdkDevicePrivate
Definition:
gdkinputprivate.h:96
_GdkDevicePrivate::last_state
gint last_state
Definition:
gdkinputprivate.h:99
_GdkDevicePrivate::info
GdkDevice info
Definition:
gdkinputprivate.h:97
_GdkDevicePrivate::last_axes_state
gdouble * last_axes_state
Definition:
gdkinputprivate.h:100
_GdkDevice
Definition:
gdkinput.h:99
_GdkDrawable
Definition:
gdkdrawable.h:54
_GdkEventConfigure
Definition:
gdkevents.h:408
_GdkEventCrossing
Definition:
gdkevents.h:383
_GdkInputVTable
Definition:
gdkinputprivate.h:39
_GdkInputVTable::configure_event
void(* configure_event)(GdkEventConfigure *event, GdkWindow *window)
Definition:
gdkinputprivate.h:67
_GdkInputVTable::disable_window
gint(* disable_window)(GdkWindow *window, GdkDevicePrivate *gdkdev)
Definition:
gdkinputprivate.h:74
_GdkInputVTable::set_mode
gint(* set_mode)(guint32 deviceid, GdkInputMode mode)
Definition:
gdkinputprivate.h:40
_GdkInputVTable::other_event
gint(* other_event)(GdkEvent *event, GdkWindow *window)
Definition:
gdkinputprivate.h:69
_GdkInputVTable::get_pointer
void(* get_pointer)(GdkWindow *window, guint32 deviceid, gdouble *x, gdouble *y, gdouble *pressure, gdouble *xtilt, gdouble *ytilt, GdkModifierType *mask)
Definition:
gdkinputprivate.h:52
_GdkInputVTable::ungrab_pointer
void(* ungrab_pointer)(guint32 time)
Definition:
gdkinputprivate.h:65
_GdkInputVTable::enter_event
void(* enter_event)(GdkEventCrossing *event, GdkWindow *window)
Definition:
gdkinputprivate.h:68
_GdkInputVTable::enable_window
gint(* enable_window)(GdkWindow *window, GdkDevicePrivate *gdkdev)
Definition:
gdkinputprivate.h:73
_GdkInputVTable::grab_pointer
gint(* grab_pointer)(GdkWindow *window, gint owner_events, GdkEventMask event_mask, GdkWindow *confine_to, guint32 time)
Definition:
gdkinputprivate.h:60
_GdkInputVTable::set_key
void(* set_key)(guint32 deviceid, guint index, guint keyval, GdkModifierType modifiers)
Definition:
gdkinputprivate.h:42
_GdkInputVTable::window_none_event
gint(* window_none_event)(GdkEvent *event)
Definition:
gdkinputprivate.h:72
_GdkInputVTable::set_axes
void(* set_axes)(guint32 deviceid, GdkAxisUse *axes)
Definition:
gdkinputprivate.h:41
_GdkInputWindow
Definition:
gdkinputprivate.h:109
_GdkInputWindow::mode
GdkExtensionMode mode
Definition:
gdkinputprivate.h:114
_GdkInputWindow::root_x
gint root_x
Definition:
gdkinputprivate.h:117
_GdkInputWindow::num_obscuring
gint num_obscuring
Definition:
gdkinputprivate.h:122
_GdkInputWindow::window
GdkWindow * window
Definition:
gdkinputprivate.h:111
_GdkInputWindow::grabbed
gint grabbed
Definition:
gdkinputprivate.h:125
_GdkInputWindow::obscuring
GdkRectangle * obscuring
Definition:
gdkinputprivate.h:121
_GdkInputWindow::root_y
gint root_y
Definition:
gdkinputprivate.h:118
_GdkRectangle
Definition:
gdktypes.h:201
_GdkTimeCoord
Definition:
gdkinput.h:121
_GdkEvent
Definition:
gdkevents.h:517
libs
tk
ydk
ydk
gdk
quartz
gdkinputprivate.h
Generated on Sat Nov 9 2024 06:31:39 for Ardour by
1.9.1