Codebase list ruby-fxruby / 3d5a4e82-a43d-42a1-b45b-3cdbad1db042/upstream/1.6.45+git20221125.1.7d76b2a rdoc-sources / FXObject.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)

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

module Fox
  #
  # FXObject is the base class for all objects in FOX; in order to receive
  # messages from the user interface, your class must derive from FXObject.
  # The FXObject class also provides serialization facilities, with which
  # you can save and restore the object's state.  If you've subclassed
  # from FXObject, you can save your subclasses' state by overloading the
  # save() and load() functions and use the stream API to serialize its
  # member data.
  #
  class FXObject
    #
    # Handle a message sent from _sender_, with given _selector_
    # and message _data_.
    #
    def handle(sender, selector, data); end

    #
    # Save object to stream.
    #
    def save(stream) ; end

    #
    # Load object from _stream_.
    #
    def load(stream) ; end
  end
end