aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Font.hh
diff options
context:
space:
mode:
authormathias <mathias>2005-02-07 13:46:55 (GMT)
committermathias <mathias>2005-02-07 13:46:55 (GMT)
commit703fc0b0ee8f5a3d5d37daf82612143929937ede (patch)
tree0f9f3b723663d6ec080ca34894ddc83ed7994855 /src/FbTk/Font.hh
parent8e33dad39f17cf73d9a12e3509d94d1aa88c32f5 (diff)
downloadfluxbox_pavel-703fc0b0ee8f5a3d5d37daf82612143929937ede.zip
fluxbox_pavel-703fc0b0ee8f5a3d5d37daf82612143929937ede.tar.bz2
cosmetic white-space-stuff and/or copyright dates
Diffstat (limited to 'src/FbTk/Font.hh')
-rw-r--r--src/FbTk/Font.hh20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/FbTk/Font.hh b/src/FbTk/Font.hh
index 3b04790..d8f0f46 100644
--- a/src/FbTk/Font.hh
+++ b/src/FbTk/Font.hh
@@ -1,6 +1,6 @@
1// Font.cc for FbTk 1// Font.cc for FbTk
2// Copyright (c) 2002-2004 Henrik Kinnunen (fluxgen at fluxbox dot org) 2// Copyright (c) 2002 - 2005 Henrik Kinnunen (fluxgen at fluxbox dot org)
3// 3//
4// Permission is hereby granted, free of charge, to any person obtaining a 4// Permission is hereby granted, free of charge, to any person obtaining a
5// copy of this software and associated documentation files (the "Software"), 5// copy of this software and associated documentation files (the "Software"),
6// to deal in the Software without restriction, including without limitation 6// to deal in the Software without restriction, including without limitation
@@ -54,7 +54,7 @@ public:
54 54
55 /// called at FbTk::App destruction time, cleans up what was inited first 55 /// called at FbTk::App destruction time, cleans up what was inited first
56 static void shutdown(); 56 static void shutdown();
57 57
58 /// @return true if multibyte is enabled, else false 58 /// @return true if multibyte is enabled, else false
59 static bool multibyte() { return m_multibyte; } 59 static bool multibyte() { return m_multibyte; }
60 /// @return true if utf-8 mode is enabled, else false 60 /// @return true if utf-8 mode is enabled, else false
@@ -64,7 +64,7 @@ public:
64 64
65 Font(const char *name=0, bool antialias = false); 65 Font(const char *name=0, bool antialias = false);
66 virtual ~Font(); 66 virtual ~Font();
67 /** 67 /**
68 Load a font 68 Load a font
69 @return true on success, else false and it'll fall back on the last 69 @return true on success, else false and it'll fall back on the last
70 loaded font 70 loaded font
@@ -80,11 +80,11 @@ public:
80 @return size of text in pixels 80 @return size of text in pixels
81 */ 81 */
82 unsigned int textWidth(const char * const text, unsigned int size) const; 82 unsigned int textWidth(const char * const text, unsigned int size) const;
83 unsigned int height() const; 83 unsigned int height() const;
84 int ascent() const; 84 int ascent() const;
85 int descent() const; 85 int descent() const;
86 /** 86 /**
87 Rotate font in any angle 87 Rotate font in any angle
88 (currently only 90 degrees supported and just XFont implementation) 88 (currently only 90 degrees supported and just XFont implementation)
89 */ 89 */
90 void rotate(float angle); 90 void rotate(float angle);
@@ -99,9 +99,9 @@ public:
99 @param x position 99 @param x position
100 @param y position 100 @param y position
101 @param rotate if the text should be drawn rotated (if it's rotated before) 101 @param rotate if the text should be drawn rotated (if it's rotated before)
102 */ 102 */
103 void drawText(const FbDrawable &w, int screen, GC gc, 103 void drawText(const FbDrawable &w, int screen, GC gc,
104 const char *text, size_t len, 104 const char *text, size_t len,
105 int x, int y, bool rotate=true) const; 105 int x, int y, bool rotate=true) const;
106 bool isAntialias() const { return m_antialias; } 106 bool isAntialias() const { return m_antialias; }
107 /// @return true if the font is rotated, else false 107 /// @return true if the font is rotated, else false
@@ -111,7 +111,7 @@ public:
111 bool shadow() const { return m_shadow; } 111 bool shadow() const { return m_shadow; }
112 bool halo() const { return m_halo; } 112 bool halo() const { return m_halo; }
113private: 113private:
114 114
115 std::auto_ptr<FontImp> m_fontimp; ///< font implementation 115 std::auto_ptr<FontImp> m_fontimp; ///< font implementation
116 std::string m_fontstr; ///< font name 116 std::string m_fontstr; ///< font name
117 static bool m_multibyte; ///< if the fontimp should be a multibyte font 117 static bool m_multibyte; ///< if the fontimp should be a multibyte font