Class: XlibObj::Extension::Core

Inherits:
XlibObj::Extension show all
Defined in:
lib/extension/core.rb,
lib/extension/core/event.rb

Defined Under Namespace

Classes: Event

Instance Attribute Summary

Attributes inherited from XlibObj::Extension

#display, #name

Instance Method Summary collapse

Methods inherited from XlibObj::Extension

#deselect_mask, #error_range, #event, #event_range, for, #handles_event_mask?, #initialize, #select_mask

Constructor Details

This class inherits a constructor from XlibObj::Extension

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/extension/core.rb', line 3

def exists?
  true
end

#first_errorObject



19
20
21
# File 'lib/extension/core.rb', line 19

def first_error
  0
end

#first_eventObject



11
12
13
# File 'lib/extension/core.rb', line 11

def first_event
  2
end

#last_errorObject



23
24
25
# File 'lib/extension/core.rb', line 23

def last_error
  127
end

#last_eventObject



15
16
17
# File 'lib/extension/core.rb', line 15

def last_event
  Xlib::LASTEvent-1
end

#opcodeObject



7
8
9
# File 'lib/extension/core.rb', line 7

def opcode
  0..127
end