17 vScrollbar(guiSystem->addScrollbar(w-15, 0, 15, h)),
18 hScrollbar(guiSystem->addScrollbar(0, h-15, w, 15)),
48 textPos =
vScrollbar->getSliderPosition() * (
h - textArea);
65 char character =
static_cast<char>(unichar);
67 str.push_back(character);
133 float sliderLengh =
h / textArea;
153 for(lineBegin =
cursorPos-1; lineBegin > 0 &&
text[lineBegin] !=
'\n'; lineBegin--) {}
154 if(
text[lineBegin] ==
'\n')
157 std::string line =
text.substr(lineBegin,
cursorPos - lineBegin);
178 for(
unsigned int i = 0; i <
text.length(); i++)