Sha256: 034522388bd6541e784f1cc7ac46cf5ce576dcababc0812408c744085c0f618d
Contents?: true
Size: 794 Bytes
Versions: 150
Compression:
Stored size: 794 Bytes
Contents
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
Version data entries
150 entries across 150 versions & 2 rubygems