mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
27 lines
637 B
C++
27 lines
637 B
C++
#ifndef __CAIROIMAGE_H
|
|
#define __CAIROIMAGE_H
|
|
|
|
#include <cairo.h>
|
|
#include <vdr/osd.h>
|
|
#include <string>
|
|
#include <sstream>
|
|
#include "../coreengine/definitions.h"
|
|
|
|
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);
|
|
cImage *GetImage(void);
|
|
};
|
|
#endif //__CAIROIMAGE_H
|