Version 4.3.0.0.beta1, tag libreoffice-4.3.0.0.beta1
[LibreOffice.git] / include / basegfx / polygon / b2dpolypolygonfillrule.hxx
blobfb7d1ab4f6766bd71e3f8dee7e776eef42d266ee
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_BASEGFX_POLYGON_B2DPOLYPOLYGONFILLRULE_HXX
21 #define INCLUDED_BASEGFX_POLYGON_B2DPOLYPOLYGONFILLRULE_HXX
23 #include <sal/types.h>
27 namespace basegfx
29 /** Fill rule to use for poly-polygon filling.
31 The fill rule determines which areas are inside, and which are
32 outside the poly-polygon.
34 enum FillRule
36 /** Areas, for which a scanline has crossed an odd number of
37 vertices, are regarded 'inside', the remainder 'outside'
38 of the poly-polygon.
40 FillRule_EVEN_ODD,
42 /** For each edge a scanline crosses, a current winding number
43 is updated. Downward edges count +1, upward edges count
44 -1. If the total accumulated winding number for one area
45 is not zero, this area is regarded 'inside', otherwise,
46 'outside'.
48 FillRule_NONZERO_WINDING_NUMBER
52 #endif // INCLUDED_BASEGFX_POLYGON_B2DPOLYPOLYGONFILLRULE_HXX
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */