Class: UI::MouseSectionEvents

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

Instance Method Summary collapse

Constructor Details

#initializeMouseSectionEvents

Returns a new instance of MouseSectionEvents.



260
261
262
# File 'lib/ektoplayer/ui.rb', line 260

def initialize
   @events = []
end

Instance Method Details

#add(mouse_section_event) ⇒ Object



268
269
270
# File 'lib/ektoplayer/ui.rb', line 268

def add(mouse_section_event)
   @events << mouse_section_event
end

#clearObject



264
265
266
# File 'lib/ektoplayer/ui.rb', line 264

def clear
   @events.clear
end

#trigger(mevent) ⇒ Object



272
273
274
# File 'lib/ektoplayer/ui.rb', line 272

def trigger(mevent)
   @events.each { |e| e.trigger(mevent) }
end