Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
qwt
src
qwt_plot_textlabel.h
Go to the documentation of this file.
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
47
class
QWT_EXPORT
QwtPlotTextLabel
:
public
QwtPlotItem
48
{
49
public
:
50
QwtPlotTextLabel
();
51
virtual
~
QwtPlotTextLabel
();
52
53
virtual
int
rtti
()
const
;
54
55
void
setText(
const
QwtText
& );
56
QwtText
text()
const
;
57
58
void
setMargin(
int
margin );
59
int
margin()
const
;
60
61
virtual
QRectF textRect(
const
QRectF &,
const
QSizeF & )
const
;
62
63
protected
:
64
virtual
void
draw
( QPainter *,
65
const
QwtScaleMap
&,
const
QwtScaleMap
&,
66
const
QRectF &)
const
;
67
68
void
invalidateCache();
69
70
private
:
71
class
PrivateData
;
72
PrivateData
*
d_data
;
73
};
74
75
#endif
QwtPlotTextLabel
A plot item, which displays a text label.
Definition:
qwt_plot_textlabel.h:47
qwt_plot_item.h
QwtPlotItem::draw
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
QwtPlotItem::rtti
virtual int rtti() const
Definition:
qwt_plot_item.cpp:120
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
QwtPlotTextLabel::d_data
PrivateData * d_data
Definition:
qwt_plot_textlabel.h:71
qwt_global.h
QwtText
A class representing a text.
Definition:
qwt_text.h:51
QwtScaleMap
A scale map.
Definition:
qwt_scale_map.h:30
QwtPlotTextLabel::PrivateData
Definition:
qwt_plot_textlabel.cpp:51
qwt_text.h
QwtPlotItem
Base class for items on the plot canvas.
Definition:
qwt_plot_item.h:64
plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17