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.

74 lines
1.7 KiB

  1. //
  2. // mxToolKit (c) 1999 by Mete Ciragan
  3. //
  4. // file: mxWindow.h
  5. // implementation: all
  6. // last modified: Mar 14 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_MXWINDOW
  15. #define INCLUDED_MXWINDOW
  16. #ifndef INCLUDED_MXWIDGET
  17. #include "mxtk/mxWidget.h"
  18. #endif
  19. #ifndef INCLUDED_MXEVENT
  20. #include "mxtk/mxEvent.h"
  21. #endif
  22. class mxMenuBar;
  23. class mxWindow_i;
  24. class mxWindow : public mxWidget
  25. {
  26. mxWindow_i *d_this;
  27. public:
  28. // ENUMS
  29. enum { Normal, Popup, Dialog, ModalDialog };
  30. // CREATORS
  31. mxWindow (mxWindow *parent, int x, int y, int w, int h, const char *label = 0, int style = 0);
  32. virtual ~mxWindow ();
  33. // MANIPULATORS
  34. virtual int handleEvent (mxEvent *event);
  35. /*
  36. virtual int handleActionEvent (int action);
  37. virtual void handleSizeEvent (int w, int h);
  38. virtual void handleMouseEvent (int event, int x, int y, int button);
  39. virtual void handleKeyEvent (int event, int key);
  40. virtual void handleTimerEvent ();
  41. virtual void handleIdleEvent ();
  42. */
  43. virtual void redraw ();
  44. virtual bool PaintBackground( void ) { return true; };
  45. // Called at exit
  46. virtual bool Closing( void ) { return true; };
  47. void setTimer (int milliSeconds);
  48. void setMenuBar (mxMenuBar *menuBar);
  49. private:
  50. // NOT IMPLEMENTED
  51. mxWindow (const mxWindow&);
  52. mxWindow& operator= (const mxWindow&);
  53. };
  54. #endif // INCLUDED_MXWINDOW