Class: UI::MouseEvents

Inherits:
Events
  • Object
show all
Defined in:
lib/ektoplayer/ui.rb

Instance Method Summary collapse

Methods inherited from Events

#auto_create, #initialize, #no_auto_create, #on_all, #on_multi, #register

Constructor Details

This class inherits a constructor from Events

Instance Method Details

#on(mouse_event, &block) ⇒ Object



249
250
251
252
# File 'lib/ektoplayer/ui.rb', line 249

def on(mouse_event, &block)
   return on_all(&block) if mouse_event == ICurses::ALL_MOUSE_EVENTS
   super(mouse_event, &block)
end

#trigger(mouse_event) ⇒ Object



254
255
256
# File 'lib/ektoplayer/ui.rb', line 254

def trigger(mouse_event)
   super(mouse_event.bstate, mouse_event)
end