# File lib/rabbit/renderer/display/cursor.rb, line 7 def initialize(*args, &block) super init_cursor end
# File lib/rabbit/renderer/display/cursor.rb, line 13 def init_cursor @cursor_manager = CursorManager.new end
# File lib/rabbit/renderer/display/cursor.rb, line 17 def keep_cursor(name) @cursor_manager.keep(name) end
# File lib/rabbit/renderer/display/cursor.rb, line 21 def restore_cursor(name) @cursor_manager.restore(@drawable, name) end
# 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