aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextBox.hh
diff options
context:
space:
mode:
authorPete Beardmore <pete.beardmore@msn.com>2018-03-04 22:56:44 (GMT)
committerMathias Gumz <akira@fluxbox.org>2018-03-14 06:49:50 (GMT)
commited7ea14167e531dc3d7cc3db931f299fcc8c7ba4 (patch)
tree40cfa615803858c0f17ed35f1f6da435ab143651 /src/FbTk/TextBox.hh
parentca0995bdec7c96452291639c9736ed7212f96ca2 (diff)
downloadfluxbox-ed7ea14167e531dc3d7cc3db931f299fcc8c7ba4.zip
fluxbox-ed7ea14167e531dc3d7cc3db931f299fcc8c7ba4.tar.bz2
fbtk, textbox, support horizontal padding
-add 'setPadding' function
Diffstat (limited to 'src/FbTk/TextBox.hh')
-rw-r--r--src/FbTk/TextBox.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FbTk/TextBox.hh b/src/FbTk/TextBox.hh
index 20f3610..10741a8 100644
--- a/src/FbTk/TextBox.hh
+++ b/src/FbTk/TextBox.hh
@@ -37,6 +37,7 @@ public:
37 virtual ~TextBox(); 37 virtual ~TextBox();
38 38
39 void setText(const FbTk::BiDiString &text); 39 void setText(const FbTk::BiDiString &text);
40 void setPadding(int padding);
40 void setFont(const Font &font); 41 void setFont(const Font &font);
41 void setGC(GC gc); 42 void setGC(GC gc);
42 void setCursorPosition(int cursor); 43 void setCursorPosition(int cursor);
@@ -87,6 +88,7 @@ private:
87 BiDiString m_text; 88 BiDiString m_text;
88 GC m_gc; 89 GC m_gc;
89 std::string::size_type m_cursor_pos, m_start_pos, m_end_pos, m_select_pos; 90 std::string::size_type m_cursor_pos, m_start_pos, m_end_pos, m_select_pos;
91 int m_padding;
90 XIC m_xic; 92 XIC m_xic;
91}; 93};
92 94