summaryrefslogtreecommitdiff
path: root/tikzit/src/data/nodestyle.h
blob: baf967c6cdf3f6dd7ab9d0b4d286209a97e4bccd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef NODESTYLE_H
#define NODESTYLE_H

#include <QColor>

enum NodeShape {
    Square, UpTriangle, DownTriangle, Circle
};

class NodeStyle
{
public:
    NodeStyle();
    NodeStyle(QString nm, NodeShape sh, QColor fillCol);
    NodeStyle(QString nm, NodeShape sh, QColor fillCol, QColor strokeCol, int strokeThick);
    bool isNone();
    QString name;
    NodeShape shape;
    QColor fillColor;
    QColor strokeColor;
    int strokeThickness;
};

extern NodeStyle noneStyle;

#endif // NODESTYLE_H