module Rabbit::Renderer::Display::Cursor

Public Class Methods

new(*args, &block) click to toggle source
Calls superclass method
# File lib/rabbit/renderer/display/cursor.rb, line 7
def initialize(*args, &block)
  super
  init_cursor
end

Private Instance Methods

init_cursor() click to toggle source
# File lib/rabbit/renderer/display/cursor.rb, line 13
def init_cursor
  @cursor_manager = CursorManager.new
end
keep_cursor(name) click to toggle source
# File lib/rabbit/renderer/display/cursor.rb, line 17
def keep_cursor(name)
  @cursor_manager.keep(name)
end
restore_cursor(name) click to toggle source
# File lib/rabbit/renderer/display/cursor.rb, line 21
def restore_cursor(name)
  @cursor_manager.restore(@drawable, name)
end
update_cursor(cursor_type, update_current_cursor=false) click to toggle source
# File lib/rabbit/renderer/display/cursor.rb, line 25
def update_cursor(cursor_type, update_current_cursor=false)
  @cursor_manager.current = cursor_type if update_current_cursor
  cursor_type = :pencil if @graffiti_mode
  @cursor_manager.update(@drawable, cursor_type)
end