app_server & interface kit: support fill rules.

* BView gets SetFillRule/FillRule methods. The fill rule is part of the
view state.
* The B_NONZERO rule is the default. This is what we implemented before.
* The B_EVEN_ODD rule is the other common possibility for this, and
we need to support it to help WebKit to render properly.
This commit is contained in:
Adrien Destugues
2014-03-11 17:27:42 +01:00
parent 98e26ff242
commit eb43166326
13 changed files with 137 additions and 1 deletions
+5 -1
View File
@@ -40,8 +40,9 @@ enum {
B_VIEW_VIEW_COLOR_BIT = 0x00010000,
B_VIEW_PATTERN_BIT = 0x00020000,
B_VIEW_TRANSFORM_BIT = 0x00040000,
B_VIEW_FILL_RULE_BIT = 0x00080000,
B_VIEW_ALL_BITS = 0x0007ffff,
B_VIEW_ALL_BITS = 0x000fffff,
// these used for archiving only
B_VIEW_RESIZE_BIT = 0x00001000,
@@ -123,6 +124,9 @@ class ViewState {
cap_mode line_cap;
float miter_limit;
// fill rule
int32 fill_rule;
// alpha blending
source_alpha alpha_source_mode;
alpha_function alpha_function_mode;