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,
83 Q_DECLARE_FLAGS(Options, Option)
88 void setCanvasMargin(
int margin,
int axis = -1);
89 int canvasMargin(
int axisId)
const;
91 void setAlignCanvasToScales(
bool);
92 void setAlignCanvasToScale(
int axisId,
bool);
93 bool alignCanvasToScale(
int axisId)
const;
102 void setLegendRatio(
double ratio);
103 double legendRatio()
const;
105 virtual QSize minimumSizeHint(
const QwtPlot*)
const;
106 virtual void activate(
const QwtPlot* plot,
const QRectF& plotRect, Options options = Options());
107 virtual void invalidate();
109 QRectF titleRect()
const;
110 QRectF footerRect()
const;
111 QRectF legendRect()
const;
112 QRectF scaleRect(QwtAxisId)
const;
113 QRectF canvasRect()
const;
116 void setTitleRect(
const QRectF&);
117 void setFooterRect(
const QRectF&);
118 void setLegendRect(
const QRectF&);
119 void setScaleRect(QwtAxisId,
const QRectF&);
120 void setCanvasRect(
const QRectF&);
122 void doActivate(
const QwtPlot* plot,
const QRectF& plotRect, Options options = Options());
131Q_DECLARE_OPERATORS_FOR_FLAGS(QwtPlotLayout::Options)
Layout engine for QwtPlot components
Definition qwt_plot_layout_engine.h:21
Layout engine for QwtPlot
Definition qwt_plot_layout.h:43
Option
Options to configure the plot layout engine
Definition qwt_plot_layout.h:50
A 2-D plotting widget
Definition qwt_plot.h:99
LegendPosition
Position of the legend, relative to the canvas
Definition qwt_plot.h:116