10 #ifndef QWT_PLOT_LEGEND_ITEM_H 11 #define QWT_PLOT_LEGEND_ITEM_H 68 void setAlignmentInCanvas( Qt::Alignment );
69 Qt::Alignment alignmentInCanvas() const;
71 void setOffsetInCanvas( Qt::Orientations,
int numPixels );
72 int offsetInCanvas( Qt::Orientation ) const;
74 void setMaxColumns( uint );
75 uint maxColumns() const;
77 void setMargin(
int );
80 void setSpacing(
int );
83 void setItemMargin(
int );
84 int itemMargin() const;
86 void setItemSpacing(
int );
87 int itemSpacing() const;
89 void setFont( const QFont& );
92 void setBorderRadius(
double );
93 double borderRadius() const;
95 void setBorderPen( const QPen & );
96 QPen borderPen() const;
98 void setBackgroundBrush( const QBrush & );
99 QBrush backgroundBrush() const;
102 BackgroundMode backgroundMode() const;
104 void setTextPen( const QPen & );
105 QPen textPen() const;
107 virtual
void draw( QPainter *,
116 virtual QRect geometry( const QRectF &canvasRect ) const;
119 virtual
int heightForWidth( const
QwtLegendData &,
int width ) const;
121 QList< const QwtPlotItem * > plotItems() const;
122 QList< QRect > legendGeometries( const QwtPlotItem * ) const;
125 virtual
void drawLegendData( QPainter *,
126 const QwtPlotItem *, const QwtLegendData &, const QRectF & ) const;
128 virtual
void drawBackground( QPainter *, const QRectF &rect ) const;
The legend has a background.
BackgroundMode
Background mode.
A class which draws a legend inside the plot canvas.
Base class for items on the plot canvas.
Attributes of an entry on a legend.