28 namespace RectClipFlags
30 const sal_uInt32
LEFT = sal_Int32(0x01);
31 const sal_uInt32
RIGHT = sal_Int32(0x02);
32 const sal_uInt32
TOP = sal_Int32(0x04);
33 const sal_uInt32
BOTTOM = sal_Int32(0x08);
44 template<
class Po
int,
class Rect >
inline
50 clip = (rP.
getX() < rR.getMinX()) << 0;
51 clip |= (rP.
getX() > rR.getMaxX()) << 1;
52 clip |= (rP.
getY() < rR.getMinY()) << 2;
53 clip |= (rP.
getY() > rR.getMaxY()) << 3;
58 template<
class Po
int >
inline
constexpr tools::Long getX() const
constexpr tools::Long getY() const
A two-dimensional interval over integers.
sal_Int32 getMaxX() const
get upper bound of the set. returns arbitrary values for empty sets.
sal_Int32 getMinX() const
get lower bound of the set. returns arbitrary values for empty sets.
sal_Int32 getMaxY() const
get upper bound of the set. returns arbitrary values for empty sets.
sal_Int32 getMinY() const
get lower bound of the set. returns arbitrary values for empty sets.
sal_uInt32 getCohenSutherlandClipFlags(const Point &rP, const Rect &rR)
Calc clip mask for Cohen-Sutherland rectangle clip.