# :stopdoc: # This file is automatically generated by the WXRuby3 documentation # generator. Do not alter this file. # :startdoc: module Wx # MC_NO_AUTORESIZE = 1 # Describes the current state of the media. # # # @see Wx::MediaCtrl#get_state # # # @wxrb_require USE_MEDIACTRL class MediaState < Wx::Enum # No media is being currently played. # MEDIASTATE_STOPPED = Wx::MediaState.new(0) # Current media is paused. # MEDIASTATE_PAUSED = Wx::MediaState.new(1) # There is media currently playing. # MEDIASTATE_PLAYING = Wx::MediaState.new(2) end # MediaState # # # # # @wxrb_require USE_MEDIACTRL class MediaCtrlPlayerControls < Wx::Enum # No controls. # MEDIACTRLPLAYERCONTROLS_NONE = Wx::MediaCtrlPlayerControls.new(0) # Step controls like fastforward, step one frame etc. # MEDIACTRLPLAYERCONTROLS_STEP = Wx::MediaCtrlPlayerControls.new(1) # Volume controls like the speaker icon, volume slider, etc. # MEDIACTRLPLAYERCONTROLS_VOLUME = Wx::MediaCtrlPlayerControls.new(2) # Default controls for the toolkit. # MEDIACTRLPLAYERCONTROLS_DEFAULT = Wx::MediaCtrlPlayerControls.new(3) end # MediaCtrlPlayerControls # # EVT_MEDIA_LOADED = 10329 # # EVT_MEDIA_STOP = 10330 # # EVT_MEDIA_FINISHED = 10328 # # EVT_MEDIA_STATECHANGED = 10325 # # EVT_MEDIA_PLAY = 10326 # # EVT_MEDIA_PAUSE = 10327 # Event {Wx::MediaCtrl} uses. # # ### Events using this class # # The following event-handler methods redirect the events to member method or handler blocks for {Wx::MediaEvent} events. # Event handler methods: # # - {Wx::EvtHandler#evt_media_loaded}(id, meth = nil, &block): Sent when a media has loaded enough data that it can start playing. Processes a {Wx::EVT_MEDIA_LOADED} event type. # # - {Wx::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 {Wx::EVT_MEDIA_STOP} event type. # # - {Wx::EvtHandler#evt_media_finished}(id, meth = nil, &block): Sent when a media has finished playing in a {Wx::MediaCtrl}. Processes a {Wx::EVT_MEDIA_FINISHED} event type. # # - {Wx::EvtHandler#evt_media_statechanged}(id, meth = nil, &block): Sent when a media has switched its state (from any media state). Processes a {Wx::EVT_MEDIA_STATECHANGED} event type. # # - {Wx::EvtHandler#evt_media_play}(id, meth = nil, &block): Sent when a media has switched to the {Wx::MediaState::MEDIASTATE_PLAYING} state. Processes a {Wx::EVT_MEDIA_PLAY} event type. # # - {Wx::EvtHandler#evt_media_pause}(id, meth = nil, &block): Sent when a media has switched to the {Wx::MediaState::MEDIASTATE_PAUSED} state. Processes a {Wx::EVT_MEDIA_PAUSE} event type. # # Category: {Wx::Events} # # @wxrb_require USE_MEDIACTRL class MediaEvent < NotifyEvent # Default ctor. # @param commandType [Wx::Notebook::EventType] # @param winid [Integer] # @return [Wx::MediaEvent] def initialize(commandType=Wx::EVT_NULL, winid=0) end end # MediaEvent end