#include <QSize>
#include <QSet>
#include <QPoint>
Go to the source code of this file.
|
uint | qHash (const QPoint &key) |
|
bool | isPointInBounds (int x, int y, int width, int height) |
| Returns true if the point is in bounds, false otherwise. More...
|
|
bool | isPointInBounds (int x, int y, QSize size) |
|
bool | isPointInBounds (QPoint pt, QSize size) |
|
QSet< QPoint > | getValidNeighbors (int x, int y, int width, int height) |
| Returns the coordinates of all (up to 8) in-bounds neighbors of the point. More...
|
|
QSet< QPoint > | getValidNeighbors (int x, int y, QSize size) |
|
QSet< QPoint > | getValidNeighbors (QPoint pt, QSize size) |
|
◆ getValidNeighbors() [1/3]
QSet<QPoint> getValidNeighbors |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
Returns the coordinates of all (up to 8) in-bounds neighbors of the point.
◆ getValidNeighbors() [2/3]
QSet<QPoint> getValidNeighbors |
( |
int |
x, |
|
|
int |
y, |
|
|
QSize |
size |
|
) |
| |
◆ getValidNeighbors() [3/3]
QSet<QPoint> getValidNeighbors |
( |
QPoint |
pt, |
|
|
QSize |
size |
|
) |
| |
◆ isPointInBounds() [1/3]
bool isPointInBounds |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
Returns true if the point is in bounds, false otherwise.
◆ isPointInBounds() [2/3]
bool isPointInBounds |
( |
int |
x, |
|
|
int |
y, |
|
|
QSize |
size |
|
) |
| |
◆ isPointInBounds() [3/3]
bool isPointInBounds |
( |
QPoint |
pt, |
|
|
QSize |
size |
|
) |
| |
◆ qHash()
uint qHash |
( |
const QPoint & |
key | ) |
|
|
inline |