aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-26 22:40:45 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-26 22:40:45 +0100
commitdf908374dc233c23aef0790cbce65aa0a58c81ec (patch)
treed467c0c385f967e1bf2b030d34c62492228fda4d /common
parent567566585ce9c4e15bd72f914084a92f7a62d553 (diff)
downloadnextpnr-df908374dc233c23aef0790cbce65aa0a58c81ec.tar.gz
nextpnr-df908374dc233c23aef0790cbce65aa0a58c81ec.tar.bz2
nextpnr-df908374dc233c23aef0790cbce65aa0a58c81ec.zip
gui: implement basic cursor picking
Diffstat (limited to 'common')
-rw-r--r--common/nextpnr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index 5e32d5b6..908b8266 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -204,6 +204,11 @@ struct DecalXY
{
DecalId decal;
float x = 0, y = 0;
+
+ bool operator==(const DecalXY &other) const
+ {
+ return (decal == other.decal && x == other.x && y == other.y);
+ }
};
struct BelPin