5c3df27
From 03903c1e459f108e0c464db24064e4cde84f174a Mon Sep 17 00:00:00 2001
5c3df27
From: Vadim Zeitlin <vadim@wxwidgets.org>
5c3df27
Date: Fri, 20 Dec 2013 17:50:27 +0000
5c3df27
Subject: [PATCH] Document wxEVT_MEDIA_XXX event types.
5c3df27
5c3df27
See #15768.
5c3df27
5c3df27
(cherry picked from commit 5c1f95bc71028e4562f847af56b815b2f13370a9 on master)
5c3df27
---
5c3df27
 interface/wx/mediactrl.h | 12 ++++++++++++
5c3df27
 1 file changed, 12 insertions(+)
5c3df27
5c3df27
diff --git a/interface/wx/mediactrl.h b/interface/wx/mediactrl.h
5c3df27
index e425fa0..8bcfada 100644
5c3df27
--- a/interface/wx/mediactrl.h
5c3df27
+++ b/interface/wx/mediactrl.h
5c3df27
@@ -48,6 +48,7 @@ enum wxMediaCtrlPlayerControls
5c3df27
     @beginEventTable{wxMediaEvent}
5c3df27
     @event{EVT_MEDIA_LOADED(id\, func)}
5c3df27
            Sent when a media has loaded enough data that it can start playing.
5c3df27
+           Processes a @c wxEVT_MEDIA_LOADED event type.
5c3df27
     @event{EVT_MEDIA_STOP(id\, func)}
5c3df27
            Sent when a media has switched to the @c wxMEDIASTATE_STOPPED state.
5c3df27
            You may be able to Veto this event to prevent it from stopping,
5c3df27
@@ -55,14 +56,19 @@ enum wxMediaCtrlPlayerControls
5c3df27
            the media (note that this may not have the desired effect - if you
5c3df27
            want to loop the media, for example, catch the @c EVT_MEDIA_FINISHED
5c3df27
            and play there instead).
5c3df27
+           Processes a @c wxEVT_MEDIA_STOP event type.
5c3df27
     @event{EVT_MEDIA_FINISHED(id\, func)}
5c3df27
            Sent when a media has finished playing in a wxMediaCtrl.
5c3df27
+           Processes a @c wxEVT_MEDIA_FINISHED event type.
5c3df27
     @event{EVT_MEDIA_STATECHANGED(id\, func)}
5c3df27
            Sent when a media has switched its state (from any media state).
5c3df27
+           Processes a @c wxEVT_MEDIA_STATECHANGED event type.
5c3df27
     @event{EVT_MEDIA_PLAY(id\, func)}
5c3df27
            Sent when a media has switched to the @c wxMEDIASTATE_PLAYING state.
5c3df27
+           Processes a @c wxEVT_MEDIA_PLAY event type.
5c3df27
     @event{EVT_MEDIA_PAUSE(id\, func)}
5c3df27
            Sent when a media has switched to the @c wxMEDIASTATE_PAUSED state.
5c3df27
+           Processes a @c wxEVT_MEDIA_PAUSE event type.
5c3df27
     @endEventTable
5c3df27
 
5c3df27
     @library{wxmedia}
5c3df27
@@ -442,3 +448,9 @@ class wxMediaCtrl : public wxControl
5c3df27
     wxFileOffset Tell();
5c3df27
 };
5c3df27
 
5c3df27
+wxEventType wxEVT_MEDIA_LOADED;
5c3df27
+wxEventType wxEVT_MEDIA_STOP;
5c3df27
+wxEventType wxEVT_MEDIA_FINISHED;
5c3df27
+wxEventType wxEVT_MEDIA_STATECHANGED;
5c3df27
+wxEventType wxEVT_MEDIA_PLAY;
5c3df27
+wxEventType wxEVT_MEDIA_PAUSE;