aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XftFontImp.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2002-12-01 13:42:15 (GMT)
committerrathnor <rathnor>2002-12-01 13:42:15 (GMT)
commit28b5c604490094e187494dcc566bd3d7a05a2c25 (patch)
tree8f78f5714a5cd055c10b067a2656fe7b2338e71a /src/FbTk/XftFontImp.hh
parentb9134162f9633784d9097df18769a699a62650fe (diff)
downloadfluxbox_pavel-28b5c604490094e187494dcc566bd3d7a05a2c25.zip
fluxbox_pavel-28b5c604490094e187494dcc566bd3d7a05a2c25.tar.bz2
Indenting from tabs to emacs 4-space
Diffstat (limited to 'src/FbTk/XftFontImp.hh')
-rw-r--r--src/FbTk/XftFontImp.hh24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/FbTk/XftFontImp.hh b/src/FbTk/XftFontImp.hh
index d89f4bd..cad25d5 100644
--- a/src/FbTk/XftFontImp.hh
+++ b/src/FbTk/XftFontImp.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: XftFontImp.hh,v 1.1 2002/11/26 16:01:27 fluxgen Exp $ 22//$Id: XftFontImp.hh,v 1.2 2002/12/01 13:42:15 rathnor Exp $
23 23
24#ifndef XFTFONTIMP_HH 24#ifndef XFTFONTIMP_HH
25#define XFTFONTIMP_HH 25#define XFTFONTIMP_HH
@@ -30,18 +30,18 @@ namespace FbTk {
30 30
31class XftFontImp:public FbTk::FontImp { 31class XftFontImp:public FbTk::FontImp {
32public: 32public:
33 XftFontImp(const char *fontname, bool utf8); 33 XftFontImp(const char *fontname, bool utf8);
34 ~XftFontImp(); 34 ~XftFontImp();
35 bool load(const std::string &name); 35 bool load(const std::string &name);
36 void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; 36 void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const;
37 unsigned int textWidth(const char * const text, unsigned int len) const; 37 unsigned int textWidth(const char * const text, unsigned int len) const;
38 unsigned int height() const; 38 unsigned int height() const;
39 int ascent() const { return m_xftfont ? m_xftfont->ascent : 0; } 39 int ascent() const { return m_xftfont ? m_xftfont->ascent : 0; }
40 int descent() const { return m_xftfont ? m_xftfont->descent : 0; } 40 int descent() const { return m_xftfont ? m_xftfont->descent : 0; }
41 bool loaded() const { return m_xftfont != 0; } 41 bool loaded() const { return m_xftfont != 0; }
42private: 42private:
43 XftFont *m_xftfont; 43 XftFont *m_xftfont;
44 bool m_utf8mode; 44 bool m_utf8mode;
45}; 45};
46 46
47}; // end namespace FbTk 47}; // end namespace FbTk