X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fmodel%2Fwires%2FPin.java;h=abafc07125746ee41cccf422960f8663262718ac;hb=6be56cf523b4125e1946c56a574ca710a76950f6;hp=44ea3742206bc34c4c972b637e65d2870225a7b8;hpb=e409fc642b81a7e1a50b13067882e3f40cb903cc;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/model/wires/Pin.java b/LogicUI/src/era/mi/gui/model/wires/Pin.java index 44ea3742..abafc071 100644 --- a/LogicUI/src/era/mi/gui/model/wires/Pin.java +++ b/LogicUI/src/era/mi/gui/model/wires/Pin.java @@ -11,15 +11,17 @@ import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle; public class Pin { public final GUIComponent component; + public final int logicWidth; protected double relX; protected double relY; private final List> pinMovedListeners; - public Pin(GUIComponent component, double relX, double relY) + public Pin(GUIComponent component, int logicWidth, double relX, double relY) { this.component = component; + this.logicWidth = logicWidth; this.relX = relX; this.relY = relY;