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.

55 lines
1.3 KiB

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