Class/Module Index [+]

Quicksearch

Rabbit::Renderer::Display::Spotlight

Public Class Methods

new(canvas) click to toggle source
# File lib/rabbit/renderer/display/spotlight.rb, line 5
def initialize(canvas)
  super
  init_spotlight
end

Public Instance Methods

attach_to(window, container=nil) click to toggle source
# File lib/rabbit/renderer/display/spotlight.rb, line 10
def attach_to(window, container=nil)
  super
  spotlight_action.active = false
end
toggle_spotlight() click to toggle source
# 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.