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