Sha256: bb02100c3f8eb272e772ca0304cf22ff3d31445e1f97c6040e4cd968dc202632

Contents?: true

Size: 592 Bytes

Versions: 4

Compression:

Stored size: 592 Bytes

Contents

require 'rabbit/renderer/engine'
require 'rabbit/renderer/display/drawing-area-primitive'

module Rabbit
  module Renderer
    module Display
      class DrawingAreaViewOnly
        include Renderer::Engine.renderer_module
        include DrawingAreaPrimitive

        def attach_to(window)
          super
          @window.add(@area)# if @window # need?
        end

        def detach
          @window.remove(@area)# if @window # need?
          super
        end

        private
        def init_color
          super
          init_engine_color
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rabbit-0.9.1 lib/rabbit/renderer/display/drawing-area-view-only.rb
rabbit-0.9.0 lib/rabbit/renderer/display/drawing-area-view-only.rb
rabbit-0.6.4 lib/rabbit/renderer/display/drawing-area-view-only.rb
rabbit-0.6.3 lib/rabbit/renderer/display/drawing-area-view-only.rb