RedPanda-CPP/RedPandaIDE/qsynedit/Types.h

36 lines
611 B
C
Raw Normal View History

2021-05-03 10:15:40 +08:00
#ifndef TYPES_H
#define TYPES_H
2021-05-06 20:55:55 +08:00
#include <QIcon>
#include <QList>
#include <QFlags>
2021-05-03 10:15:40 +08:00
enum class SynSelectionMode {smNormal, smLine, smColumn};
struct BufferCoord {
int Char;
int Line;
};
struct DisplayCoord {
int Column;
int Row;
};
2021-05-06 20:55:55 +08:00
enum SynFontStyle {
fsBold = 0x0001,
fsItalic = 0x0002,
fsUnderline = 0x0004,
fsStrikeOut = 0x0008
};
Q_DECLARE_FLAGS(SynFontStyles,SynFontStyle)
Q_DECLARE_OPERATORS_FOR_FLAGS(SynFontStyles)
using PSynIcon = std::shared_ptr<QIcon>;
using SynIconList = QList<PSynIcon>;
using PSynIconList = std::shared_ptr<SynIconList>;
2021-05-03 10:15:40 +08:00
#endif // TYPES_H