You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
620 B

#ifndef FLAGPAINTER_H
#define FLAGPAINTER_H
#include <QPainter>
#include <QColor>
#include <stdint.h>
#define MEMBER_FLAG_SUPERNODE 0x01
#define MEMBER_FLAG_ADMIN 0x02
#define MEMBER_FLAG_MODER 0x04
#define MEMBER_FLAG_DELETED 0x08
class FlagPainter {
public:
static void draw(QPainter* p, uint8_t flags, int x, int y, int sz);
static void drawStorage(QPainter* p, int x, int y, int sz);
private:
static void drawLightning(QPainter* p, int x, int y, int sz);
static void drawStar(QPainter* p, int x, int y, int sz);
static void drawShield(QPainter* p, int x, int y, int sz);
};
#endif