DtkGui
DTK Gui module
载入中...
搜索中...
未找到
Dtk::Gui::DDciIconPalette类 参考

DCI图标调色板 更多...

#include <ddciiconpalette.h>

Public 类型

enum  PaletteRole {
  NoPalette = -1 , Foreground = 0 , Background = 1 , HighlightForeground = 2 ,
  Highlight = 3 , PaletteCount
}
 

Public 成员函数

 DDciIconPalette (QColor foreground=QColor::Invalid, QColor background=QColor::Invalid, QColor highlight=QColor::Invalid, QColor highlightForeground=QColor::Invalid)
 构造函数
 
bool operator== (const DDciIconPalette &other) const
 
bool operator!= (const DDciIconPalette &other) const
 
QColor foreground () const
 返回前景色
 
void setForeground (const QColor &foreground)
 设置前景色
 
QColor background () const
 返回背景色
 
void setBackground (const QColor &background)
 设置背景色
 
QColor highlightForeground () const
 返回高亮前景色
 
void setHighlightForeground (const QColor &highlightForeground)
 设置高亮前景色
 
QColor highlight () const
 返回高亮色
 
void setHighlight (const QColor &highlight)
 设置高亮色
 

静态 Public 成员函数

static QString convertToString (const DDciIconPalette &palette)
 将DDciIconPalette转换为字符串
 
static DDciIconPalette convertFromString (const QString &data)
 将字符串转换为DDciIconPalette
 
static DDciIconPalette fromQPalette (const QPalette &pa)
 将QPalette转换为DDciIconPalette
 

属性

QColor foreground
 foreground()属性
 
QColor background
 background()属性
 
QColor highlight
 highlight()属性
 
QColor highlightForeground
 highlightForeground()属性
 

详细描述

DCI图标调色板

构造及析构函数说明

◆ 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

返回背景色

参见
DDciIconPalette::background

◆ foreground()

QColor Dtk::Gui::DDciIconPalette::foreground ( ) const

返回前景色

参见
DDciIconPalette::foreground

◆ fromQPalette()

static DDciIconPalette Dtk::Gui::DDciIconPalette::fromQPalette ( const QPalette &  pa)
static

将QPalette转换为DDciIconPalette

参见
QPalette

◆ highlight()

QColor Dtk::Gui::DDciIconPalette::highlight ( ) const

返回高亮色

参见
DDciIconPalette::highlight

◆ highlightForeground()

QColor Dtk::Gui::DDciIconPalette::highlightForeground ( ) const

返回高亮前景色

参见
DDciIconPalette::highlightForeground

◆ setBackground()

void Dtk::Gui::DDciIconPalette::setBackground ( const QColor &  background)

设置背景色

参见
DDciIconPalette::background

◆ setForeground()

void Dtk::Gui::DDciIconPalette::setForeground ( const QColor &  foreground)

设置前景色

参见
DDciIconPalette::foreground

◆ setHighlight()

void Dtk::Gui::DDciIconPalette::setHighlight ( const QColor &  highlight)

设置高亮色

参见
DDciIconPalette::highlight

◆ setHighlightForeground()

void Dtk::Gui::DDciIconPalette::setHighlightForeground ( const QColor &  highlightForeground)

设置高亮前景色

参见
DDciIconPalette::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

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