vdr-plugin-skindesigner/extensions/cairoimage.h

27 lines
637 B
C
Raw Normal View History

2015-03-12 17:28:35 +01:00
#ifndef __CAIROIMAGE_H
#define __CAIROIMAGE_H
#include <cairo.h>
#include <vdr/osd.h>
#include <string>
#include <sstream>
2016-01-26 18:32:38 +01:00
#include "../coreengine/definitions.h"
2015-03-12 17:28:35 +01:00
using namespace std;
class cCairoImage {
private:
int width;
int height;
cairo_surface_t *surface;
cairo_t *cr;
void SetColor(tColor color);
int GetTextWidth(string text, string font, int size);
public:
cCairoImage(void);
virtual ~cCairoImage();
void InitCairoImage(int width, int height);
void DrawTextVertical(string text, tColor color, string font, int size, int direction);
2015-03-12 17:28:35 +01:00
cImage *GetImage(void);
};
#endif //__CAIROIMAGE_H