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

Method Render

Source/CursesDialog/cmCursesLongMessageForm.cxx:118–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void cmCursesLongMessageForm::Render(int /*left*/, int /*top*/, int /*width*/,
119 int /*height*/)
120{
121 int x;
122 int y;
123 getmaxyx(stdscr, y, x);
124
125 if (this->Form) {
126 unpost_form(this->Form);
127 free_form(this->Form);
128 this->Form = nullptr;
129 }
130
131 if (this->Fields[0]) {
132 free_field(this->Fields[0]);
133 this->Fields[0] = nullptr;
134 }
135
136 this->Fields[0] = new_field(y - 6, x - 2, 1, 1, 0, 0);
137
138 field_opts_off(this->Fields[0], O_STATIC);
139
140 this->Form = new_form(this->Fields);
141 post_form(this->Form);
142
143 form_driver(this->Form, REQ_BEG_FIELD);
144 this->DrawMessage(this->Messages.c_str());
145
146 this->UpdateStatusBar();
147 touchwin(stdscr);
148 refresh();
149}
150
151void cmCursesLongMessageForm::DrawMessage(char const* msg) const
152{

Callers

nothing calls this directly

Calls 13

DrawMessageMethod · 0.95
UpdateStatusBarMethod · 0.95
unpost_formFunction · 0.85
free_formFunction · 0.85
free_fieldFunction · 0.85
new_fieldFunction · 0.85
field_opts_offFunction · 0.85
new_formFunction · 0.85
post_formFunction · 0.85
form_driverFunction · 0.85
touchwinFunction · 0.85
refreshFunction · 0.85

Tested by

no test coverage detected