Class: Wx::MediaCtrl

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/classes/mediactrl.rb

Overview

Extend with a nicer interface to get_state

Instance Method Summary collapse

Instance Method Details

#is_pausedObject

Returns true if the media is currently paused, else false



35
36
37
# File 'lib/wx/classes/mediactrl.rb', line 35

def is_paused
  get_state == Wx::MEDIASTATE_PAUSED
end

#is_playingObject

Returns true if the media is currently playing, else false



39
40
41
# File 'lib/wx/classes/mediactrl.rb', line 39

def is_playing
  get_state == Wx::MEDIASTATE_PLAYING
end

#is_stoppedObject

Returns true if the media is currently stopped, else false



43
44
45
# File 'lib/wx/classes/mediactrl.rb', line 43

def is_stopped
  get_state == Wx::MEDIASTATE_STOPPED
end