aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2023-04-11 10:05:33 +0200
committermyrtle <gatecat@ds0.me>2023-04-11 19:11:54 +0200
commit6455b5dd2661fd76bccc32a42577fecd4e43752d (patch)
treec6f2e8e3536b3024f4652a78000d49c2215a1b78 /docs
parent9bcefe46a89a1fb55ab86f2e0a3319baf1b92807 (diff)
downloadnextpnr-6455b5dd2661fd76bccc32a42577fecd4e43752d.tar.gz
nextpnr-6455b5dd2661fd76bccc32a42577fecd4e43752d.tar.bz2
nextpnr-6455b5dd2661fd76bccc32a42577fecd4e43752d.zip
viaduct: Add support for GUIs
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'docs')
-rw-r--r--docs/generic.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/generic.md b/docs/generic.md
index 108d41d7..acd7ca4e 100644
--- a/docs/generic.md
+++ b/docs/generic.md
@@ -56,14 +56,14 @@ Adds an input, output or inout pin to a bel, with an associated wire. Note that
Add a bel, wire, pip or subgroup to a group, which will be created if it doesn't already exist. Groups are purely for visual presentation purposes in the user interface and are not used by any place-and-route algorithms.
-### void addDecalGraphic(DecalId decal, const GraphicElement &graphic);
+### void addDecalGraphic(IdStringList decal, const GraphicElement &graphic);
Add a graphic element to a _decal_, a reusable drawing that may be used to represent multiple wires, pips, bels or groups in the UI (with different offsets). The decal will be created if it doesn't already exist
-### void setWireDecal(WireId wire, DecalXY decalxy);
-### void setPipDecal(PipId pip, DecalXY decalxy);
-### void setBelDecal(BelId bel, DecalXY decalxy);
-### void setGroupDecal(GroupId group, DecalXY decalxy);
+### void setWireDecal(WireId wire, float x, float y, IdStringList decal);
+### void setPipDecal(PipId pip, float x, float y, IdStringList decal);
+### void setBelDecal(BelId bel, float x, float y, IdStringList decal);
+### void setGroupDecal(GroupId group, float x, float y, IdStringList decal);
Sets the decal ID and offset for a wire, bel, pip or group in the UI.