10 #ifndef QWT_PLOT_LAYOUT_H
11 #define QWT_PLOT_LAYOUT_H
43 IgnoreScrollbars = 0x02,
58 Q_DECLARE_FLAGS( Options,
Option )
63 void setCanvasMargin(
int margin,
int axis = -1 );
64 int canvasMargin(
int axisId ) const;
66 void setAlignCanvasToScales(
bool );
68 void setAlignCanvasToScale(
int axisId,
bool );
69 bool alignCanvasToScale(
int axisId ) const;
71 void setSpacing(
int );
74 void setLegendPosition(
QwtPlot::LegendPosition pos,
double ratio );
75 void setLegendPosition(
QwtPlot::LegendPosition pos );
76 QwtPlot::LegendPosition legendPosition() const;
78 void setLegendRatio(
double ratio );
79 double legendRatio() const;
81 virtual QSize minimumSizeHint( const
QwtPlot* ) const;
83 virtual
void activate( const
QwtPlot*,
84 const QRectF& plotRect, Options options = Options() );
86 virtual
void invalidate();
88 QRectF titleRect() const;
89 QRectF footerRect() const;
90 QRectF legendRect() const;
92 QRectF canvasRect() const;
96 void setTitleRect( const QRectF& );
97 void setFooterRect( const QRectF& );
98 void setLegendRect( const QRectF& );
99 void setScaleRect(
QwtAxisId, const QRectF& );
100 void setCanvasRect( const QRectF& );