Sha256: acf56046006da8e3a3acd2b0b93e3ed0d3518e0243640b6c67a45ac00ee7ff27

Contents?: true

Size: 735 Bytes

Versions: 8

Compression:

Stored size: 735 Bytes

Contents

class Shoes
  module Swt
    module Common
      # Container methods
      module Container
        # Adds a painter to be executed when this object needs to be
        # repainted. Delegates to `@real`
        #
        # @param [Painter] painter The code to be executed on paint
        def add_paint_listener(painter)
          @real.add_paint_listener painter
        end

        def remove_paint_listener(painter)
          @real.remove_paint_listener painter if painter
        end

        def add_listener(event, listener)
          @real.add_listener event, listener
        end

        def remove_listener(event, listener)
          @real.remove_listener event, listener if listener
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
shoes-swt-4.0.0.pre8 lib/shoes/swt/common/container.rb
shoes-swt-4.0.0.pre7 lib/shoes/swt/common/container.rb
shoes-swt-4.0.0.pre6 lib/shoes/swt/common/container.rb
shoes-swt-4.0.0.pre5 lib/shoes/swt/common/container.rb
shoes-swt-4.0.0.pre4 lib/shoes/swt/common/container.rb
shoes-swt-4.0.0.pre3 lib/shoes/swt/common/container.rb
shoes-swt-4.0.0.pre2 lib/shoes/swt/common/container.rb
shoes-4.0.0.pre1 lib/shoes/swt/common/container.rb