Newer
Older
#ifndef IDENTICON_H
#define IDENTICON_H
#include <QByteArray>
class Identicon
{
private:
int size_;
rendering::IconGenerator iconGenerator_;
IdenticonStyle style_;
static IdenticonStyle defaultStyle_;
rendering::Rectangle getIconBounds();
static Identicon fromHash(QByteArray &hash, int size);
static Identicon fromHash(QString &hash, int size);
static QString generateSvg(Identicon &identicon, bool fragment);
void draw(rendering::Renderer &renderer, rendering::Rectangle &rect);
};
#endif // IDENTICON_H