Project

General

Profile

WPainterPath could be more useful

Added by Ulf Johnsson about 4 years ago

Hi!

I would like to see the WPainterPath extended with the following functions, if possible:

bool WPainterPath::intersects(const WPainterPath &other) Returns true if the paths intersect each other

WPainterPath::intersected(const WPainterPath &other) Returns a a path och the intersected area of the 2 paths

std::vector WPainterPath::toPolygon() Creates a "polygon" of all the points in the path and returns it

This would be of great help when working with complex objects and painter-clipping.

BR, Ulf.