88 references to SpatialComparison
PresentationFramework (88)
System\Windows\Documents\FixedSOMContainer.cs (20)
40
SpatialComparison
compareHor = base._CompareHorizontal(compared, false);
41
SpatialComparison
compareVer = base._CompareVertical(compared);
43
Debug.Assert(compareHor !=
SpatialComparison
.None);
44
Debug.Assert(compareVer !=
SpatialComparison
.None);
48
case
SpatialComparison
.Before:
49
if (compareVer !=
SpatialComparison
.After)
55
case
SpatialComparison
.After:
56
if (compareVer !=
SpatialComparison
.Before)
62
case
SpatialComparison
.OverlapBefore:
63
if (compareVer ==
SpatialComparison
.Before)
67
else if (compareVer ==
SpatialComparison
.After)
73
case
SpatialComparison
.OverlapAfter:
74
if (compareVer ==
SpatialComparison
.After)
78
else if (compareVer ==
SpatialComparison
.Before)
84
case
SpatialComparison
.Equal:
87
case
SpatialComparison
.After:
88
case
SpatialComparison
.OverlapAfter:
91
case
SpatialComparison
.Before:
92
case
SpatialComparison
.OverlapBefore:
95
case
SpatialComparison
.Equal:
System\Windows\Documents\FixedSOMGroup.cs (16)
44
SpatialComparison
compareHor = base._CompareHorizontal(compared, RTL);
45
SpatialComparison
compareVer = base._CompareVertical(compared);
47
Debug.Assert(compareHor !=
SpatialComparison
.None);
48
Debug.Assert(compareVer !=
SpatialComparison
.None);
52
case
SpatialComparison
.Before:
56
case
SpatialComparison
.After:
60
case
SpatialComparison
.OverlapBefore:
61
if ((int)compareHor <= (int)
SpatialComparison
.Equal)
71
case
SpatialComparison
.OverlapAfter:
72
if ((int)compareHor >= (int)
SpatialComparison
.Equal)
83
case
SpatialComparison
.Equal:
86
case
SpatialComparison
.After:
87
case
SpatialComparison
.OverlapAfter:
90
case
SpatialComparison
.Before:
91
case
SpatialComparison
.OverlapBefore:
94
case
SpatialComparison
.Equal:
System\Windows\Documents\FixedSOMSemanticBox.cs (52)
98
SpatialComparison
compareHor = _CompareHorizontal(o as FixedSOMSemanticBox, false);
100
SpatialComparison
compareVer = _CompareVertical(o as FixedSOMSemanticBox);
101
Debug.Assert(compareHor !=
SpatialComparison
.None && compareVer !=
SpatialComparison
.None);
104
if (compareHor ==
SpatialComparison
.Equal && compareVer ==
SpatialComparison
.Equal)
108
else if (compareHor ==
SpatialComparison
.Equal)
110
if (compareVer ==
SpatialComparison
.Before || compareVer ==
SpatialComparison
.OverlapBefore)
119
else if (compareVer ==
SpatialComparison
.Equal)
121
if (compareHor ==
SpatialComparison
.Before || compareHor ==
SpatialComparison
.OverlapBefore)
130
else if (compareHor ==
SpatialComparison
.Before)
134
else if (compareHor ==
SpatialComparison
.After)
141
if (compareVer ==
SpatialComparison
.Before)
145
else if (compareVer ==
SpatialComparison
.After)
150
else if (compareHor ==
SpatialComparison
.OverlapBefore)
187
protected
SpatialComparison
_CompareHorizontal(FixedSOMSemanticBox otherBox, bool RTL)
189
SpatialComparison
result =
SpatialComparison
.None;
199
result =
SpatialComparison
.Equal;
205
result =
SpatialComparison
.Before;
210
result =
SpatialComparison
.After;
220
result =
SpatialComparison
.Equal;
226
result =
SpatialComparison
.OverlapBefore;
230
result =
SpatialComparison
.OverlapAfter;
233
if (RTL && result !=
SpatialComparison
.Equal)
242
protected
SpatialComparison
_CompareVertical(FixedSOMSemanticBox otherBox)
244
SpatialComparison
result =
SpatialComparison
.None;
251
result =
SpatialComparison
.Equal;
256
result =
SpatialComparison
.Before;
261
result =
SpatialComparison
.After;
268
result =
SpatialComparison
.OverlapBefore;
272
result =
SpatialComparison
.OverlapAfter;
278
protected int _SpatialToAbsoluteComparison(
SpatialComparison
comparison)
284
case
SpatialComparison
.Before:
285
case
SpatialComparison
.OverlapBefore:
289
case
SpatialComparison
.After:
290
case
SpatialComparison
.OverlapAfter:
293
case
SpatialComparison
.Equal:
303
protected
SpatialComparison
_InvertSpatialComparison(
SpatialComparison
comparison)
305
SpatialComparison
result = comparison;
308
case
SpatialComparison
.Before:
309
result =
SpatialComparison
.After;
311
case
SpatialComparison
.After:
312
result =
SpatialComparison
.Before;
314
case
SpatialComparison
.OverlapBefore:
315
result =
SpatialComparison
.OverlapAfter;
317
case
SpatialComparison
.OverlapAfter:
318
result =
SpatialComparison
.OverlapBefore;