Sha256: 9a3db41df4e48b0dd321cd9965d08ace26218fbb15b2c9f6dee1d43cdd462a54

Contents?: true

Size: 929 Bytes

Versions: 11

Compression:

Stored size: 929 Bytes

Contents

require 'rabbit/info-window'

module Rabbit
  module Renderer
    module Display
      module Info
        def initialize(canvas)
          super
          @info_window = InfoWindow.new(@canvas)
        end

        def toggle_info_window
          if @info_window.showing?
            hide_info_window
          else
            show_info_window
          end
        end

        def show_info_window
          @info_window.show(width, height)
        end

        def hide_info_window
          @info_window.hide
        end

        def post_parse
          super
          @info_window.parsed
        end

        def post_move(old_index, index)
          super
          @info_window.moved(index)
        end

        def index_mode_on
          super
          @info_window.index_mode_on
        end

        def index_mode_off
          super
          @info_window.index_mode_off
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rabbit-3.0.0 lib/rabbit/renderer/display/info.rb
rabbit-2.2.1 lib/rabbit/renderer/display/info.rb
rabbit-2.2.0 lib/rabbit/renderer/display/info.rb
rabbit-2.1.9 lib/rabbit/renderer/display/info.rb
rabbit-2.1.8 lib/rabbit/renderer/display/info.rb
rabbit-2.1.7 lib/rabbit/renderer/display/info.rb
rabbit-2.1.6 lib/rabbit/renderer/display/info.rb
rabbit-2.1.5 lib/rabbit/renderer/display/info.rb
rabbit-2.1.4 lib/rabbit/renderer/display/info.rb
rabbit-2.1.3 lib/rabbit/renderer/display/info.rb
rabbit-2.1.2 lib/rabbit/renderer/display/info.rb