|
1 /* GStreamer Navigation |
|
2 * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net> |
|
3 * Copyright (C) 2003 David A. Schleef <ds@schleef.org> |
|
4 * |
|
5 * navigation.h: navigation interface design |
|
6 * |
|
7 * This library is free software; you can redistribute it and/or |
|
8 * modify it under the terms of the GNU Library General Public |
|
9 * License as published by the Free Software Foundation; either |
|
10 * version 2 of the License, or (at your option) any later version. |
|
11 * |
|
12 * This library is distributed in the hope that it will be useful, |
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
15 * Library General Public License for more details. |
|
16 * |
|
17 * You should have received a copy of the GNU Library General Public |
|
18 * License along with this library; if not, write to the |
|
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
20 * Boston, MA 02111-1307, USA. |
|
21 */ |
|
22 |
|
23 #ifndef __GST_NAVIGATION_H__ |
|
24 #define __GST_NAVIGATION_H__ |
|
25 |
|
26 #include <gst/gst.h> |
|
27 |
|
28 G_BEGIN_DECLS |
|
29 |
|
30 #define GST_TYPE_NAVIGATION \ |
|
31 (gst_navigation_get_type ()) |
|
32 #define GST_NAVIGATION(obj) \ |
|
33 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_NAVIGATION, GstNavigation)) |
|
34 #define GST_IS_NAVIGATION(obj) \ |
|
35 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_NAVIGATION)) |
|
36 #define GST_NAVIGATION_GET_IFACE(obj) \ |
|
37 (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_NAVIGATION, GstNavigationInterface)) |
|
38 |
|
39 typedef struct _GstNavigation GstNavigation; |
|
40 |
|
41 typedef struct _GstNavigationInterface { |
|
42 GTypeInterface g_iface; |
|
43 |
|
44 /* virtual functions */ |
|
45 void (*send_event) (GstNavigation *navigation, GstStructure *structure); |
|
46 |
|
47 gpointer _gst_reserved[GST_PADDING]; |
|
48 } GstNavigationInterface; |
|
49 #ifdef __SYMBIAN32__ |
|
50 IMPORT_C |
|
51 #endif |
|
52 |
|
53 |
|
54 GType gst_navigation_get_type (void); |
|
55 |
|
56 /* virtual class function wrappers */ |
|
57 #ifdef __SYMBIAN32__ |
|
58 IMPORT_C |
|
59 #endif |
|
60 |
|
61 void gst_navigation_send_event (GstNavigation *navigation, GstStructure *structure); |
|
62 #ifdef __SYMBIAN32__ |
|
63 IMPORT_C |
|
64 #endif |
|
65 |
|
66 |
|
67 void gst_navigation_send_key_event (GstNavigation *navigation, |
|
68 const char *event, const char *key); |
|
69 #ifdef __SYMBIAN32__ |
|
70 IMPORT_C |
|
71 #endif |
|
72 |
|
73 void gst_navigation_send_mouse_event (GstNavigation *navigation, |
|
74 const char *event, int button, double x, double y); |
|
75 |
|
76 G_END_DECLS |
|
77 |
|
78 #endif /* __GST_NAVIGATION_H__ */ |