|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Data for legend layout calculation 更多...
#include <qwt_plot_layout_engine.h>
Public 成员函数 | |
| void | init (const QwtAbstractLegend *legend) |
| Initialize legend data from a QwtAbstractLegend | |
| QSize | legendHint (const QwtAbstractLegend *legend, const QRectF &rect) const |
| Calculate optimal legend size for given rectangle | |
Public 属性 | |
| int | frameWidth |
| int | hScrollExtent |
| int | vScrollExtent |
| QSize | hint |
Data for legend layout calculation
Contains frame width, scroll extents, and size hint for the legend.
| void QwtPlotLayoutEngine::LayoutData::LegendData::init | ( | const QwtAbstractLegend * | legend | ) |
Initialize legend data from a QwtAbstractLegend
Extracts frame width, scroll extents and size hint from the legend widget.
| legend | Pointer to the legend widget |
| QSize QwtPlotLayoutEngine::LayoutData::LegendData::legendHint | ( | const QwtAbstractLegend * | legend, |
| const QRectF & | rect | ||
| ) | const |
Calculate optimal legend size for given rectangle
Determines the best size for the legend within the available space, considering both width and height constraints.
| legend | Pointer to the legend widget |
| rect | Available rectangle for the legend |