aboutsummaryrefslogtreecommitdiff
path: root/src/XFontImp.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-10-19 14:01:05 (GMT)
committerfluxgen <fluxgen>2002-10-19 14:01:05 (GMT)
commit1b6e3c1750aa199719a6165276ae858c1b89096e (patch)
treee4ad2b3a1f3cf66929c6b2eb081301ef8b6a8582 /src/XFontImp.hh
parent28b84d6fc03587ffacfcc575323e9113ae172be3 (diff)
downloadfluxbox-1b6e3c1750aa199719a6165276ae858c1b89096e.zip
fluxbox-1b6e3c1750aa199719a6165276ae858c1b89096e.tar.bz2
ascent and descent
Diffstat (limited to 'src/XFontImp.hh')
-rw-r--r--src/XFontImp.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/XFontImp.hh b/src/XFontImp.hh
index 30ad7ed..8ea7af1 100644
--- a/src/XFontImp.hh
+++ b/src/XFontImp.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: XFontImp.hh,v 1.2 2002/10/15 16:44:26 fluxgen Exp $ 22// $Id: XFontImp.hh,v 1.3 2002/10/19 13:58:47 fluxgen Exp $
23 23
24#ifndef XFONTIMP_HH 24#ifndef XFONTIMP_HH
25#define XFONTIMP_HH 25#define XFONTIMP_HH
@@ -33,6 +33,8 @@ public:
33 bool load(const std::string &filename); 33 bool load(const std::string &filename);
34 unsigned int textWidth(const char * const text, unsigned int size) const; 34 unsigned int textWidth(const char * const text, unsigned int size) const;
35 unsigned int height() const; 35 unsigned int height() const;
36 int ascent() const { return m_fontstruct ? m_fontstruct->ascent : 0; }
37 int descent() const { return m_fontstruct ? m_fontstruct->descent : 0; }
36 void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; 38 void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const;
37 bool loaded() const { return m_fontstruct != 0; } 39 bool loaded() const { return m_fontstruct != 0; }
38private: 40private: