|
DAWorkbench 0.0.1
DAWorkbench API
|
节点相关的调色板,这里封装了节点相关的大部分颜色, 更多...
#include <DANodePalette.h>
Public 类型 | |
| enum | ColorRole { RoleTextColor = 0 , RoleBorderColor = 1 , RoleLinkLineColor = 2 , RoleLinkPointBorderColor = 3 } |
| 颜色角色 更多... | |
| enum | BrushRole { RoleBackgroundBrush = 0 , RoleInLinkPointBrush , RoleOutLinkPointBrush } |
| 颜色角色 更多... | |
Public 成员函数 | |
| QColor & | color (ColorRole r) |
| const QColor & | getColor (ColorRole r) const |
| QBrush & | brush (BrushRole r) |
| const QBrush & | getBrush (BrushRole r) const |
静态 Public 成员函数 | |
| static DANodePalette & | getGlobalPalette () |
| 全局色板 | |
| static const QColor & | getGlobalColor (ColorRole r) |
| static const QBrush & | getGlobalBrush (BrushRole r) |
| DANodePalette::getGlobalBrush | |
节点相关的调色板,这里封装了节点相关的大部分颜色,
尽量不要在节点绘制使用其他颜色,统一通过此颜色可以实现主题颜色的更换
参考office调色板的样式,每个调色板一共有7种颜色
|
static |
|
static |
全局色板