Sha256: dc0ddd5f408452848cef498da1e16de6444f5c2484ef21f0900bd1025d6c7f88

Contents?: true

Size: 533 Bytes

Versions: 43

Compression:

Stored size: 533 Bytes

Contents

require "rabbit/menu"

module Rabbit
  module Renderer
    module Display
      module Menu
        private
        def init_menu
          @menu = Rabbit::Menu.new(@canvas.actions)
        end

        def update_menu
          @menu.update_menu(@canvas)
        end

        def popup_menu
          @menu.popup(0, Gtk.current_event_time)
        end

        def attach_menu(window)
          @menu.attach(window)
        end

        def detach_menu(window)
          @menu.detach(window)
        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/menu.rb
rabbit-3.0.2 lib/rabbit/renderer/display/menu.rb
rabbit-3.0.1 lib/rabbit/renderer/display/menu.rb
rabbit-3.0.0 lib/rabbit/renderer/display/menu.rb
rabbit-2.2.1 lib/rabbit/renderer/display/menu.rb
rabbit-2.2.0 lib/rabbit/renderer/display/menu.rb
rabbit-2.1.9 lib/rabbit/renderer/display/menu.rb
rabbit-2.1.8 lib/rabbit/renderer/display/menu.rb
rabbit-2.1.7 lib/rabbit/renderer/display/menu.rb
rabbit-2.1.6 lib/rabbit/renderer/display/menu.rb
rabbit-2.1.5 lib/rabbit/renderer/display/menu.rb
rabbit-2.1.4 lib/rabbit/renderer/display/menu.rb
rabbit-2.1.3 lib/rabbit/renderer/display/menu.rb
rabbit-2.1.2 lib/rabbit/renderer/display/menu.rb
rabbit-2.1.1 lib/rabbit/renderer/display/menu.rb
rabbit-2.1.0 lib/rabbit/renderer/display/menu.rb
rabbit-2.0.9 lib/rabbit/renderer/display/menu.rb
rabbit-2.0.8 lib/rabbit/renderer/display/menu.rb
rabbit-2.0.7 lib/rabbit/renderer/display/menu.rb
rabbit-2.0.6 lib/rabbit/renderer/display/menu.rb