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.

55 lines
1.1 KiB

  1. //
  2. // mxToolKit (c) 1999 by Mete Ciragan
  3. //
  4. // file: mxTab.h
  5. // implementation: all
  6. // last modified: Apr 18 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_MXTAB
  15. #define INCLUDED_MXTAB
  16. #ifndef INCLUDED_MXWIDGET
  17. #include "mxtk/mxWidget.h"
  18. #endif
  19. class mxWindow;
  20. class mxTab_i;
  21. class mxTab : public mxWidget
  22. {
  23. mxTab_i *d_this;
  24. public:
  25. // CREATORS
  26. mxTab (mxWindow *parent, int x, int y, int w, int h, int id = 0);
  27. virtual ~mxTab ();
  28. // MANIPULATORS
  29. void add (mxWidget *widget, const char *text);
  30. void remove (int index);
  31. void select (int index);
  32. // ACCESSORS
  33. int getSelectedIndex () const;
  34. private:
  35. // NOT IMPLEMENTED
  36. mxTab (const mxTab&);
  37. mxTab& operator= (const mxTab&);
  38. };
  39. #endif // INCLUDED_MXTAB