1 /* GStreamer Navigation
2 * Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
3 * Copyright (C) 2003 David A. Schleef <ds@schleef.org>
5 * navigation.h: navigation interface design
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.
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.
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.
23 #ifndef __GST_NAVIGATION_H__
24 #define __GST_NAVIGATION_H__
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))
39 typedef struct _GstNavigation GstNavigation;
41 typedef struct _GstNavigationInterface {
42 GTypeInterface g_iface;
44 /* virtual functions */
45 void (*send_event) (GstNavigation *navigation, GstStructure *structure);
47 gpointer _gst_reserved[GST_PADDING];
48 } GstNavigationInterface;
50 GType gst_navigation_get_type (void);
52 /* virtual class function wrappers */
53 void gst_navigation_send_event (GstNavigation *navigation, GstStructure *structure);
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);
62 #endif /* __GST_NAVIGATION_H__ */