Class: UI::MouseSectionEvents
- Inherits:
-
Object
- Object
- UI::MouseSectionEvents
- Defined in:
- lib/ektoplayer/ui.rb
Instance Method Summary collapse
- #add(mouse_section_event) ⇒ Object
- #clear ⇒ Object
-
#initialize ⇒ MouseSectionEvents
constructor
A new instance of MouseSectionEvents.
- #trigger(mevent) ⇒ Object
Constructor Details
#initialize ⇒ MouseSectionEvents
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 |
#clear ⇒ Object
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 |