aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
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; }