| 
                             DtkGui
                             
                            DTK Gui module 
                         | 
                    
DPalette继承并且扩展了 QPalette 类, 提供了dtk特有的特性. 更多...


Public 类型 | |
| enum | ColorType {  NoType , ItemBackground , TextTitle , TextTips , TextWarning , TextLively , LightLively , DarkLively , FrameBorder , PlaceholderText , FrameShadowBorder , ObviousBackground , NColorTypes }  | 
Public 成员函数 | |
| DPalette () | |
| 构造一个 DPalette 对象  | |
| DPalette (const QPalette &palette) | |
| 构造一个 DPalette 对象   | |
| DPalette (const DPalette &palette) | |
| 构造一个 DPalette 对象   | |
| DPalette & | operator= (const DPalette &palette) | 
| const QColor & | color (ColorGroup cg, ColorType ct) const | 
| const QBrush & | brush (ColorGroup cg, ColorType ct) const | 
| void | setColor (ColorGroup cg, ColorType ct, const QColor &color) | 
| 设置指定颜色组和颜色类型的颜色   | |
| void | setColor (ColorType ct, const QColor &color) | 
| 设置指定颜色类型的颜色   | |
| void | setBrush (ColorType ct, const QBrush &brush) | 
| 设置指定颜色类型的笔刷   | |
| void | setBrush (ColorGroup cg, ColorType ct, const QBrush &brush) | 
| 设置指定颜色组和颜色类型的笔刷   | |
| const QColor & | color (ColorType ct) const | 
| const QBrush & | brush (ColorType ct) const | 
| const QBrush & | itemBackground () const | 
| 获取列表项的背景色  | |
| const QBrush & | textTitle () const | 
| 获取标题型文本的颜色  | |
| const QBrush & | textTips () const | 
| 获取提示性文本的颜色  | |
| const QBrush & | textWarning () const | 
| 获取警告类型的文本颜色  | |
| const QBrush & | textLively () const | 
| 获取活跃式文本颜色(不受活动色影响)  | |
| const QBrush & | lightLively () const | 
| 获取活跃式按钮(recommend button)背景色中的亮色,会从暗色渐变到亮色(不受活跃色影响)  | |
| const QBrush & | darkLively () const | 
| 获取活跃式按钮(recommend button)背景色中的暗色,会从暗色渐变到亮色(不受活跃色影响)  | |
| const QBrush & | frameBorder () const | 
| 获取边框颜色  | |
| const QBrush & | placeholderText () const | 
| 获取占位符文本颜色  | |
| const QBrush & | frameShadowBorder () const | 
| 获取阴影边框颜色  | |
Protected 属性 | |
| QScopedPointer< DPalettePrivate > | d | 
友元 | |
| Q_GUI_EXPORT QDataStream & | operator<< (QDataStream &s, const DPalette &p) | 
DPalette继承并且扩展了 QPalette 类, 提供了dtk特有的特性.
DPalette::ColorType 定义了 DPalette 颜色类型
| 键 | 值 | 含义 | 
|---|---|---|
| NoType | 0 | 无类型 | 
| ItemBackground | 1 | 列表项的背景色 | 
| TextTitle | 2 | 标题型文本的颜色 | 
| TextTips | 3 | 提示性文本的颜色 | 
| TextWarning | 4 | 警告类型的文本颜色 | 
| TextLively | 5 | 活跃式文本颜色(不受活动色影响) | 
| LightLively | 6 | 活跃式按钮(recommend button)背景色中的亮色(不受活跃色影响) | 
| DarkLively | 7 | 活跃式按钮(recommend button)背景色中的暗色,会从亮色渐变到暗色(不受活跃色影响) | 
| FrameBorder | 8 | 控件边框颜色 | 
| PlaceholderText | 9 | 占位类型的文本颜色,可用于输入框占位内容等提示性文字 | 
| FrameShadowBorder | 10 | 用于跟阴影叠加的边框颜色 | 
| ObviousBackground | 11 | 明显的背景色 | 
| NColorTypes | 12 | 无颜色类型 | 
| Dtk::Gui::DPalette::DPalette | ( | const QPalette & | palette | ) | 
构造一个 DPalette 对象
| [in] | palette | 要复制的 QPalette 对象 | 
| Dtk::Gui::DPalette::DPalette | ( | const DPalette & | palette | ) | 
| void Dtk::Gui::DPalette::setBrush | ( | ColorGroup | cg, | 
| ColorType | ct, | ||
| const QBrush & | brush | ||
| ) | 
设置指定颜色组和颜色类型的笔刷
| [in] | cg | 颜色组 | 
| [in] | ct | 颜色类型 | 
| [in] | brush | 笔刷 | 
      
  | 
  inline | 
设置指定颜色类型的笔刷
| [in] | ct | 颜色类型 | 
| [in] | brush | 笔刷 | 
      
  | 
  inline | 
设置指定颜色组和颜色类型的颜色
| [in] | cg | 颜色组 | 
| [in] | ct | 颜色类型 | 
| [in] | color | 颜色 | 
      
  | 
  inline | 
设置指定颜色类型的颜色
| [in] | ct | 颜色类型 | 
| [in] | color | 颜色 |