Sha256: acb74b95824b3a998cdf7d88304cbfbbc6003e31c71a5bb7d9e03288906a7cd6
Contents?: true
Size: 765 Bytes
Versions: 4
Compression:
Stored size: 765 Bytes
Contents
# frozen_string_literal: true 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
4 entries across 4 versions & 1 rubygems