Blame c++/freetype/src/freetypeview.h
|
|
b8976b |
#ifndef FREETYPEVIEW_H
|
|
|
b8976b |
#define FREETYPEVIEW_H
|
|
|
b8976b |
|
|
|
b8976b |
#include "view.h"
|
|
|
b8976b |
|
|
|
b8976b |
class FreeTypeView: public View {
|
|
|
b8976b |
public:
|
|
|
b8976b |
class Params {
|
|
|
b8976b |
public:
|
|
|
b8976b |
std::string family;
|
|
|
b8976b |
bool bold;
|
|
|
b8976b |
bool italic;
|
|
|
b8976b |
Real size;
|
|
|
b8976b |
|
|
|
71e4f2 |
bool hinting;
|
|
|
f77c6c |
bool antialiasing;
|
|
|
71e4f2 |
|
|
|
f77c6c |
int alignment;
|
|
|
f77c6c |
bool justify;
|
|
|
f77c6c |
Real wrap_width;
|
|
|
f77c6c |
|
|
|
f77c6c |
Real hor_spacing;
|
|
|
f77c6c |
Real vert_spacing;
|
|
|
f77c6c |
|
|
|
f77c6c |
IntVector2 origin;
|
|
|
71e4f2 |
Matrix matrix;
|
|
|
b8976b |
Color color;
|
|
|
b8976b |
|
|
|
b8976b |
std::string text;
|
|
|
b8976b |
|
|
|
f77c6c |
Params():
|
|
|
f77c6c |
bold(),
|
|
|
f77c6c |
italic(),
|
|
|
f77c6c |
size(),
|
|
|
f77c6c |
hinting(),
|
|
|
f77c6c |
antialiasing(),
|
|
|
f77c6c |
alignment(),
|
|
|
f77c6c |
justify(),
|
|
|
f77c6c |
wrap_width(),
|
|
|
f77c6c |
hor_spacing(),
|
|
|
f77c6c |
vert_spacing()
|
|
|
f77c6c |
{ }
|
|
|
b8976b |
};
|
|
|
b8976b |
|
|
|
f77c6c |
View::PointPtr p0, px, py;
|
|
|
f77c6c |
Vector2 prev_p0;
|
|
|
f77c6c |
|
|
|
b8976b |
Params params;
|
|
|
b8976b |
Cairo::RefPtr<cairo::imagesurface> surface;</cairo::imagesurface>
|
|
|
b8976b |
|
|
|
b8976b |
FreeTypeView();
|
|
|
b8976b |
~FreeTypeView();
|
|
|
b8976b |
|
|
|
b8976b |
bool on_timeout();
|
|
|
b8976b |
|
|
|
b8976b |
void update_surface();
|
|
|
f77c6c |
void on_point_motion(const View::PointPtr &point);
|
|
|
b8976b |
void on_draw_view(const Cairo::RefPtr<cairo::context> &context);</cairo::context>
|
|
|
b8976b |
};
|
|
|
b8976b |
|
|
|
b8976b |
#endif
|
|
|
b8976b |
|