Qwt User's Guide  6.1-rc3
 All Classes Functions Variables Typedefs Enumerations Enumerator Pages
qwt_plot_textlabel.h
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2  * Qwt Widget Library
3  * Copyright (C) 1997 Josef Wilgen
4  * Copyright (C) 2002 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_PLOT_TEXT_LABEL_H
11 #define QWT_PLOT_TEXT_LABEL_H 1
12 
13 #include "qwt_global.h"
14 #include "qwt_plot_item.h"
15 #include "qwt_text.h"
16 
48 class QWT_EXPORT QwtPlotTextLabel: public QwtPlotItem
49 {
50 public:
52  virtual ~QwtPlotTextLabel();
53 
54  virtual int rtti() const;
55 
56  void setText( const QwtText & );
57  QwtText text() const;
58 
59  void setMargin( int margin );
60  int margin() const;
61 
62 protected:
63  virtual void draw( QPainter *,
64  const QwtScaleMap &, const QwtScaleMap &,
65  const QRectF &) const;
66 
67  void invalidateCache();
68 
69 private:
70  class PrivateData;
71  PrivateData *d_data;
72 };
73 
74 #endif