Ejemplo n.º 1
0
            public static void Detach(IVLCSubscribable Object, VLCEventType Event, libvlc_callback_t Callback, IntPtr?UserData = null)
            {
                IntPtr UsrData = (UserData.HasValue) ? (IntPtr)UserData : IntPtr.Zero;

                NativeMethods.libvlc_event_detach(
                    Object.EventManager,
                    (libvlc_event_e)Event,
                    Callback,
                    UsrData
                    );
            }
Ejemplo n.º 2
0
        public VLCEventBinding(VLCEventType EventType, IntPtr?UserData = null)
        {
            Type = EventType;

            EventDelegate = new libvlc_callback_t(delegate(IntPtr EventPtr, IntPtr UserDataPtr)
            {
                var Event = Transform.ToStructure <libvlc_event_t>(EventPtr);
                if (Event.type == (libvlc_event_e)Type)
                {
                    Invoked(Event, UserDataPtr);
                }
            });
        }
Ejemplo n.º 3
0
 public static String Name(VLCEventType Event)
 {
     return(Transform.ToString(NativeMethods.libvlc_event_type_name((libvlc_event_e)Event)));
 }