cmCursesLabelWidget.h 892 B

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