27#ifndef QWT_PLOT_LEGEND_ITEM_H
28#define QWT_PLOT_LEGEND_ITEM_H
30#include "qwt_global.h"
31#include "qwt_plot_item.h"
114 virtual int rtti()
const override;
117 void setAlignmentInCanvas(Qt::Alignment);
119 Qt::Alignment alignmentInCanvas()
const;
122 void setOffsetInCanvas(Qt::Orientations,
int numPixels);
124 int offsetInCanvas(Qt::Orientation)
const;
127 void setMaxColumns(uint);
129 uint maxColumns()
const;
137 void setSpacing(
int);
142 void setItemMargin(
int);
144 int itemMargin()
const;
147 void setItemSpacing(
int);
149 int itemSpacing()
const;
152 void setFont(
const QFont&);
157 void setBorderRadius(
double);
159 double borderRadius()
const;
162 void setBorderPen(
const QPen&);
164 QPen borderPen()
const;
167 void setBackgroundBrush(
const QBrush&);
169 QBrush backgroundBrush()
const;
172 void setBackgroundMode(BackgroundMode);
174 BackgroundMode backgroundMode()
const;
177 void setTextPen(
const QPen&);
179 QPen textPen()
const;
191 virtual QRect geometry(
const QRectF& canvasRect)
const;
196 virtual int heightForWidth(
const QwtLegendData&,
int width)
const;
208 virtual void drawBackground(QPainter*,
const QRectF& rect)
const;
Definition qwt_dyngrid_layout.h:33
Attributes of an entry on a legend.
Definition qwt_legend_data.h:60
Base class for items on the plot canvas.
Definition qwt_plot_item.h:119
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
virtual int rtti() const
Runtime type information.
Definition qwt_plot_item.cpp:215
virtual void updateLegend(const QwtPlotItem *, const QList< QwtLegendData > &)
Update the item with changes of the legend.
Definition qwt_plot_item.cpp:1039
A class which draws a legend inside the plot canvas.
Definition qwt_plot_legenditem.h:77
BackgroundMode
Background mode.
Definition qwt_plot_legenditem.h:100
@ LegendBackground
The legend has a background.
Definition qwt_plot_legenditem.h:102
A scale map.
Definition qwt_scale_map.h:52