Class: FakeEvent
- Inherits:
-
Object
- Object
- FakeEvent
- Defined in:
- plugins/application/features/support/fake_event.rb
Instance Method Summary (collapse)
-
- (FakeEvent) initialize(event_type, widget, options = {})
constructor
A new instance of FakeEvent.
Constructor Details
- (FakeEvent) initialize(event_type, widget, options = {})
A new instance of FakeEvent
4 5 6 7 8 9 10 11 12 13 |
# File 'plugins/application/features/support/fake_event.rb', line 4 def initialize(event_type, , = {}) untyped_event = Swt::Widgets::Event.new.tap do |e| e.display = Swt.display e. = e.x = [:x] || 0 e.y = [:y] || 0 e. = [:button] if [:button] end .notify_listeners(event_type, untyped_event) end |