EventObject.h 520 B

1234567891011121314151617181920212223242526
  1. /*
  2. * This is the source code of tgnet library v. 1.1
  3. * It is licensed under GNU GPL v. 2 or later.
  4. * You should have received a copy of the license in this archive (see LICENSE).
  5. *
  6. * Copyright Nikolai Kudashov, 2015-2018.
  7. */
  8. #ifndef EVENTOBJECT_H
  9. #define EVENTOBJECT_H
  10. #include <stdint.h>
  11. #include "Defines.h"
  12. class EventObject {
  13. public:
  14. EventObject(void *object, EventObjectType type);
  15. void onEvent(uint32_t events);
  16. int64_t time;
  17. void *eventObject;
  18. EventObjectType eventType;
  19. };
  20. #endif