DtkGui
DTK Gui module
载入中...
搜索中...
未找到
Dtk::Gui::DIcon类 参考
类 Dtk::Gui::DIcon 继承关系图:
Dtk::Gui::DIcon 的协作图:

Public 成员函数

 DIcon (const QIcon &other)
 
QPixmap pixmap (const QSize &size, qreal devicePixelRatio, Mode mode=Normal, State state=Off)
 

静态 Public 成员函数

static QPixmap loadNxPixmap (const QString &fileName)
 DIcon::loadNxPixmap loads the suitable @Nx image.
 

成员函数说明

◆ loadNxPixmap()

QPixmap Dtk::Gui::DIcon::loadNxPixmap ( const QString &  fileName)
static

DIcon::loadNxPixmap loads the suitable @Nx image.

参数
fileNameis the original resource file name.
返回
the hiDPI ready QPixmap.

◆ pixmap()

QPixmap Dtk::Gui::DIcon::pixmap ( const QSize &  size,
qreal  devicePixelRatio,
Mode  mode = Normal,
State  state = Off 
)

Icon::pixmap Returns a pixmap with the requested size, devicePixelRatio, mode, and state, generating one if necessary.

参见
QIcon::actualsize(), QIcon::paint()

该类的文档由以下文件生成: