Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
1.5 KiB

  1. //
  2. // mxToolKit (c) 1999 by Mete Ciragan
  3. //
  4. // file: mxEvent.h
  5. // implementation: all
  6. // last modified: Apr 12 1999, Mete Ciragan
  7. // copyright: The programs and associated files contained in this
  8. // distribution were developed by Mete Ciragan. The programs
  9. // are not in the public domain, but they are freely
  10. // distributable without licensing fees. These programs are
  11. // provided without guarantee or warrantee expressed or
  12. // implied.
  13. //
  14. #ifndef INCLUDED_MXEVENT
  15. #define INCLUDED_MXEVENT
  16. class mxWidget;
  17. class mxEvent
  18. {
  19. public:
  20. // ENUMS
  21. enum {
  22. Action,
  23. Size,
  24. Timer,
  25. Idle,
  26. Show,
  27. Hide,
  28. MouseUp,
  29. MouseDown,
  30. MouseMove,
  31. MouseDrag,
  32. KeyUp,
  33. KeyDown,
  34. MouseWheeled,
  35. Focus,
  36. Activate,
  37. NCMouseUp,
  38. NCMouseDown,
  39. NCMouseMove,
  40. NCMouseDrag,
  41. Close,
  42. PosChanged,
  43. Char,
  44. ParentNotify
  45. };
  46. enum { MouseLeftButton = 1, MouseRightButton = 2, MouseMiddleButton = 4};
  47. enum { KeyCtrl = 1, KeyShift = 2 };
  48. enum { RightClicked = 1, DoubleClicked = 2 };
  49. // DATA
  50. int event;
  51. mxWidget *widget;
  52. int action;
  53. int width, height;
  54. int x, y, buttons;
  55. int key;
  56. int modifiers;
  57. int flags;
  58. // NO CREATORS
  59. mxEvent () : event (0), widget (0), action (0), width (0), height (0), x (0), y (0), buttons (0), key (0), modifiers (0), flags (0) {}
  60. virtual ~mxEvent () {}
  61. private:
  62. // NOT IMPLEMENTED
  63. mxEvent (const mxEvent&);
  64. mxEvent& operator= (const mxEvent&);
  65. };
  66. #endif // INCLUDED_MXEVENT