#include <LabelLayouterHelper.h>
◆ ScreenPixelRectangle() [1/2]
osmscout::ScreenPixelRectangle::ScreenPixelRectangle |
( |
| ) |
|
|
default |
◆ ScreenPixelRectangle() [2/2]
osmscout::ScreenPixelRectangle::ScreenPixelRectangle |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
inline |
◆ Intersects()
Returns true , if the area of the rectangles intersect.
The area is defined by area including [x-x+width-1] and [y,y+height-1]. x+width or y+height is outside the rectangle.
- Parameters
-
- Returns
- true, if areas intersect, else false
References height, width, x, and y.
◆ height
int osmscout::ScreenPixelRectangle::height |
◆ width
int osmscout::ScreenPixelRectangle::width |
int osmscout::ScreenPixelRectangle::x |
int osmscout::ScreenPixelRectangle::y |
The documentation for this struct was generated from the following file: