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.

54 lines
1.2 KiB

  1. //
  2. // mxToolKit (c) 1999 by Mete Ciragan
  3. //
  4. // file: mxMenu.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_MXMENU
  15. #define INCLUDED_MXMENU
  16. #ifndef INCLUDED_MXWIDGET
  17. #include "mxtk/mxWidget.h"
  18. #endif
  19. class mxMenu_i;
  20. class mxMenu : public mxWidget
  21. {
  22. mxMenu_i *d_this;
  23. public:
  24. // CREATORS
  25. mxMenu ();
  26. virtual ~mxMenu ();
  27. // MANIPULATORS
  28. void add (const char *item, int id);
  29. void addMenu (const char *item, mxMenu *menu);
  30. void addSeparator ();
  31. void setEnabled (int id, bool b);
  32. void setChecked (int id, bool b);
  33. // ACCESSORS
  34. bool isEnabled (int id) const;
  35. bool isChecked (int id) const;
  36. private:
  37. // NOT IMPLEMENTED
  38. mxMenu (const mxMenu&);
  39. mxMenu& operator= (const mxMenu&);
  40. };
  41. #endif // INCLUDED_MXMENU