Minor change in event.h.

This commit is contained in:
David Capello 2011-01-27 18:38:27 -03:00
parent 85203205b8
commit 40df2e1d73

View File

@ -12,20 +12,18 @@ class Component;
// Base class for every kind of event. // Base class for every kind of event.
class Event class Event
{ {
// The component which generates the event.
Component* m_source;
public: public:
// Creates a new event specifying that it was generated from the // Creates a new event specifying that it was generated from the
// source component. // source component.
Event(Component* source); Event(Component* source);
virtual ~Event(); virtual ~Event();
// Returns the component which generated the event. // Returns the component which generated the event.
Component* getSource(); Component* getSource();
private:
// The component which generates the event.
Component* m_source;
}; };
#endif #endif