Qwt User's Guide: qwt_mathml_text_engine.h Source File

Qwt User's Guide 5.2.3

- Main Page
- Related Pages
- Classes

qwt_mathml_text_engine.h
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2003 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10 // vim: expandtab
11
12 #ifndef QWT_MATHML_TEXT_ENGINE_H
13 #define QWT_MATHML_TEXT_ENGINE_H 1
14
15 #if QT_VERSION >= 0x040000
16
17 #include "qwt_text_engine.h"
18
39 class QWT_EXPORT QwtMathMLTextEngine: public QwtTextEngine
40 {
41 public:
42 QwtMathMLTextEngine();
43 virtual ~QwtMathMLTextEngine();
44
45 virtual int heightForWidth(const QFont &font, int flags,
46 const QString &text, int width) const;
47
48 virtual QSize textSize(const QFont &font, int flags,
49 const QString &text) const;
50
51 virtual void draw(QPainter *painter, const QRect &rect,
52 int flags, const QString &text) const;
53
54 virtual bool mightRender(const QString &) const;
55
56 virtual void textMargins(const QFont &, const QString &,
57 int &left, int &right, int &top, int &bottom) const;
58 };
59
60 #endif // QT_VERSION >= 0x040000
61
62 #endif