gstreamer/gstreamer-sharp/NavigationMessage.cs
Sebastian Dröge aa7bb8fa1c Use internal glib-sharp copy everywhere and make it work side-by-side with real glib-sharp
glib-sharp will only get a new release with the new API that we need for
3.0 in a year or something. Instead of waiting a year before we can release
something we now have our own internal copy of glib-sharp trunk that will
be dropped once glib-sharp 3.0 is released.

Everything is now compilable and working without any additional patches.
2009-08-05 16:57:20 +02:00

58 lines
2.4 KiB
C#

namespace Gst.Interfaces {
using System;
using System.Runtime.InteropServices;
using System.Reflection;
using Gst.GLib;
using Gst;
using Gst.Interfaces;
public static class NavigationMessage {
[DllImport("libgstinterfaces-0.10.dll") ]
static extern int gst_navigation_message_get_type (IntPtr message);
public static Gst.Interfaces.NavigationMessageType MessageGetType (Gst.Message message) {
int raw_ret = gst_navigation_message_get_type (message == null ? IntPtr.Zero : message.Handle);
Gst.Interfaces.NavigationMessageType ret = (Gst.Interfaces.NavigationMessageType) raw_ret;
return ret;
}
[DllImport("libgstinterfaces-0.10.dll") ]
static extern IntPtr gst_navigation_message_new_mouse_over (IntPtr src, bool active);
public static Gst.Message NewMouseOver (Gst.Object src, bool active) {
Message msg = (Message) Gst.MiniObject.GetObject (gst_navigation_message_new_mouse_over (src.Handle, active), true);
return msg;
}
[DllImport("libgstinterfaces-0.10.dll") ]
static extern bool gst_navigation_message_parse_mouse_over (IntPtr msg, out bool active);
public static bool ParseMouseOver (Gst.Message msg, out bool active) {
return gst_navigation_message_parse_mouse_over (msg.Handle, out active);
}
[DllImport("libgstinterfaces-0.10.dll") ]
static extern IntPtr gst_navigation_message_new_angles_changed (IntPtr src, uint cur_angle, uint n_angles);
public static Gst.Message NewAnglesChanged (Gst.Object src, uint cur_angle, uint n_angles) {
Message msg = (Message) Gst.MiniObject.GetObject (gst_navigation_message_new_angles_changed (src.Handle, cur_angle, n_angles), true);
return msg;
}
[DllImport("libgstinterfaces-0.10.dll") ]
static extern bool gst_navigation_message_parse_angles_changed (IntPtr msg, out uint cur_angle, out uint n_angles);
public static bool ParseMouseOver (Gst.Message msg, out uint cur_angle, out uint n_angles) {
return gst_navigation_message_parse_angles_changed (msg.Handle, out cur_angle, out n_angles);
}
[DllImport("libgstinterfaces-0.10.dll") ]
static extern IntPtr gst_navigation_message_new_commands_changed (IntPtr src);
public static Gst.Message NewCommandsChanged (Gst.Object src) {
Message msg = (Message) Gst.MiniObject.GetObject (gst_navigation_message_new_commands_changed (src.Handle), true);
return msg;
}
}
}