aboutsummaryrefslogtreecommitdiff
path: root/src/TextButton.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-11 14:42:03 (GMT)
committerfluxgen <fluxgen>2003-08-11 14:42:03 (GMT)
commit8172608b6f45e03fed44ea62acf6124c7981496c (patch)
treea1ecb689f4e770f0b57631497e064aba49db18db /src/TextButton.hh
parent1a70e354781520450981a3e656c1f21e319b9765 (diff)
downloadfluxbox-8172608b6f45e03fed44ea62acf6124c7981496c.zip
fluxbox-8172608b6f45e03fed44ea62acf6124c7981496c.tar.bz2
return text width and using a drawText functions which derived classes can use to offset the text
Diffstat (limited to 'src/TextButton.hh')
-rw-r--r--src/TextButton.hh7
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
54protected:
55 void drawText(int x_offset = 0, int y_offset = 0);
56
52private: 57private:
53 const FbTk::Font *m_font; 58 const FbTk::Font *m_font;
54 std::string m_text; 59 std::string m_text;