Codebase list ruby-fxruby / 3d5a4e82-a43d-42a1-b45b-3cdbad1db042/upstream/1.6.45+git20221125.1.7d76b2a rdoc-sources / FXDelegator.rb
3d5a4e82-a43d-42a1-b45b-3cdbad1db042/upstream/1.6.45+git20221125.1.7d76b2a

Tree @3d5a4e82-a43d-42a1-b45b-3cdbad1db042/upstream/1.6.45+git20221125.1.7d76b2a (Download .tar.gz)

FXDelegator.rb @3d5a4e82-a43d-42a1-b45b-3cdbad1db042/upstream/1.6.45+git20221125.1.7d76b2araw · history · blame

module Fox
  #
  # A delegator forwards messages to a delegate object.
  # Delegators are used when you need to multiplex messages
  # toward any number of target objects.
  # For example, many controls may be connected to FXDelegator,
  # instead of directly to the document object.  Changing the
  # delegate in FXDelegator will then reconnect the controls with their
  # new target.
  #
  class FXDelegator < FXObject

    # The object to which all messages are delegated {FXObject}
    attr_accessor :delegate

    #
    # Construct a new delegator
    #
    def initialize(delegate=nil) # :yields: theDelegate
    end
  end
end