DCI图标调色板
更多...
#include <ddciiconpalette.h>
|
enum | PaletteRole {
NoPalette = -1
, Foreground = 0
, Background = 1
, HighlightForeground = 2
,
Highlight = 3
, PaletteCount
} |
|
◆ DDciIconPalette()
Dtk::Gui::DDciIconPalette::DDciIconPalette |
( |
QColor |
foreground = QColor::Invalid , |
|
|
QColor |
background = QColor::Invalid , |
|
|
QColor |
highlight = QColor::Invalid , |
|
|
QColor |
highlightForeground = QColor::Invalid |
|
) |
| |
构造函数
- 参数
-
[in] | foreground | 前景色, 默认值为无效色 |
[in] | background | 背景色, 默认值为无效色 |
[in] | highlight | 高亮色, 默认值为无效色 |
[in] | highlightForeground | 高亮前景色, 默认值为无效色 |
◆ background()
QColor Dtk::Gui::DDciIconPalette::background |
( |
| ) |
const |
◆ foreground()
QColor Dtk::Gui::DDciIconPalette::foreground |
( |
| ) |
const |
◆ fromQPalette()
static DDciIconPalette Dtk::Gui::DDciIconPalette::fromQPalette |
( |
const QPalette & |
pa | ) |
|
|
static |
将QPalette转换为DDciIconPalette
- 参见
- QPalette
◆ highlight()
QColor Dtk::Gui::DDciIconPalette::highlight |
( |
| ) |
const |
◆ highlightForeground()
QColor Dtk::Gui::DDciIconPalette::highlightForeground |
( |
| ) |
const |
◆ setBackground()
void Dtk::Gui::DDciIconPalette::setBackground |
( |
const QColor & |
background | ) |
|
◆ setForeground()
void Dtk::Gui::DDciIconPalette::setForeground |
( |
const QColor & |
foreground | ) |
|
◆ setHighlight()
void Dtk::Gui::DDciIconPalette::setHighlight |
( |
const QColor & |
highlight | ) |
|
◆ setHighlightForeground()
void Dtk::Gui::DDciIconPalette::setHighlightForeground |
( |
const QColor & |
highlightForeground | ) |
|
◆ background
Dtk::Gui::DDciIconPalette::background |
|
readwrite |
◆ foreground
Dtk::Gui::DDciIconPalette::foreground |
|
readwrite |
◆ highlight
Dtk::Gui::DDciIconPalette::highlight |
|
readwrite |
◆ highlightForeground
Dtk::Gui::DDciIconPalette::highlightForeground |
|
readwrite |
该类的文档由以下文件生成:
- include/util/ddciiconpalette.h
- src/util/ddciiconpalette.cpp
- docs/util/ddciiconpalette.zh_CN.dox