Qwt User's Guide 6.1.0

- Main Page
- Related Pages
- Classes

All Classes Functions Variables Typedefs Enumerations Enumerator Pages
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 #include "qwt_text_engine.h"
16
32 class QWT_EXPORT QwtMathMLTextEngine: public QwtTextEngine
33 {
34 public:
35 QwtMathMLTextEngine();
36 virtual ~QwtMathMLTextEngine();
37
38 virtual double heightForWidth( const QFont &font, int flags,
39 const QString &text, double width ) const;
40
41 virtual QSizeF textSize( const QFont &font, int flags,
42 const QString &text ) const;
43
44 virtual void draw( QPainter *painter, const QRectF &rect,
45 int flags, const QString &text ) const;
46
47 virtual bool mightRender( const QString & ) const;
48
49 virtual void textMargins( const QFont &, const QString &,
50 double &left, double &right, double &top, double &bottom ) const;
51 };
52
53 #endif