MausEreignis.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef MausEreignis_H
  2. #define MausEreignis_H
  3. #include "Betriebssystem.h"
  4. namespace Framework
  5. {
  6. const int M_Links = 0;
  7. const int M_Mitte = 1;
  8. const int M_Rechts = 2;
  9. const int ME_PLinks = 0;
  10. const int ME_PRechts = 1;
  11. const int ME_PMitte = 2;
  12. const int ME_RLinks = 3;
  13. const int ME_RRechts = 4;
  14. const int ME_RMitte = 5;
  15. const int ME_DKLinks = 6;
  16. const int ME_DKRechts = 7;
  17. const int ME_DKMitte = 8;
  18. const int ME_Betritt = 9;
  19. const int ME_Verlässt = 10;
  20. const int ME_Bewegung = 11;
  21. const int ME_UScroll = 12;
  22. const int ME_DScroll = 13;
  23. const int ME_RScroll = 14;
  24. const int ME_LScroll = 15;
  25. // Speichert eine bestimmte Mauseingabe des Nutzers
  26. struct MausEreignis
  27. {
  28. // Art der Eingabe
  29. int id;
  30. // X koordinate auf dem Bildschirm relativ zur Zeichnungposition
  31. int mx;
  32. // Y Koordinate auf dem Bildschirm relativ zur Zeichnungposition
  33. int my;
  34. // X Koordinate auf dem Bildschirm zur linken oberen Ecke
  35. int rmx;
  36. // Y Koordinate auf dem Bildschirm zur linken oberen Ecke
  37. int rmy;
  38. // Speichert, ob die Eingabe bereits verarbeitet wurde
  39. bool verarbeitet;
  40. };
  41. // Standart Maus Ereinis Rückruffunktion
  42. // param: Ein beliebiger Parameter
  43. // obj: Die Zeichnung, welches diese Funktion aufruft
  44. // te: Das Mausereignis, welches verarbeitet werden soll
  45. // return: (true), wenn aufrufende Zeichnung das Ereignis weiterverarbeiten soll. (false) sonnst.
  46. // Gibt immer (true) zurück
  47. __declspec( dllexport ) bool _ret1ME( void *param, void *obj, MausEreignis me );
  48. }
  49. #endif