14 FontLineCollectionWrapper(LineCollection *coll, std::vector<int> &types,
float sx,
float sy,
float dx,
float dy) : coll(coll), m_sx(sx), m_sy(sy), m_dx(dx), m_dy(
dy), types(types) { }
15 virtual float SizeX()
const {
return m_sx; }
16 virtual float SizeY()
const {
return m_sy; }
17 virtual int Size()
const {
return coll->NumLines()+1; }
18 virtual Point2d
Map(
int i)
const {
19 Point p = coll->LinePoint(i,0);
20 if (i==
Size()-1) p=coll->LinePoint(
Size()-2,1);
21 Point2d pp = { p.
x, p.
y };
27 virtual PlanePointsType
Type(
int i)
const
43 std::vector<int> types;
61 virtual int SizeX()
const;
62 virtual int SizeY()
const;
63 virtual int Map(
int x,
int y)
const;
68 std::vector<int> &
Types()
const {
return const_cast<std::vector<int>&
>(
types); }
Type
Definition Database.hh:9
size dy
Definition GameApi_gui.cc:1727
std::vector< int > types
Definition FreeType.hh:84
std::vector< Point2d > points
Definition FreeType.hh:85
float m_sy
Definition FreeType.hh:77
int sx
Definition FreeType.hh:82
void load_glyph(long idx)
Definition FreeType.cc:30
virtual int NumLines() const
Definition FreeType.cc:132
void Prepare()
Definition FreeType.hh:56
virtual int SizeX() const
Definition FreeType.cc:228
int state
Definition FreeType.hh:88
float m_sx
Definition FreeType.hh:77
void * priv_
Definition FreeType.hh:81
int sy
Definition FreeType.hh:82
int bitmap_top(long idx) const
Definition FreeType.cc:217
void check_load()
Definition FreeType.cc:143
virtual int SizeY() const
Definition FreeType.cc:240
std::vector< int > & Types() const
Definition FreeType.hh:68
void Collect(CollectVisitor &vis)
Definition FreeType.hh:54
FontGlyphBitmap(GameApi::Env &e, void *priv_, std::string filename, int sx, int sy)
Definition FreeType.cc:18
~FontGlyphBitmap()
Definition FreeType.cc:26
void load_glyph_outline(long idx, float sx, float sy)
Definition FreeType.cc:193
long m_idx
Definition FreeType.hh:80
std::string filename
Definition FreeType.hh:79
GameApi::Env & e
Definition FreeType.hh:78
std::vector< Point2d > control2
Definition FreeType.hh:87
virtual int Map(int x, int y) const
Definition FreeType.cc:252
long old_idx
Definition FreeType.hh:89
virtual Point LinePoint(int line, int point) const
Definition FreeType.cc:137
std::vector< Point2d > control1
Definition FreeType.hh:86
Point2d move_point
Definition FreeType.hh:83
void HeavyPrepare()
Definition FreeType.hh:55
Definition GameApi.hh:362
Definition EffectI.hh:305
virtual Point2d Map(int i) const =0
virtual float SizeX() const =0
virtual float SizeY() const =0
virtual int Size() const =0
@ EConic
Definition Graph.hh:8321
@ EMove
Definition Graph.hh:8321
@ ELineTo
Definition Graph.hh:8321
@ ECubic
Definition Graph.hh:8321
Definition FreeType.hh:46
Definition FreeType.cc:11
Definition VectorTools.hh:910
float x
Definition VectorTools.hh:911
float y
Definition VectorTools.hh:911
float x
Definition Parser.cc:60
float y
Definition Parser.cc:60