aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-15 16:41:11 (GMT)
committersimonb <simonb>2006-04-15 16:41:11 (GMT)
commit7c7908443302fc66929e19804f0fbd655d4c7f34 (patch)
tree6839a7379b4cc514a5a4ce20ebf0a53123d20ba2 /src/FbTk
parent83a3429c395299b5acb85a3f372091037fe12603 (diff)
downloadfluxbox-7c7908443302fc66929e19804f0fbd655d4c7f34.zip
fluxbox-7c7908443302fc66929e19804f0fbd655d4c7f34.tar.bz2
implement vertical toolbar placement options
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/TextButton.cc1
-rw-r--r--src/FbTk/TextButton.hh1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc
index ad9de09..6bcb0e7 100644
--- a/src/FbTk/TextButton.cc
+++ b/src/FbTk/TextButton.cc
@@ -92,6 +92,7 @@ void TextButton::setFont(FbTk::Font &font) {
92 if (&font == m_font) 92 if (&font == m_font)
93 return; 93 return;
94 m_font = &font; 94 m_font = &font;
95 font.validOrientation(m_orientation); // load the orientation!
95} 96}
96 97
97/// set bevel and redraw text 98/// set bevel and redraw text
diff --git a/src/FbTk/TextButton.hh b/src/FbTk/TextButton.hh
index 5796a39..c9f3fbf 100644
--- a/src/FbTk/TextButton.hh
+++ b/src/FbTk/TextButton.hh
@@ -67,6 +67,7 @@ public:
67 inline FbTk::Justify justify() const { return m_justify; } 67 inline FbTk::Justify justify() const { return m_justify; }
68 inline const std::string &text() const { return m_text; } 68 inline const std::string &text() const { return m_text; }
69 inline FbTk::Font &font() const { return *m_font; } 69 inline FbTk::Font &font() const { return *m_font; }
70 inline FbTk::Orientation orientation() const { return m_orientation; }
70 unsigned int textWidth() const; 71 unsigned int textWidth() const;
71 unsigned int textHeight() const; 72 unsigned int textHeight() const;
72 int bevel() const { return m_bevel; } 73 int bevel() const { return m_bevel; }