88 references to SpatialComparison
PresentationFramework (88)
src\Framework\System\Windows\Documents\FixedSOMContainer.cs (20)
49
SpatialComparison
compareHor = base._CompareHorizontal(compared, false);
50
SpatialComparison
compareVer = base._CompareVertical(compared);
52
Debug.Assert(compareHor !=
SpatialComparison
.None);
53
Debug.Assert(compareVer !=
SpatialComparison
.None);
58
case
SpatialComparison
.Before:
59
if (compareVer !=
SpatialComparison
.After)
65
case
SpatialComparison
.After:
66
if (compareVer !=
SpatialComparison
.Before)
72
case
SpatialComparison
.OverlapBefore:
73
if (compareVer ==
SpatialComparison
.Before)
77
else if (compareVer ==
SpatialComparison
.After)
83
case
SpatialComparison
.OverlapAfter:
84
if (compareVer ==
SpatialComparison
.After)
88
else if (compareVer ==
SpatialComparison
.Before)
94
case
SpatialComparison
.Equal:
97
case
SpatialComparison
.After:
98
case
SpatialComparison
.OverlapAfter:
101
case
SpatialComparison
.Before:
102
case
SpatialComparison
.OverlapBefore:
105
case
SpatialComparison
.Equal:
src\Framework\System\Windows\Documents\FixedSOMGroup.cs (16)
53
SpatialComparison
compareHor = base._CompareHorizontal(compared, RTL);
54
SpatialComparison
compareVer = base._CompareVertical(compared);
56
Debug.Assert(compareHor !=
SpatialComparison
.None);
57
Debug.Assert(compareVer !=
SpatialComparison
.None);
62
case
SpatialComparison
.Before:
66
case
SpatialComparison
.After:
70
case
SpatialComparison
.OverlapBefore:
71
if ((int)compareHor <= (int)
SpatialComparison
.Equal)
81
case
SpatialComparison
.OverlapAfter:
82
if ((int)compareHor >= (int)
SpatialComparison
.Equal)
93
case
SpatialComparison
.Equal:
96
case
SpatialComparison
.After:
97
case
SpatialComparison
.OverlapAfter:
100
case
SpatialComparison
.Before:
101
case
SpatialComparison
.OverlapBefore:
104
case
SpatialComparison
.Equal:
src\Framework\System\Windows\Documents\FixedSOMSemanticBox.cs (52)
107
SpatialComparison
compareHor = _CompareHorizontal(o as FixedSOMSemanticBox, false);
109
SpatialComparison
compareVer = _CompareVertical(o as FixedSOMSemanticBox);
110
Debug.Assert(compareHor !=
SpatialComparison
.None && compareVer !=
SpatialComparison
.None);
113
if (compareHor ==
SpatialComparison
.Equal && compareVer ==
SpatialComparison
.Equal)
117
else if (compareHor ==
SpatialComparison
.Equal)
119
if (compareVer ==
SpatialComparison
.Before || compareVer ==
SpatialComparison
.OverlapBefore)
128
else if (compareVer ==
SpatialComparison
.Equal)
130
if (compareHor ==
SpatialComparison
.Before || compareHor ==
SpatialComparison
.OverlapBefore)
139
else if (compareHor ==
SpatialComparison
.Before)
143
else if (compareHor ==
SpatialComparison
.After)
150
if (compareVer ==
SpatialComparison
.Before)
154
else if (compareVer ==
SpatialComparison
.After)
159
else if (compareHor ==
SpatialComparison
.OverlapBefore)
196
protected
SpatialComparison
_CompareHorizontal(FixedSOMSemanticBox otherBox, bool RTL)
198
SpatialComparison
result =
SpatialComparison
.None;
208
result =
SpatialComparison
.Equal;
214
result =
SpatialComparison
.Before;
219
result =
SpatialComparison
.After;
229
result =
SpatialComparison
.Equal;
235
result =
SpatialComparison
.OverlapBefore;
239
result =
SpatialComparison
.OverlapAfter;
242
if (RTL && result !=
SpatialComparison
.Equal)
251
protected
SpatialComparison
_CompareVertical(FixedSOMSemanticBox otherBox)
253
SpatialComparison
result =
SpatialComparison
.None;
260
result =
SpatialComparison
.Equal;
265
result =
SpatialComparison
.Before;
270
result =
SpatialComparison
.After;
277
result =
SpatialComparison
.OverlapBefore;
281
result =
SpatialComparison
.OverlapAfter;
287
protected int _SpatialToAbsoluteComparison(
SpatialComparison
comparison)
293
case
SpatialComparison
.Before:
294
case
SpatialComparison
.OverlapBefore:
298
case
SpatialComparison
.After:
299
case
SpatialComparison
.OverlapAfter:
302
case
SpatialComparison
.Equal:
312
protected
SpatialComparison
_InvertSpatialComparison(
SpatialComparison
comparison)
314
SpatialComparison
result = comparison;
317
case
SpatialComparison
.Before:
318
result =
SpatialComparison
.After;
320
case
SpatialComparison
.After:
321
result =
SpatialComparison
.Before;
323
case
SpatialComparison
.OverlapBefore:
324
result =
SpatialComparison
.OverlapAfter;
326
case
SpatialComparison
.OverlapAfter:
327
result =
SpatialComparison
.OverlapBefore;