1
0

findobjectcb.h 827 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef __FINDOBJECTCALLBACK_H
  2. #define __FINDOBJECTCALLBACK_H
  3. #include <bfc/dispatch.h>
  4. #include <bfc/common.h>
  5. class ifc_window;
  6. class FindObjectCallback : public Dispatchable {
  7. public:
  8. int findobjectcb_matchObject(ifc_window *object);
  9. enum {
  10. FINDOBJECTCB_MATCHOBJECT = 0,
  11. };
  12. };
  13. inline int FindObjectCallback::findobjectcb_matchObject(ifc_window *object) {
  14. return _call(FINDOBJECTCB_MATCHOBJECT, 0, object);
  15. }
  16. class _FindObjectCallback : public FindObjectCallback {
  17. public:
  18. virtual int findobjectcb_matchObject(ifc_window *object)=0;
  19. protected:
  20. RECVS_DISPATCH;
  21. };
  22. class FindObjectCallbackI : public _FindObjectCallback {
  23. public:
  24. FindObjectCallbackI() {}
  25. virtual ~FindObjectCallbackI() {}
  26. virtual int findobjectcb_matchObject(ifc_window *object)=0;
  27. };
  28. #endif