MCPcopy Create free account
hub / github.com/Kitware/CMake / cmCursesBoolWidget

Method cmCursesBoolWidget

Source/CursesDialog/cmCursesBoolWidget.cxx:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "cmStateTypes.h"
10
11cmCursesBoolWidget::cmCursesBoolWidget(int width, int height, int left,
12 int top)
13 : cmCursesWidget(width, height, left, top)
14{
15 this->Type = cmStateEnums::BOOL;
16 if (!cmCursesColor::HasColors()) {
17 set_field_fore(this->Field, A_NORMAL);
18 set_field_back(this->Field, A_STANDOUT);
19 }
20 field_opts_off(this->Field, O_STATIC);
21 this->SetValueAsBool(false);
22}
23
24bool cmCursesBoolWidget::HandleInput(int& key, cmCursesMainForm* /*fm*/,
25 WINDOW* w)

Callers

nothing calls this directly

Calls 2

SetValueAsBoolMethod · 0.95
field_opts_offFunction · 0.85

Tested by

no test coverage detected