#include <ent_cb.hxx>


Public Member Functions | |
| entity_callback () | |
C++ constructor, creating an entity_callback. | |
| virtual void | execute (entity_event_type en_type, ENTITY *en) |
| Executes the callback by updating the rendering appropriate to the specified entity and event. | |
| toolkit_callback * | next () |
| Specifies the next callback command. | |
| toolkit_callback * | prev () |
| Specifies the previous callback command. | |
| virtual | ~entity_callback () |
C++ destructor, deleting an entity_callback. | |
Role: C++ callbacks are similar to Scheme hooks. They are developer-defined functions that the system calls at predefined times.
This class is a base class from which other classes are derived, which receives notification of changes to entities. To use this class, derive a new class from entity_callback, and overload the virtual execute method. To activate the callback, add it to the entity callback list by calling get_entity_callback_list.
execute method is passed a pointer to the ENTITY in question and an entity_event_type enumerator specifying the type of operation being performed. The method returns no value. | entity_callback::entity_callback | ( | ) | [inline] |
C++ constructor, creating an entity_callback.
| virtual entity_callback::~entity_callback | ( | ) | [inline, virtual] |
C++ destructor, deleting an entity_callback.
| virtual void entity_callback::execute | ( | entity_event_type | en_type, | |
| ENTITY * | en | |||
| ) | [virtual] |
Executes the callback by updating the rendering appropriate to the specified entity and event.
Role: The base class implementation effectively does nothing.
| en_type | the event that has changed the entity directly or through its part. | |
| ent | the entity whose rendering is to be updated. |
Reimplemented in scm_pick_manager.
| toolkit_callback* toolkit_callback::next | ( | ) | [inline, inherited] |
Specifies the next callback command.
| toolkit_callback* toolkit_callback::prev | ( | ) | [inline, inherited] |
Specifies the previous callback command.