YSSCore::Editor::StyleData Class
class YSSCore::Editor::StyleData样式数据,表示一个配置节点的样式信息,与YSSCore::Editor::ColorThemeProvider配合使用. 详情...
| 头文件: | #include <StyleData> |
| 自以下版本: | YSS 0.16.0 |
- 所有成员列表(包含继承成员)
- StyleData 是该集合的一部分:语言服务框架.
公开成员函数
| QColor | getBgColor() const |
| YSSCore::Editor::StyleData::IdentifierType | getIdentifierType() const |
| QColor | getLineColor() const |
| QString | getStyleName() const |
| QColor | getTextColor() const |
| YSSCore::Editor::StyleData::UnderlineType | getUnderlineType() const |
| bool | isBgColorEnabled() const |
| bool | isBold() const |
| bool | isItalic() const |
| void | setBgColor(const QColor &color) |
| void | setBgColorEnabled(bool enabled) |
| void | setBold(bool bold) |
| void | setIdentifierType(YSSCore::Editor::StyleData::IdentifierType type) |
| void | setItalic(bool italic) |
| void | setLineColor(const QColor &color) |
| void | setStyleName(const QString &name) |
| void | setTextColor(const QColor &color) |
| void | setUnderlineType(YSSCore::Editor::StyleData::UnderlineType type) |
详细说明
StyleData表示一个配置节点的样式信息,包括文本颜色、背景颜色、下划线颜色、下划线类型、加粗和斜体等属性。
Note: 这是个Q_GADGET类,支持Visindigo::Utility::JsonConfig的元对象方法,可以自动序列化和反序列化为JSON对象。