27#ifndef QWT_PLOT_LAYOUT_H
28#define QWT_PLOT_LAYOUT_H
30#include "qwt_global.h"
32#include "qwt_axis_id.h"
90 IgnoreScrollbars = 0x02,
137 Q_DECLARE_FLAGS( Options, Option )
142 void setCanvasMargin(
int margin,
int axis = -1 );
143 int canvasMargin(
int axisId )
const;
145 void setAlignCanvasToScales(
bool );
146 void setAlignCanvasToScale(
int axisId,
bool );
147 bool alignCanvasToScale(
int axisId )
const;
149 void setSpacing(
int );
156 void setLegendRatio(
double ratio );
157 double legendRatio()
const;
159 virtual QSize minimumSizeHint(
const QwtPlot* )
const;
160 virtual void activate(
const QwtPlot* plot,
const QRectF& plotRect,
161 Options options = Options() );
162 virtual void invalidate();
164 QRectF titleRect()
const;
165 QRectF footerRect()
const;
166 QRectF legendRect()
const;
167 QRectF scaleRect( QwtAxisId )
const;
168 QRectF canvasRect()
const;
171 void setTitleRect(
const QRectF& );
172 void setFooterRect(
const QRectF& );
173 void setLegendRect(
const QRectF& );
174 void setScaleRect( QwtAxisId,
const QRectF& );
175 void setCanvasRect(
const QRectF& );
177 void doActivate(
const QwtPlot* plot,
const QRectF& plotRect,
178 Options options = Options() );
187Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPlotLayout::Options )
QwtPlot组件的布局引擎
Definition qwt_plot_layout_engine.h:29
QwtPlot 的布局引擎
Definition qwt_plot_layout.h:53
Option
用于配置绘图布局引擎的选项
Definition qwt_plot_layout.h:67
二维绘图部件
Definition qwt_plot.h:138
LegendPosition
图例相对于画布的位置
Definition qwt_plot.h:162