28 #ifndef HPL_WIDGET_TEXT_BOX_H 29 #define HPL_WIDGET_TEXT_BOX_H 31 #include "hpl1/engine/gui/Widget.h" 42 void SetMaxTextLength(
int alLength);
43 int GetMaxTextLength() {
return mlMaxCharacters; }
47 void SetMaxTextSizeNeg(
float afX);
49 void SetCanEdit(
bool abX);
50 bool GetCanEdit() {
return mbCanEdit; }
55 int WorldToCharPos(
const cVector2f &avWorldPos);
56 float CharToLocalPos(
int alChar);
57 void SetMarkerPos(
int alPos);
58 int GetLastCharInSize(
int alStartPos,
float afMaxSize,
float afLengthAdd);
59 int GetFirstCharInSize(
int alStartPos,
float afMaxSize,
float afLengthAdd);
63 void OnLoadGraphics();
84 int mlSelectedTextEnd;
85 int mlFirstVisibleChar;
86 int mlVisibleCharSize;
91 float mfMaxTextSizeNeg;
106 #endif // HPL_WIDGET_TEXT_BOX_H
Definition: WidgetTextBox.h:37
Definition: GuiGfxElement.h:72
Definition: GuiTypes.h:263