Class: Wx::MediaCtrl
- Inherits:
-
Object
- Object
- Wx::MediaCtrl
- Defined in:
- lib/wx/classes/mediactrl.rb
Overview
Extend with a nicer interface to get_state
Instance Method Summary collapse
-
#is_paused ⇒ Object
Returns true if the media is currently paused, else false.
-
#is_playing ⇒ Object
Returns true if the media is currently playing, else false.
-
#is_stopped ⇒ Object
Returns true if the media is currently stopped, else false.
Instance Method Details
#is_paused ⇒ Object
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_playing ⇒ Object
Returns true if the media is currently playing, else false
39 40 41 |
# File 'lib/wx/classes/mediactrl.rb', line 39 def get_state == Wx::MEDIASTATE_PLAYING end |
#is_stopped ⇒ Object
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 |