SILICON
Loading...
Searching...
No Matches
portGeometry.hpp File Reference
#include <algorithm>
#include <utility>
#include <QPoint>
#include <QRect>
Include dependency graph for portGeometry.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RectEdges

Namespaces

namespace  SILICON
namespace  SILICON::ui
namespace  SILICON::ui::portGeometryDetail

Enumerations

enum class  PortSide { LEFT , RIGHT , UP , DOWN }

Functions

RectEdges rectEdges (const QRect &rect)
bool isPortPositionOutside (const QPoint &pt, const QRect &rect)
 Returns whether a position lies strictly beyond a rectangle boundary.
std::pair< PortSide, QPoint > nearestPortSide (const QPoint &pt, const QRect &rect)
 Finds the nearest rectangle side for an interior or exterior point.