QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
QwtPlotLayoutEngine::LayoutData::LegendData结构体 参考

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.

成员函数说明

◆ init()

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.

参数
legendPointer to the legend widget

◆ legendHint()

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.

参数
legendPointer to the legend widget
rectAvailable rectangle for the legend
返回
Optimal size for the legend

该结构体的文档由以下文件生成: