summaryrefslogtreecommitdiff
path: root/indra/llui/lllineeditor.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-11-24 08:35:47 -0800
committerJames Cook <james@lindenlab.com>2009-11-24 08:35:47 -0800
commit0b3f6b3e9a1414c11ccf6011930c2eec6cf2fdd7 (patch)
treed4d83f4347fe6a56931a97a3eedabb97bdcfefff /indra/llui/lllineeditor.cpp
parent156ced177d22623f0b5291f043636b7d32f69470 (diff)
parent6634d3c1ccbe13d3c0cdd17b60628eabe633ea7d (diff)
Automated merge with ssh://hg.lindenlab.com/james/gooey/
Diffstat (limited to 'indra/llui/lllineeditor.cpp')
-rw-r--r--indra/llui/lllineeditor.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp
index 406c77a365..bd5734312a 100644
--- a/indra/llui/lllineeditor.cpp
+++ b/indra/llui/lllineeditor.cpp
@@ -323,6 +323,19 @@ void LLLineEditor::setMaxTextLength(S32 max_text_length)
mMaxLengthBytes = max_len;
}
+void LLLineEditor::getTextPadding(S32 *left, S32 *right)
+{
+ *left = mTextPadLeft;
+ *right = mTextPadRight;
+}
+
+void LLLineEditor::setTextPadding(S32 left, S32 right)
+{
+ mTextPadLeft = left;
+ mTextPadRight = right;
+ updateTextPadding();
+}
+
void LLLineEditor::updateTextPadding()
{
static LLUICachedControl<S32> line_editor_hpad ("UILineEditorHPad", 0);