27#ifndef QWT_PLOT_LAYOUT_H
28#define QWT_PLOT_LAYOUT_H
30#include "qwt_global.h"
32#include "qwt_axis_id.h"
60 IgnoreScrollbars = 0x02,
75 Q_DECLARE_FLAGS(Options, Option)
80 void setCanvasMargin(
int margin,
int axis = -1);
81 int canvasMargin(
int axisId)
const;
83 void setAlignCanvasToScales(
bool);
85 void setAlignCanvasToScale(
int axisId,
bool);
86 bool alignCanvasToScale(
int axisId)
const;
95 void setLegendRatio(
double ratio);
96 double legendRatio()
const;
98 virtual QSize minimumSizeHint(
const QwtPlot*)
const;
100 virtual void activate(
const QwtPlot* plot,
const QRectF& plotRect, Options options = Options());
102 virtual void invalidate();
104 QRectF titleRect()
const;
105 QRectF footerRect()
const;
106 QRectF legendRect()
const;
107 QRectF scaleRect(QwtAxisId)
const;
108 QRectF canvasRect()
const;
111 void setTitleRect(
const QRectF&);
112 void setFooterRect(
const QRectF&);
113 void setLegendRect(
const QRectF&);
114 void setScaleRect(QwtAxisId,
const QRectF&);
115 void setCanvasRect(
const QRectF&);
119 void doActivate(
const QwtPlot* plot,
const QRectF& plotRect, Options options = Options());
128Q_DECLARE_OPERATORS_FOR_FLAGS(QwtPlotLayout::Options)
The QwtPlotLayoutEngine class.
Definition qwt_plot_layout_engine.h:21
Layout engine for QwtPlot.
Definition qwt_plot_layout.h:45
Option
Options to configure the plot layout engine.
Definition qwt_plot_layout.h:52
A 2-D plotting widget.
Definition qwt_plot.h:99
LegendPosition
Position of the legend, relative to the canvas.
Definition qwt_plot.h:114