2003-09-27 03:16:28 +00:00
|
|
|
/* GStreamer Navigation
|
|
|
|
* Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
|
|
|
* Copyright (C) 2003 David A. Schleef <ds@schleef.org>
|
|
|
|
*
|
|
|
|
* navigation.h: navigation interface design
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 23:05:09 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2003-09-27 03:16:28 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_NAVIGATION_H__
|
|
|
|
#define __GST_NAVIGATION_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2018-03-13 11:48:31 +00:00
|
|
|
#include <gst/video/video-prelude.h>
|
2003-09-27 03:16:28 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
2004-03-15 16:32:55 +00:00
|
|
|
|
2003-09-27 03:16:28 +00:00
|
|
|
#define GST_TYPE_NAVIGATION \
|
|
|
|
(gst_navigation_get_type ())
|
|
|
|
#define GST_NAVIGATION(obj) \
|
2003-10-29 05:12:18 +00:00
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_NAVIGATION, GstNavigation))
|
2003-09-27 03:16:28 +00:00
|
|
|
#define GST_IS_NAVIGATION(obj) \
|
2003-10-29 05:12:18 +00:00
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_NAVIGATION))
|
2011-10-21 12:37:31 +00:00
|
|
|
#define GST_NAVIGATION_GET_INTERFACE(obj) \
|
2003-10-30 01:43:45 +00:00
|
|
|
(G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_NAVIGATION, GstNavigationInterface))
|
2004-03-15 16:32:55 +00:00
|
|
|
|
2003-09-27 03:16:28 +00:00
|
|
|
typedef struct _GstNavigation GstNavigation;
|
2009-05-11 13:48:56 +00:00
|
|
|
typedef struct _GstNavigationInterface GstNavigationInterface;
|
2003-09-27 03:16:28 +00:00
|
|
|
|
2011-05-23 19:58:22 +00:00
|
|
|
/**
|
|
|
|
* GstNavigationInterface:
|
2011-11-11 17:49:09 +00:00
|
|
|
* @iface: the parent interface
|
2011-05-23 19:58:22 +00:00
|
|
|
* @send_event: sending a navigation event
|
|
|
|
*
|
2012-02-22 09:09:15 +00:00
|
|
|
* Navigation interface.
|
2011-05-23 19:58:22 +00:00
|
|
|
*/
|
2009-05-11 13:48:56 +00:00
|
|
|
struct _GstNavigationInterface {
|
2011-11-11 17:49:09 +00:00
|
|
|
GTypeInterface iface;
|
2003-09-27 03:16:28 +00:00
|
|
|
|
|
|
|
/* virtual functions */
|
2004-03-15 16:32:55 +00:00
|
|
|
void (*send_event) (GstNavigation *navigation, GstStructure *structure);
|
2009-05-11 13:48:56 +00:00
|
|
|
};
|
2003-09-27 03:16:28 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2005-12-06 19:42:02 +00:00
|
|
|
GType gst_navigation_get_type (void);
|
2003-09-27 03:16:28 +00:00
|
|
|
|
2009-03-30 23:54:30 +00:00
|
|
|
/* Navigation commands */
|
2003-09-27 03:16:28 +00:00
|
|
|
|
2009-03-30 23:54:30 +00:00
|
|
|
/**
|
|
|
|
* GstNavigationCommand:
|
|
|
|
* @GST_NAVIGATION_COMMAND_INVALID: An invalid command entry
|
|
|
|
* @GST_NAVIGATION_COMMAND_MENU1: Execute navigation menu command 1. For DVD,
|
|
|
|
* this enters the DVD root menu, or exits back to the title from the menu.
|
|
|
|
* @GST_NAVIGATION_COMMAND_MENU2: Execute navigation menu command 2. For DVD,
|
|
|
|
* this jumps to the DVD title menu.
|
|
|
|
* @GST_NAVIGATION_COMMAND_MENU3: Execute navigation menu command 3. For DVD,
|
|
|
|
* this jumps into the DVD root menu.
|
|
|
|
* @GST_NAVIGATION_COMMAND_MENU4: Execute navigation menu command 4. For DVD,
|
|
|
|
* this jumps to the Subpicture menu.
|
|
|
|
* @GST_NAVIGATION_COMMAND_MENU5: Execute navigation menu command 5. For DVD,
|
|
|
|
* the jumps to the audio menu.
|
|
|
|
* @GST_NAVIGATION_COMMAND_MENU6: Execute navigation menu command 6. For DVD,
|
|
|
|
* this jumps to the angles menu.
|
|
|
|
* @GST_NAVIGATION_COMMAND_MENU7: Execute navigation menu command 7. For DVD,
|
|
|
|
* this jumps to the chapter menu.
|
|
|
|
* @GST_NAVIGATION_COMMAND_LEFT: Select the next button to the left in a menu,
|
|
|
|
* if such a button exists.
|
|
|
|
* @GST_NAVIGATION_COMMAND_RIGHT: Select the next button to the right in a menu,
|
|
|
|
* if such a button exists.
|
|
|
|
* @GST_NAVIGATION_COMMAND_UP: Select the button above the current one in a
|
|
|
|
* menu, if such a button exists.
|
|
|
|
* @GST_NAVIGATION_COMMAND_DOWN: Select the button below the current one in a
|
|
|
|
* menu, if such a button exists.
|
|
|
|
* @GST_NAVIGATION_COMMAND_ACTIVATE: Activate (click) the currently selected
|
|
|
|
* button in a menu, if such a button exists.
|
|
|
|
* @GST_NAVIGATION_COMMAND_PREV_ANGLE: Switch to the previous angle in a
|
|
|
|
* multiangle feature.
|
|
|
|
* @GST_NAVIGATION_COMMAND_NEXT_ANGLE: Switch to the next angle in a multiangle
|
|
|
|
* feature.
|
|
|
|
*
|
|
|
|
* A set of commands that may be issued to an element providing the
|
|
|
|
* #GstNavigation interface. The available commands can be queried via
|
|
|
|
* the gst_navigation_query_new_commands() query.
|
|
|
|
*
|
|
|
|
* For convenience in handling DVD navigation, the MENU commands are aliased as:
|
|
|
|
* GST_NAVIGATION_COMMAND_DVD_MENU = @GST_NAVIGATION_COMMAND_MENU1
|
|
|
|
* GST_NAVIGATION_COMMAND_DVD_TITLE_MENU = @GST_NAVIGATION_COMMAND_MENU2
|
|
|
|
* GST_NAVIGATION_COMMAND_DVD_ROOT_MENU = @GST_NAVIGATION_COMMAND_MENU3
|
|
|
|
* GST_NAVIGATION_COMMAND_DVD_SUBPICTURE_MENU = @GST_NAVIGATION_COMMAND_MENU4
|
|
|
|
* GST_NAVIGATION_COMMAND_DVD_AUDIO_MENU = @GST_NAVIGATION_COMMAND_MENU5
|
|
|
|
* GST_NAVIGATION_COMMAND_DVD_ANGLE_MENU = @GST_NAVIGATION_COMMAND_MENU6
|
|
|
|
* GST_NAVIGATION_COMMAND_DVD_CHAPTER_MENU = @GST_NAVIGATION_COMMAND_MENU7
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_NAVIGATION_COMMAND_INVALID = 0,
|
|
|
|
|
|
|
|
GST_NAVIGATION_COMMAND_MENU1 = 1,
|
|
|
|
GST_NAVIGATION_COMMAND_MENU2 = 2,
|
|
|
|
GST_NAVIGATION_COMMAND_MENU3 = 3,
|
|
|
|
GST_NAVIGATION_COMMAND_MENU4 = 4,
|
|
|
|
GST_NAVIGATION_COMMAND_MENU5 = 5,
|
|
|
|
GST_NAVIGATION_COMMAND_MENU6 = 6,
|
|
|
|
GST_NAVIGATION_COMMAND_MENU7 = 7,
|
2011-05-23 19:58:22 +00:00
|
|
|
|
2009-03-30 23:54:30 +00:00
|
|
|
GST_NAVIGATION_COMMAND_LEFT = 20,
|
|
|
|
GST_NAVIGATION_COMMAND_RIGHT = 21,
|
|
|
|
GST_NAVIGATION_COMMAND_UP = 22,
|
|
|
|
GST_NAVIGATION_COMMAND_DOWN = 23,
|
|
|
|
GST_NAVIGATION_COMMAND_ACTIVATE = 24,
|
|
|
|
|
|
|
|
GST_NAVIGATION_COMMAND_PREV_ANGLE = 30,
|
|
|
|
GST_NAVIGATION_COMMAND_NEXT_ANGLE = 31
|
|
|
|
} GstNavigationCommand;
|
|
|
|
|
|
|
|
/* Some aliases for the menu command types */
|
|
|
|
#define GST_NAVIGATION_COMMAND_DVD_MENU GST_NAVIGATION_COMMAND_MENU1
|
|
|
|
#define GST_NAVIGATION_COMMAND_DVD_TITLE_MENU GST_NAVIGATION_COMMAND_MENU2
|
|
|
|
#define GST_NAVIGATION_COMMAND_DVD_ROOT_MENU GST_NAVIGATION_COMMAND_MENU3
|
|
|
|
#define GST_NAVIGATION_COMMAND_DVD_SUBPICTURE_MENU GST_NAVIGATION_COMMAND_MENU4
|
|
|
|
#define GST_NAVIGATION_COMMAND_DVD_AUDIO_MENU GST_NAVIGATION_COMMAND_MENU5
|
|
|
|
#define GST_NAVIGATION_COMMAND_DVD_ANGLE_MENU GST_NAVIGATION_COMMAND_MENU6
|
|
|
|
#define GST_NAVIGATION_COMMAND_DVD_CHAPTER_MENU GST_NAVIGATION_COMMAND_MENU7
|
|
|
|
|
|
|
|
/* Queries */
|
2011-05-23 19:58:22 +00:00
|
|
|
/**
|
|
|
|
* GstNavigationQueryType:
|
|
|
|
* @GST_NAVIGATION_QUERY_INVALID: invalid query
|
|
|
|
* @GST_NAVIGATION_QUERY_COMMANDS: command query
|
|
|
|
* @GST_NAVIGATION_QUERY_ANGLES: viewing angle query
|
|
|
|
*
|
2020-02-10 17:55:24 +00:00
|
|
|
* Types of navigation interface queries.
|
2011-05-23 19:58:22 +00:00
|
|
|
*/
|
2009-03-30 23:54:30 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GST_NAVIGATION_QUERY_INVALID = 0,
|
|
|
|
GST_NAVIGATION_QUERY_COMMANDS = 1,
|
|
|
|
GST_NAVIGATION_QUERY_ANGLES = 2
|
|
|
|
} GstNavigationQueryType;
|
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2009-03-30 23:54:30 +00:00
|
|
|
GstNavigationQueryType gst_navigation_query_get_type (GstQuery *query);
|
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
GstQuery * gst_navigation_query_new_commands (void);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
void gst_navigation_query_set_commands (GstQuery *query, gint n_cmds, ...);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
void gst_navigation_query_set_commandsv (GstQuery *query, gint n_cmds,
|
|
|
|
GstNavigationCommand *cmds);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
gboolean gst_navigation_query_parse_commands_length (GstQuery *query,
|
|
|
|
guint *n_cmds);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
gboolean gst_navigation_query_parse_commands_nth (GstQuery *query, guint nth,
|
|
|
|
GstNavigationCommand *cmd);
|
2009-03-30 23:54:30 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
GstQuery * gst_navigation_query_new_angles (void);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
void gst_navigation_query_set_angles (GstQuery *query, guint cur_angle,
|
|
|
|
guint n_angles);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
gboolean gst_navigation_query_parse_angles (GstQuery *query, guint *cur_angle,
|
|
|
|
guint *n_angles);
|
2009-03-30 23:54:30 +00:00
|
|
|
|
|
|
|
/* Element messages */
|
|
|
|
/**
|
|
|
|
* GstNavigationMessageType:
|
|
|
|
* @GST_NAVIGATION_MESSAGE_INVALID: Returned from
|
|
|
|
* gst_navigation_message_get_type() when the passed message is not a
|
|
|
|
* navigation message.
|
|
|
|
* @GST_NAVIGATION_MESSAGE_MOUSE_OVER: Sent when the mouse moves over or leaves a
|
|
|
|
* clickable region of the output, such as a DVD menu button.
|
|
|
|
* @GST_NAVIGATION_MESSAGE_COMMANDS_CHANGED: Sent when the set of available commands
|
|
|
|
* changes and should re-queried by interested applications.
|
|
|
|
* @GST_NAVIGATION_MESSAGE_ANGLES_CHANGED: Sent when display angles in a multi-angle
|
|
|
|
* feature (such as a multiangle DVD) change - either angles have appeared or
|
|
|
|
* disappeared.
|
2015-04-02 14:09:13 +00:00
|
|
|
* @GST_NAVIGATION_MESSAGE_EVENT: Sent when a navigation event was not handled
|
2019-04-23 12:05:43 +00:00
|
|
|
* by any element in the pipeline (Since: 1.6)
|
2009-03-30 23:54:30 +00:00
|
|
|
*
|
|
|
|
* A set of notifications that may be received on the bus when navigation
|
|
|
|
* related status changes.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_NAVIGATION_MESSAGE_INVALID,
|
|
|
|
GST_NAVIGATION_MESSAGE_MOUSE_OVER,
|
|
|
|
GST_NAVIGATION_MESSAGE_COMMANDS_CHANGED,
|
2015-04-02 14:09:13 +00:00
|
|
|
GST_NAVIGATION_MESSAGE_ANGLES_CHANGED,
|
|
|
|
GST_NAVIGATION_MESSAGE_EVENT
|
2009-03-30 23:54:30 +00:00
|
|
|
} GstNavigationMessageType;
|
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2009-03-30 23:54:30 +00:00
|
|
|
GstNavigationMessageType gst_navigation_message_get_type (GstMessage *message);
|
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
GstMessage * gst_navigation_message_new_mouse_over (GstObject *src,
|
|
|
|
gboolean active);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
gboolean gst_navigation_message_parse_mouse_over (GstMessage *message,
|
|
|
|
gboolean *active);
|
2009-03-30 23:54:30 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
GstMessage * gst_navigation_message_new_commands_changed (GstObject *src);
|
2009-03-30 23:54:30 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
GstMessage * gst_navigation_message_new_angles_changed (GstObject *src,
|
|
|
|
guint cur_angle,
|
|
|
|
guint n_angles);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
gboolean gst_navigation_message_parse_angles_changed (GstMessage *message,
|
|
|
|
guint *cur_angle,
|
|
|
|
guint *n_angles);
|
2009-03-30 23:54:30 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2015-04-02 14:09:13 +00:00
|
|
|
GstMessage * gst_navigation_message_new_event (GstObject *src,
|
|
|
|
GstEvent *event);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2015-04-02 14:09:13 +00:00
|
|
|
gboolean gst_navigation_message_parse_event (GstMessage *message,
|
|
|
|
GstEvent ** event);
|
2009-03-30 23:54:30 +00:00
|
|
|
/* event parsing functions */
|
|
|
|
/**
|
|
|
|
* GstNavigationEventType:
|
|
|
|
* @GST_NAVIGATION_EVENT_INVALID: Returned from
|
|
|
|
* gst_navigation_event_get_type() when the passed event is not a navigation event.
|
|
|
|
* @GST_NAVIGATION_EVENT_KEY_PRESS: A key press event. Use
|
|
|
|
* gst_navigation_event_parse_key_event() to extract the details from the event.
|
|
|
|
* @GST_NAVIGATION_EVENT_KEY_RELEASE: A key release event. Use
|
|
|
|
* gst_navigation_event_parse_key_event() to extract the details from the event.
|
|
|
|
* @GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS: A mouse button press event. Use
|
|
|
|
* gst_navigation_event_parse_mouse_button_event() to extract the details from the
|
|
|
|
* event.
|
|
|
|
* @GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE: A mouse button release event. Use
|
|
|
|
* gst_navigation_event_parse_mouse_button_event() to extract the details from the
|
|
|
|
* event.
|
|
|
|
* @GST_NAVIGATION_EVENT_MOUSE_MOVE: A mouse movement event. Use
|
|
|
|
* gst_navigation_event_parse_mouse_move_event() to extract the details from the
|
|
|
|
* event.
|
|
|
|
* @GST_NAVIGATION_EVENT_COMMAND: A navigation command event. Use
|
|
|
|
* gst_navigation_event_parse_command() to extract the details from the event.
|
2020-02-10 17:55:24 +00:00
|
|
|
* @GST_NAVIGATION_EVENT_MOUSE_SCROLL: A mouse scroll event. Use
|
|
|
|
* gst_navigation_event_parse_mouse_scroll_event() to extract the details from
|
2020-04-30 16:58:43 +00:00
|
|
|
* the event. (Since: 1.18)
|
2009-03-30 23:54:30 +00:00
|
|
|
*
|
|
|
|
* Enum values for the various events that an element implementing the
|
|
|
|
* GstNavigation interface might send up the pipeline.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_NAVIGATION_EVENT_INVALID = 0,
|
|
|
|
GST_NAVIGATION_EVENT_KEY_PRESS = 1,
|
|
|
|
GST_NAVIGATION_EVENT_KEY_RELEASE = 2,
|
|
|
|
GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS = 3,
|
|
|
|
GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE = 4,
|
|
|
|
GST_NAVIGATION_EVENT_MOUSE_MOVE = 5,
|
2020-02-10 17:55:24 +00:00
|
|
|
GST_NAVIGATION_EVENT_COMMAND = 6,
|
2021-12-22 18:46:44 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_NAVIGATION_EVENT_MOUSE_SCROLL:
|
|
|
|
*
|
|
|
|
* A mouse scroll event. Use gst_navigation_event_parse_mouse_scroll_event()
|
|
|
|
* to extract the details from the event.
|
|
|
|
*
|
|
|
|
* Since: 1.18
|
|
|
|
*/
|
2020-02-10 17:55:24 +00:00
|
|
|
GST_NAVIGATION_EVENT_MOUSE_SCROLL = 7
|
2009-03-30 23:54:30 +00:00
|
|
|
} GstNavigationEventType;
|
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
GstNavigationEventType gst_navigation_event_get_type (GstEvent *event);
|
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
gboolean gst_navigation_event_parse_key_event (GstEvent *event,
|
|
|
|
const gchar **key);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
gboolean gst_navigation_event_parse_mouse_button_event (GstEvent *event,
|
|
|
|
gint *button, gdouble *x, gdouble *y);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
gboolean gst_navigation_event_parse_mouse_move_event (GstEvent *event,
|
|
|
|
gdouble *x, gdouble *y);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2020-02-10 17:55:24 +00:00
|
|
|
GST_VIDEO_API
|
|
|
|
gboolean gst_navigation_event_parse_mouse_scroll_event (GstEvent *event,
|
|
|
|
gdouble *x, gdouble *y,
|
|
|
|
gdouble *delta_x, gdouble *delta_y);
|
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
gboolean gst_navigation_event_parse_command (GstEvent *event,
|
|
|
|
GstNavigationCommand *command);
|
2009-03-30 23:54:30 +00:00
|
|
|
|
|
|
|
/* interface virtual function wrappers */
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
void gst_navigation_send_event (GstNavigation *navigation,
|
|
|
|
GstStructure *structure);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
void gst_navigation_send_key_event (GstNavigation *navigation,
|
|
|
|
const char *event, const char *key);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
void gst_navigation_send_mouse_event (GstNavigation *navigation,
|
|
|
|
const char *event, int button, double x, double y);
|
2017-05-16 00:09:38 +00:00
|
|
|
|
2020-02-10 17:55:24 +00:00
|
|
|
GST_VIDEO_API
|
|
|
|
void gst_navigation_send_mouse_scroll_event (GstNavigation *navigation,
|
|
|
|
double x, double y, double delta_x, double delta_y);
|
|
|
|
|
2018-03-13 11:48:31 +00:00
|
|
|
GST_VIDEO_API
|
2011-11-11 17:49:09 +00:00
|
|
|
void gst_navigation_send_command (GstNavigation *navigation,
|
|
|
|
GstNavigationCommand command);
|
2003-09-27 03:16:28 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
2004-03-15 16:32:55 +00:00
|
|
|
|
2003-09-27 03:16:28 +00:00
|
|
|
#endif /* __GST_NAVIGATION_H__ */
|