diff options
author | fluxgen <fluxgen> | 2003-08-11 14:42:03 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-11 14:42:03 (GMT) |
commit | 8172608b6f45e03fed44ea62acf6124c7981496c (patch) | |
tree | a1ecb689f4e770f0b57631497e064aba49db18db /src | |
parent | 1a70e354781520450981a3e656c1f21e319b9765 (diff) | |
download | fluxbox_pavel-8172608b6f45e03fed44ea62acf6124c7981496c.zip fluxbox_pavel-8172608b6f45e03fed44ea62acf6124c7981496c.tar.bz2 |
return text width and using a drawText functions which derived classes can use to offset the text
Diffstat (limited to 'src')
-rw-r--r-- | src/TextButton.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/TextButton.hh b/src/TextButton.hh index 77615aa..788f737 100644 --- a/src/TextButton.hh +++ b/src/TextButton.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: TextButton.hh,v 1.2 2003/04/14 12:08:50 fluxgen Exp $ | 22 | // $Id: TextButton.hh,v 1.3 2003/08/11 14:42:03 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef TEXTBUTTON_HH | 24 | #ifndef TEXTBUTTON_HH |
25 | #define TEXTBUTTON_HH | 25 | #define TEXTBUTTON_HH |
@@ -48,7 +48,12 @@ public: | |||
48 | inline FbTk::Justify justify() const { return m_justify; } | 48 | inline FbTk::Justify justify() const { return m_justify; } |
49 | inline const std::string &text() const { return m_text; } | 49 | inline const std::string &text() const { return m_text; } |
50 | inline const FbTk::Font &font() const { return *m_font; } | 50 | inline const FbTk::Font &font() const { return *m_font; } |
51 | unsigned int textWidth() const; | ||
51 | int bevel() const { return m_bevel; } | 52 | int bevel() const { return m_bevel; } |
53 | |||
54 | protected: | ||
55 | void drawText(int x_offset = 0, int y_offset = 0); | ||
56 | |||
52 | private: | 57 | private: |
53 | const FbTk::Font *m_font; | 58 | const FbTk::Font *m_font; |
54 | std::string m_text; | 59 | std::string m_text; |