expand tabs
[platform/upstream/gstreamer.git] / gst-libs / gst / interfaces / navigation.h
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
50 GType           gst_navigation_get_type (void);
51
52 /* virtual class function wrappers */
53 void gst_navigation_send_event (GstNavigation *navigation, GstStructure *structure);
54
55 void gst_navigation_send_key_event (GstNavigation *navigation, 
56         const char *event, const char *key);
57 void gst_navigation_send_mouse_event (GstNavigation *navigation, 
58         const char *event, int button, double x, double y);
59
60 G_END_DECLS
61
62 #endif /* __GST_NAVIGATION_H__ */