27#ifndef QWT_PLOT_LAYOUT_H
28#define QWT_PLOT_LAYOUT_H
30#include "qwt_global.h"
32#include "qwt_axis_id.h"
61 IgnoreScrollbars = 0x02,
84 Q_DECLARE_FLAGS(Options, Option)
89 void setCanvasMargin(
int margin,
int axis = -1);
90 int canvasMargin(
int axisId)
const;
92 void setAlignCanvasToScales(
bool);
93 void setAlignCanvasToScale(
int axisId,
bool);
94 bool alignCanvasToScale(
int axisId)
const;
98 void setFixedCanvasSize(
int axisPos,
bool on);
100 bool isFixedCanvasSize(
int axisPos)
const;
104 void setFixedCanvasSize(
const QSize& size);
106 QSize fixedCanvasSize()
const;
111 void resetFixedCanvasSize();
113 void setSpacing(
int);
120 void setLegendRatio(
double ratio);
121 double legendRatio()
const;
123 virtual QSize minimumSizeHint(
const QwtPlot*)
const;
124 virtual void activate(
const QwtPlot* plot,
const QRectF& plotRect, Options options = Options());
125 virtual void invalidate();
127 QRectF titleRect()
const;
128 QRectF footerRect()
const;
129 QRectF legendRect()
const;
130 QRectF scaleRect(QwtAxisId)
const;
137 QRectF scaleCaptionRect(QwtAxisId)
const;
139 QRectF canvasRect()
const;
142 void setTitleRect(
const QRectF&);
143 void setFooterRect(
const QRectF&);
144 void setLegendRect(
const QRectF&);
145 void setScaleRect(QwtAxisId,
const QRectF&);
148 void setScaleCaptionRect(QwtAxisId,
const QRectF&);
154 void updateScaleCaptionRects(
const QwtPlot* plot);
156 void setCanvasRect(
const QRectF&);
158 void doActivate(
const QwtPlot* plot,
const QRectF& plotRect, Options options = Options());
166 void applyFixedCanvas(QRectF& canvasRect,
const QRectF& rect);
171Q_DECLARE_OPERATORS_FOR_FLAGS(QwtPlotLayout::Options)
Layout engine for QwtPlot components.
Definition qwt_plot_layout_engine.h:22
Layout engine for QwtPlot.
Definition qwt_plot_layout.h:44
Option
Options to configure the plot layout engine.
Definition qwt_plot_layout.h:51
A 2-D plotting widget.
Definition qwt_plot.h:100
LegendPosition
Position of the legend, relative to the canvas.
Definition qwt_plot.h:117