Class/Module Index [+]

Quicksearch

Rabbit::Renderer::Display::HookHandler

Public Class Methods

new(*args, &block) click to toggle source
# File lib/rabbit/renderer/display/hook-handler.rb, line 5
def initialize(*args, &block)
  super
  init_hook_handler
end

Public Instance Methods

add_button_press_hook(hook=Proc.new) click to toggle source
# File lib/rabbit/renderer/display/hook-handler.rb, line 30
def add_button_press_hook(hook=Proc.new)
  @button_press_hook_procs << hook
end
add_button_release_hook(hook=Proc.new) click to toggle source
# File lib/rabbit/renderer/display/hook-handler.rb, line 38
def add_button_release_hook(hook=Proc.new)
  @button_release_hook_procs << hook
end
add_motion_notify_hook(hook=Proc.new) click to toggle source
# File lib/rabbit/renderer/display/hook-handler.rb, line 14
def add_motion_notify_hook(hook=Proc.new)
  @motion_notify_hook_procs << hook
end
add_scroll_hook(hook=Proc.new) click to toggle source
# File lib/rabbit/renderer/display/hook-handler.rb, line 22
def add_scroll_hook(hook=Proc.new)
  @scroll_hook_procs << hook
end
call_hook_procs(procs, *args) click to toggle source
# File lib/rabbit/renderer/display/hook-handler.rb, line 10
def call_hook_procs(procs, *args)
  procs.any? {|proc| proc.call(*args)}
end
clear_button_press_hook() click to toggle source
# File lib/rabbit/renderer/display/hook-handler.rb, line 34
def clear_button_press_hook
  @button_press_hook_procs.clear
end
clear_button_release_hook() click to toggle source
# File lib/rabbit/renderer/display/hook-handler.rb, line 42
def clear_button_release_hook
  @button_release_hook_procs.clear
end
clear_hooks() click to toggle source
# File lib/rabbit/renderer/display/hook-handler.rb, line 46
def clear_hooks
  init_hook_handler
end
clear_motion_notify_hook() click to toggle source
# File lib/rabbit/renderer/display/hook-handler.rb, line 18
def clear_motion_notify_hook
  @motion_notify_hook_procs.clear
end
clear_scroll_hook() click to toggle source
# File lib/rabbit/renderer/display/hook-handler.rb, line 26
def clear_scroll_hook
  @scroll_hook_procs.clear
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.