1 module cassowary.EditInfo;
2 
3 import cassowary.Constraint;
4 import cassowary.SlackVariable;
5 
6 protected class ClEditInfo
7 {
8 	this(ClConstraint cn_, ClSlackVariable eplus_, ClSlackVariable eminus_, double prevEditConstant_, size_t i_)
9 	{
10 		cn = cn_;
11 		clvEditPlus = eplus_;
12 		clvEditMinus = eminus_;
13 		prevEditConstant = prevEditConstant_;
14 		i = i_;
15 	}
16 
17 	size_t Index() const
18 	{
19 		return i;
20 	}
21 
22 	ClConstraint Constraint()
23 	{
24 		return cn;
25 	}
26 
27 	ClSlackVariable ClvEditPlus()
28 	{
29 		return clvEditPlus;
30 	}
31 
32 	ClSlackVariable ClvEditMinus()
33 	{
34 		return clvEditMinus;
35 	}
36 
37 	double PrevEditConstant() const
38 	{
39 		return prevEditConstant;
40 	}
41 
42 	void SetPrevEditConstant(double prevEditConstant_)
43 	{
44 		prevEditConstant = prevEditConstant_;
45 	}
46 
47 	private ClConstraint cn;
48 	private ClSlackVariable clvEditPlus;
49 	private ClSlackVariable clvEditMinus;
50 	private double prevEditConstant;
51 	private size_t i;
52 }