Class: Wx::MediaEvent
- Inherits:
-
NotifyEvent
- Object
- Object
- Event
- CommandEvent
- NotifyEvent
- Wx::MediaEvent
- Defined in:
- lib/wx/doc/gen/media_event.rb
Overview
Event MediaCtrl uses.
Events using this class
The following event-handler methods redirect the events to member method or handler blocks for MediaEvent events. Event handler methods:
-
EvtHandler#evt_media_loaded(id, meth = nil, &block): Sent when a media has loaded enough data that it can start playing. Processes a EVT_MEDIA_LOADED event type.
-
EvtHandler#evt_media_stop(id, meth = nil, &block): Sent when a media has switched to the Wx::MediaState::MEDIASTATE_STOPPED state. You may be able to Veto this event to prevent it from stopping, causing it to continue playing - even if it has reached that end of the media (note that this may not have the desired effect - if you want to loop the media, for example, catch the EVT_MEDIA_FINISHED and play there instead). Processes a EVT_MEDIA_STOP event type.
-
EvtHandler#evt_media_finished(id, meth = nil, &block): Sent when a media has finished playing in a MediaCtrl. Processes a EVT_MEDIA_FINISHED event type.
-
EvtHandler#evt_media_statechanged(id, meth = nil, &block): Sent when a media has switched its state (from any media state). Processes a EVT_MEDIA_STATECHANGED event type.
-
EvtHandler#evt_media_play(id, meth = nil, &block): Sent when a media has switched to the Wx::MediaState::MEDIASTATE_PLAYING state. Processes a EVT_MEDIA_PLAY event type.
-
EvtHandler#evt_media_pause(id, meth = nil, &block): Sent when a media has switched to the Wx::MediaState::MEDIASTATE_PAUSED state. Processes a EVT_MEDIA_PAUSE event type.
Category: Events
Instance Method Summary collapse
-
#initialize(commandType = Wx::EVT_NULL, winid = 0) ⇒ Wx::MediaEvent
constructor
Default ctor.
Methods inherited from NotifyEvent
Methods inherited from CommandEvent
#client_data, #client_data=, #get_client_data, #get_client_object, #get_int, #get_selection, #get_string, #is_checked, #is_selection, #set_client_data, #set_client_object, #set_extra_long, #set_int, #set_string
Methods inherited from Event
#clone, #get_event_category, #get_event_object, #get_event_type, #get_id, #get_skipped, #get_timestamp, #is_command_event, #resume_propagation, #set_event_object, #set_event_type, #set_id, #set_timestamp, #should_propagate, #skip, #stop_propagation
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize(commandType = Wx::EVT_NULL, winid = 0) ⇒ Wx::MediaEvent
Default ctor.
112 |
# File 'lib/wx/doc/gen/media_event.rb', line 112 def initialize(commandType=Wx::EVT_NULL, winid=0) end |