1 typedef unsigned char uchar;
2 typedef unsigned int uint;
4 template < typename Enum > class QFlags {
6 ShowBase = 0x1, ForcePoint = 0x2, ForceSign =
7 0x4, UppercaseBase = 0x8, UppercaseDigits = 0x10
11 class __attribute__ ((visibility("default"))) QPainterPath {
15 EdgeRight = 0x1, EdgeDown = 0x2, EdgeLeft = 0x4, EdgeUp = 0x8
17 void qt_addBitmapToPath(qreal x0, qreal y0, const uchar * image_data, int bpl,
18 int w, int h, QPainterPath * path)
20 uint *grid = new uint[(w + 1) * (h + 1)];
21 for (int y = 0; y <= h; ++y) {
22 for (int x = 0; x <= w; ++x) {
25 0) ? false : (*(image_data +
34 h) ? false : (*(image_data + (y) * bpl +
40 if ((!bottomLeft) & topLeft)
41 grid[(y) * (w + 1) + (x)] |= EdgeLeft;