| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2.1 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library; if not, write to the Free Software |
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | */ |
| 18 |
| 19 | #ifndef VRASTER_H |
| 20 | #define VRASTER_H |
| 21 | #include <future> |
| 22 | #include "vglobal.h" |
| 23 | #include "vrect.h" |
| 24 |
| 25 | V_BEGIN_NAMESPACE |
| 26 |
| 27 | class VPath; |
| 28 | class VRle; |
| 29 |
| 30 | class VRasterizer |
| 31 | { |
| 32 | public: |
| 33 | void rasterize(VPath path, FillRule fillRule = FillRule::Winding, const VRect &clip = VRect()); |
| 34 | void rasterize(VPath path, CapStyle cap, JoinStyle join, float width, |
| 35 | float meterLimit, const VRect &clip = VRect()); |
| 36 | VRle rle(); |
| 37 | private: |
| 38 | struct VRasterizerImpl; |
| 39 | void init(); |
| 40 | void updateRequest(); |
| 41 | std::shared_ptr<VRasterizerImpl> d{nullptr}; |
| 42 | }; |
| 43 |
| 44 | V_END_NAMESPACE |
| 45 |
| 46 | #endif // VRASTER_H |
| 47 |