Sha256: d3184b234c28cc7a61b2b397c48927544d91c656399d4925827be2b4386cf3f7

Contents?: true

Size: 758 Bytes

Versions: 43

Compression:

Stored size: 758 Bytes

Contents

require "rabbit/cursor-manager"

module Rabbit
  module Renderer
    module Display
      module Cursor
        def initialize(*args, &block)
          super
          init_cursor
        end

        private
        def init_cursor
          @cursor_manager = CursorManager.new
        end

        def keep_cursor(name)
          @cursor_manager.keep(name)
        end

        def restore_cursor(name)
          @cursor_manager.restore(@drawable, name)
        end

        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
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
rabbit-3.0.3 lib/rabbit/renderer/display/cursor.rb
rabbit-3.0.2 lib/rabbit/renderer/display/cursor.rb
rabbit-3.0.1 lib/rabbit/renderer/display/cursor.rb
rabbit-3.0.0 lib/rabbit/renderer/display/cursor.rb
rabbit-2.2.1 lib/rabbit/renderer/display/cursor.rb
rabbit-2.2.0 lib/rabbit/renderer/display/cursor.rb
rabbit-2.1.9 lib/rabbit/renderer/display/cursor.rb
rabbit-2.1.8 lib/rabbit/renderer/display/cursor.rb
rabbit-2.1.7 lib/rabbit/renderer/display/cursor.rb
rabbit-2.1.6 lib/rabbit/renderer/display/cursor.rb
rabbit-2.1.5 lib/rabbit/renderer/display/cursor.rb
rabbit-2.1.4 lib/rabbit/renderer/display/cursor.rb
rabbit-2.1.3 lib/rabbit/renderer/display/cursor.rb
rabbit-2.1.2 lib/rabbit/renderer/display/cursor.rb
rabbit-2.1.1 lib/rabbit/renderer/display/cursor.rb
rabbit-2.1.0 lib/rabbit/renderer/display/cursor.rb
rabbit-2.0.9 lib/rabbit/renderer/display/cursor.rb
rabbit-2.0.8 lib/rabbit/renderer/display/cursor.rb
rabbit-2.0.7 lib/rabbit/renderer/display/cursor.rb
rabbit-2.0.6 lib/rabbit/renderer/display/cursor.rb