Counter Strike : Global Offensive Source Code
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.

81 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. DropFile
  46. };
  47. enum { MouseLeftButton = 1, MouseRightButton = 2, MouseMiddleButton = 4};
  48. enum { KeyCtrl = 1, KeyShift = 2 };
  49. enum { RightClicked = 1, DoubleClicked = 2 };
  50. // DATA
  51. int event;
  52. mxWidget *widget;
  53. int action;
  54. int width, height;
  55. int x, y, buttons;
  56. int key;
  57. int modifiers;
  58. int flags;
  59. char szChars[MAX_PATH];
  60. // NO CREATORS
  61. mxEvent () : event (0), widget (0), action (0), width (0), height (0), x (0), y (0), buttons (0), key (0), modifiers (0), flags (0) {}
  62. virtual ~mxEvent () {}
  63. private:
  64. // NOT IMPLEMENTED
  65. mxEvent (const mxEvent&);
  66. mxEvent& operator= (const mxEvent&);
  67. };
  68. #endif // INCLUDED_MXEVENT