Class: Rubydraw::Events::FocusLoss
- Inherits:
-
FocusEvent
- Object
- Event
- FocusEvent
- Rubydraw::Events::FocusLoss
- Defined in:
- lib/rubydraw/events.rb
Overview
Created when the window loses focus.
Class Method Summary collapse
-
.matches?(sdl_event) ⇒ Boolean
Redefine Event#matches? because both this class and Rubydraw::Events::FocuGain use SDL::ActiveEvent.
- .wants_to_match? ⇒ Boolean
Methods inherited from FocusEvent
Methods inherited from Event
#event?, from_sdl_event, matching_sdl_type
Class Method Details
.matches?(sdl_event) ⇒ Boolean
Redefine Event#matches? because both this class and Rubydraw::Events::FocuGain use SDL::ActiveEvent
233 234 235 236 237 238 239 |
# File 'lib/rubydraw/events.rb', line 233 def self.matches?(sdl_event) result = false if super(sdl_event) result = sdl_event.gain == 0 end result end |
.wants_to_match? ⇒ Boolean
227 228 229 |
# File 'lib/rubydraw/events.rb', line 227 def self.wants_to_match? true end |