cmCursesLabelWidget.h 939 B

123456789101112131415161718192021222324252627282930313233
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCursesLabelWidget_h
  4. #define cmCursesLabelWidget_h
  5. #include <cmConfigure.h>
  6. #include "cmCursesStandardIncludes.h"
  7. #include "cmCursesWidget.h"
  8. #include <string>
  9. class cmCursesMainForm;
  10. class cmCursesLabelWidget : public cmCursesWidget
  11. {
  12. public:
  13. cmCursesLabelWidget(int width, int height, int left, int top,
  14. const std::string& name);
  15. ~cmCursesLabelWidget() CM_OVERRIDE;
  16. // Description:
  17. // Handle user input. Called by the container of this widget
  18. // when this widget has focus. Returns true if the input was
  19. // handled
  20. bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
  21. protected:
  22. cmCursesLabelWidget(const cmCursesLabelWidget& from);
  23. void operator=(const cmCursesLabelWidget&);
  24. };
  25. #endif // cmCursesLabelWidget_h