Class: Gdk::EventFocus

Inherits:
Object
  • Object
show all
Defined in:
lib/gdk3/event.rb

Instance Method Summary collapse

Instance Method Details

#in=(value) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/gdk3/event.rb', line 33

def in=(value)
  if value == true
    value = 1
  elsif !value
    value = 0
  end
  self.in_raw = value
end

#in?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/gdk3/event.rb', line 44

def in?
  not in_raw.zero?
end

#in_raw=Object



32
# File 'lib/gdk3/event.rb', line 32

alias_method :in_raw=, :in=