libosmscout 1.1.1
Loading...
Searching...
No Matches
osmscout::ScreenPixelRectangle Struct Reference

#include <libosmscout-map/include/osmscoutmap/LabelLayouterHelper.h>

Public Member Functions

 ScreenPixelRectangle ()=default
 ScreenPixelRectangle (int x, int y, int width, int height)
bool Intersects (const ScreenPixelRectangle &other) const

Public Attributes

int x
int y
int width
int height

Constructor & Destructor Documentation

◆ ScreenPixelRectangle() [1/2]

osmscout::ScreenPixelRectangle::ScreenPixelRectangle ( )
default

◆ ScreenPixelRectangle() [2/2]

osmscout::ScreenPixelRectangle::ScreenPixelRectangle ( int x,
int y,
int width,
int height )
inline

Member Function Documentation

◆ Intersects()

bool osmscout::ScreenPixelRectangle::Intersects ( const ScreenPixelRectangle & other) const
inline

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
otherrectangle
Returns
true, if areas intersect, else false

Member Data Documentation

◆ height

int osmscout::ScreenPixelRectangle::height

◆ width

int osmscout::ScreenPixelRectangle::width

◆ x

int osmscout::ScreenPixelRectangle::x

◆ y

int osmscout::ScreenPixelRectangle::y

The documentation for this struct was generated from the following file: