25 #include "lv_rectangle.h"
26 #include "lv_common.h"
33 if (x > (r.x + r.width - 1))
36 if (y > (r.y + r.height - 1))
39 if (r.x > (x + width - 1))
42 if (r.y > (y + height - 1))
56 if ((r.x + r.width) > (x + width))
59 if ((r.y + r.height) > (y + height))
76 result.width = r.width - (x - r.x);
81 result.height = r.height - (y - r.y);
86 if (result.x + result.width > width)
87 result.width = width - result.x;
89 if (result.y + result.height > height)
90 result.height = height - result.y;
95 void Rect::denormalize_points (
float const* fxlist,
float const* fylist, int32_t *xlist, int32_t *ylist,
unsigned int size)
const
97 visual_return_if_fail (fxlist !=
nullptr);
98 visual_return_if_fail (fylist !=
nullptr);
99 visual_return_if_fail (xlist !=
nullptr);
100 visual_return_if_fail (ylist !=
nullptr);
101 visual_return_if_fail (size > 0);
109 visual_return_if_fail (fxlist !=
nullptr);
110 visual_return_if_fail (fylist !=
nullptr);
111 visual_return_if_fail (xlist !=
nullptr);
112 visual_return_if_fail (ylist !=
nullptr);
113 visual_return_if_fail (size > 0);