diff options
author | Pete Beardmore <pete.beardmore@msn.com> | 2018-03-04 10:17:31 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2018-03-14 06:49:50 (GMT) |
commit | 248b15c25f924c56da457ed144050e65013335b0 (patch) | |
tree | c2a98759875c49bb6edd47dfdcdf415ac63edf45 /util/fbrun/FbRun.cc | |
parent | ed7ea14167e531dc3d7cc3db931f299fcc8c7ba4 (diff) | |
download | fluxbox-248b15c25f924c56da457ed144050e65013335b0.zip fluxbox-248b15c25f924c56da457ed144050e65013335b0.tar.bz2 |
fbrun, add horizontal padding option
Diffstat (limited to 'util/fbrun/FbRun.cc')
-rw-r--r-- | util/fbrun/FbRun.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc index b5effd6..5404e69 100644 --- a/util/fbrun/FbRun.cc +++ b/util/fbrun/FbRun.cc | |||
@@ -62,6 +62,7 @@ FbRun::FbRun(int x, int y, size_t width): | |||
62 | m_font("fixed"), | 62 | m_font("fixed"), |
63 | m_display(FbTk::App::instance()->display()), | 63 | m_display(FbTk::App::instance()->display()), |
64 | m_bevel(4), | 64 | m_bevel(4), |
65 | m_padding(0), | ||
65 | m_gc(*this), | 66 | m_gc(*this), |
66 | m_end(false), | 67 | m_end(false), |
67 | m_current_history_item(0), | 68 | m_current_history_item(0), |
@@ -251,6 +252,11 @@ void FbRun::resize(unsigned int width, unsigned int height) { | |||
251 | FbTk::TextBox::resize(width, height); | 252 | FbTk::TextBox::resize(width, height); |
252 | } | 253 | } |
253 | 254 | ||
255 | void FbRun::setPadding(int padding) { | ||
256 | m_padding = padding; | ||
257 | FbTk::TextBox::setPadding(padding); | ||
258 | } | ||
259 | |||
254 | void FbRun::redrawLabel() { | 260 | void FbRun::redrawLabel() { |
255 | clear(); | 261 | clear(); |
256 | } | 262 | } |