namespace Msp {
namespace GLtk {
-Entry::Entry(const string &t):
- text(),
- multiline(false),
- edit_width(10),
- edit_height(1),
- edit_pos(0),
- first_row(0),
- visible_rows(1),
- text_part(0),
- slider(0),
- got_key_press(false),
- cursor_blink(true),
- selection_active(false),
- selection_pos(0)
+Entry::Entry(const string &t)
{
input_type = INPUT_TEXT;
set_text(t);
if(!style)
{
- text_part = 0;
+ text_part = nullptr;
return;
}
if(!multiline || !text_part)
return;
- visible_rows = text.get_visible_lines(*text_part, geom, 0);
+ visible_rows = text.get_visible_lines(*text_part, geom, nullptr);
unsigned row, col;
text.offset_to_coords(edit_pos, row, col);