# File lib/rabbit/renderer/display/spotlight.rb, line 5 def initialize(canvas) super init_spotlight end
# File lib/rabbit/renderer/display/spotlight.rb, line 10 def attach_to(window, container=nil) super spotlight_action.active = false end
# File lib/rabbit/renderer/display/spotlight.rb, line 15 def toggle_spotlight if spotlighting? grab x, y, mask = pointer @spotlight_center_x ||= x @spotlight_center_y ||= y else ungrab @spotlight_center_x = nil @spotlight_center_y = nil end queue_draw end
[Validate]
Generated with the Darkfish Rdoc Generator 2.