Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Source/CursesDialog/cmCursesLabelWidget.h
4998 views
1
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
file LICENSE.rst or https://cmake.org/licensing for details. */
3
#pragma once
4
5
#include "cmConfigure.h" // IWYU pragma: keep
6
7
#include <string>
8
9
#include "cmCursesStandardIncludes.h"
10
#include "cmCursesWidget.h"
11
12
class cmCursesLabelWidget : public cmCursesWidget
13
{
14
public:
15
cmCursesLabelWidget(int width, int height, int left, int top,
16
std::string const& name);
17
~cmCursesLabelWidget() override;
18
19
cmCursesLabelWidget(cmCursesLabelWidget const&) = delete;
20
cmCursesLabelWidget& operator=(cmCursesLabelWidget const&) = delete;
21
22
// Description:
23
// Handle user input. Called by the container of this widget
24
// when this widget has focus. Returns true if the input was
25
// handled
26
bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) override;
27
};
28
29