Class: Rubydraw::Events::FocusEvent

Inherits:
Event show all
Defined in:
lib/rubydraw/events.rb

Overview

Created either when the window gains or loses focus. This is the parent class for Rubydraw::Events::FocusGain and Rubydraw::Events::FocusLose.

Direct Known Subclasses

FocusGain, FocusLoss

Class Method Summary collapse

Methods inherited from Event

#event?, from_sdl_event, matches?

Class Method Details

.matching_sdl_typeObject



221
222
223
# File 'lib/rubydraw/events.rb', line 221

def self.matching_sdl_type
  SDL::ACTIVEEVENT
end

.wants_to_match?Boolean

Returns:

  • (Boolean)


217
218
219
# File 'lib/rubydraw/events.rb', line 217

def self.wants_to_match?
  not self == FocusEvent
end