diff options
| author | Clifford Wolf <clifford@clifford.at> | 2018-06-04 12:02:58 +0200 | 
|---|---|---|
| committer | Clifford Wolf <clifford@clifford.at> | 2018-06-04 12:02:58 +0200 | 
| commit | eb3c89bee97f76d12d68aaf3f150259277b615b8 (patch) | |
| tree | 6b74316bcac2cd677edefbb0a439d52912f25428 /common | |
| parent | 6840ffd9c09fd045f26afdb6d8ee329f628074c1 (diff) | |
| download | nextpnr-eb3c89bee97f76d12d68aaf3f150259277b615b8.tar.gz nextpnr-eb3c89bee97f76d12d68aaf3f150259277b615b8.tar.bz2 nextpnr-eb3c89bee97f76d12d68aaf3f150259277b615b8.zip | |
Replace GuiLine with GraphicElement
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common')
| -rw-r--r-- | common/design.h | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/common/design.h b/common/design.h index edf7dba1..e87304bf 100644 --- a/common/design.h +++ b/common/design.h @@ -34,6 +34,19 @@ template<typename T> using pool = std::unordered_set<T>;  template<typename T, typename U> using dict = std::unordered_map<T, U>;  using std::vector; +struct GraphicElement +{ +	enum { +		G_LINE, +		G_BOX, +		G_CIRCLE, +		G_LABEL +	} type; + +	float x1, y1, x2, y2, z; +	std::string text; +}; +  #include "chip.h"  struct CellInfo; | 
