BPicture: add fill rule support
Change-Id: I068e1c2e8659f7b90c6d7c7331a8bb25ae343fe9 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2922 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
@@ -41,6 +41,7 @@ public:
|
||||
status_t WriteSetLineMode(const cap_mode& cap,
|
||||
const join_mode& join,
|
||||
const float& miterLimit);
|
||||
status_t WriteSetFillRule(int32 fillRule);
|
||||
status_t WriteSetScale(const float& scale);
|
||||
status_t WriteSetTransform(BAffineTransform transform);
|
||||
status_t WriteTranslateBy(double x, double y);
|
||||
|
||||
@@ -102,6 +102,7 @@ struct picture_player_callbacks {
|
||||
void (*draw_ellipse_gradient)(void* userData, const BRect& rect, BGradient& gradient, bool fill);
|
||||
void (*draw_polygon_gradient)(void* userData, size_t numPoints, const BPoint points[], bool isClosed, BGradient& gradient, bool fill);
|
||||
void (*draw_shape_gradient)(void* userData, const BShape& shape, BGradient& gradient, bool fill);
|
||||
void (*set_fill_rule)(void* userData, int32 fillRule);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ enum {
|
||||
B_PIC_SET_STIPLE_PATTERN = 0x0308,
|
||||
B_PIC_ENTER_FONT_STATE = 0x0309,
|
||||
B_PIC_SET_BLENDING_MODE = 0x030A,
|
||||
B_PIC_SET_FILL_RULE = 0x030B,
|
||||
B_PIC_SET_FONT_FAMILY = 0x0380,
|
||||
B_PIC_SET_FONT_STYLE = 0x0381,
|
||||
B_PIC_SET_FONT_SPACING = 0x0382,
|
||||
@@ -76,7 +77,7 @@ enum {
|
||||
};
|
||||
|
||||
|
||||
const static uint32 kOpsTableSize = 70;
|
||||
const static uint32 kOpsTableSize = 71;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user