Qwt User's Guide  6.1.5
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 #ifndef QWT_MATHML_TEXT_ENGINE_H
11 #define QWT_MATHML_TEXT_ENGINE_H 1
12 
13 #include "qwt_text_engine.h"
14 
31 class QWT_EXPORT QwtMathMLTextEngine: public QwtTextEngine
32 {
33 public:
35  virtual ~QwtMathMLTextEngine();
36 
37  virtual double heightForWidth( const QFont &font, int flags,
38  const QString &text, double width ) const;
39 
40  virtual QSizeF textSize( const QFont &font, int flags,
41  const QString &text ) const;
42 
43  virtual void draw( QPainter *painter, const QRectF &rect,
44  int flags, const QString &text ) const;
45 
46  virtual bool mightRender( const QString & ) const;
47 
48  virtual void textMargins( const QFont &, const QString &,
49  double &left, double &right, double &top, double &bottom ) const;
50 };
51 
52 #endif
QwtTextEngine::heightForWidth
virtual double heightForWidth(const QFont &font, int flags, const QString &text, double width) const =0
QwtTextEngine::draw
virtual void draw(QPainter *painter, const QRectF &rect, int flags, const QString &text) const =0
QwtTextEngine
Abstract base class for rendering text strings.
Definition: qwt_text_engine.h:35
QwtTextEngine::textSize
virtual QSizeF textSize(const QFont &font, int flags, const QString &text) const =0
QwtTextEngine::textMargins
virtual void textMargins(const QFont &font, const QString &text, double &left, double &right, double &top, double &bottom) const =0
QwtTextEngine::mightRender
virtual bool mightRender(const QString &text) const =0
QwtMathMLTextEngine
Text Engine for the MathML renderer of the Qt solutions package.
Definition: qwt_mathml_text_engine.h:31