module Rabbit::Renderer::Display::Cursor
Public Class Methods
Source
# File lib/rabbit/renderer/display/cursor.rb, line 23 def initialize(*args, &block) super init_cursor end
Calls superclass method
Private Instance Methods
Source
# File lib/rabbit/renderer/display/cursor.rb, line 29 def init_cursor @cursor_manager = CursorManager.new end
Source
# File lib/rabbit/renderer/display/cursor.rb, line 33 def keep_cursor(name) @cursor_manager.keep(name) end
Source
# File lib/rabbit/renderer/display/cursor.rb, line 37 def restore_cursor(name) @cursor_manager.restore(@surface, name) end
Source
# File lib/rabbit/renderer/display/cursor.rb, line 41 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(@surface, cursor_type) end