94 references to PointUtil
PresentationCore (54)
MS\Internal\Automation\ElementUtil.cs (2)
155Point pointClient = PointUtil.ScreenToClient( pointScreen, hwndSource ); 156Point pointRoot = PointUtil.ClientToRoot(pointClient, hwndSource);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (1)
247Matrix matrixRootTransform = PointUtil.GetVisualTransform(target.RootVisual);
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (3)
189Rect rectRoot = PointUtil.ElementToRoot(rectElement, VisualTreeHelper.GetContainingVisual2D(_owner), presentationSource); 190Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource); 191rect = PointUtil.ClientToScreen(rectClient, hwndSource);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (9)
187Rect rectRoot = PointUtil.ElementToRoot(rectElement, _owner, presentationSource); 188Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource); 189Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource); 210Rect rectRoot = PointUtil.ElementToRoot(rectElement, _owner, presentationSource); 211Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource); 212Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource); 504Rect rectRoot = PointUtil.ElementToRoot(rectElement, _owner, presentationSource); 505Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource); 506Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource);
System\Windows\DragDrop.cs (2)
1279clientPoint = PointUtil.ScreenToClient(screenPoint, source); 1363targetPoint = PointUtil.ClientToRoot(targetPoint, source);
System\Windows\Input\InputElement.cs (4)
278ptTranslated = PointUtil.RootToClient(ptTranslated, sourceFrom); 281Point ptScreen = PointUtil.ClientToScreen(ptTranslated, sourceFrom); 284ptTranslated = PointUtil.ScreenToClient(ptScreen, sourceTo); 287ptTranslated = PointUtil.ClientToRoot(ptTranslated, sourceTo);
System\Windows\Input\MouseDevice.cs (8)
121ptScreen = PointUtil.ClientToScreen(_lastPosition, activeSource); 169Point ptClient = PointUtil.ScreenToClient(ptScreen, presentationSource); 584ptRoot = PointUtil.TryClientToRoot(ptClient, relativePresentationSource, false, out success); 1298Point ptRoot = PointUtil.TryClientToRoot(ptClient, rawMouseInputReport.InputSource, false, out success); 2097Point ptClient = clientUnits ? pt : PointUtil.RootToClient(pt, inputSource); 2103Point ptScreen = PointUtil.ClientToScreen(ptClient, source); 2123Point ptClientHit = PointUtil.ScreenToClient(ptScreen, sourceHit); 2158Point rootPt = clientUnits ? PointUtil.ClientToRoot(pt, inputSource) : pt;
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (3)
612Point ptDevice = PointUtil.ScreenToClient(rawScreenPoint, _inputSource); 740Point ptClient = PointUtil.ScreenToClient(curPoint, relativePresentationSource); 741Point ptRoot = PointUtil.ClientToRoot(ptClient, relativePresentationSource);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (6)
608pt = PointUtil.ScreenToClient(pt, mouseInputReport.InputSource); 1751Point pt = PointUtil.ScreenToClient(stylusDevice.LastMouseScreenPoint, mouseInputSource); 2851pt = PointUtil.ScreenToClient(pt, mouseInputSource); 2944Point ptScreen = PointUtil.ClientToScreen(ptClient, source); 2963ptClientHit = PointUtil.ScreenToClient(ptScreen, sourceHit); 3219penContexts.DestroyedLocation = PointUtil.ClientToScreen(new Point(0, 0), hwndSource);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (9)
320Point ptDevice = PointUtil.ScreenToClient(_lastScreenLocation, _inputSource); 1192Point ptClient = PointUtil.ScreenToClient(_lastScreenLocation, relativePresentationSource); 1193Point ptRoot = PointUtil.ClientToRoot(ptClient, relativePresentationSource); 1412Point newWindowLocation = PointUtil.ClientToScreen(new Point(0, 0), inputSource); 1431_lastScreenLocation = PointUtil.ClientToScreen(pt, inputSource); 1469dragPosition = PointUtil.ClientToScreen(dragPosition, inputSource); 1632Point newWindowLocation = PointUtil.ClientToScreen(new Point(0, 0), inputSource); 1646_lastScreenLocation = PointUtil.ClientToScreen(pt, inputSource); 1666Point pt = PointUtil.ScreenToClient(_lastMouseScreenLocation, mouseInputSource);
System\Windows\InterOp\HwndMouseInputProvider.cs (3)
290currentPosition = PointUtil.ScreenToClient(currentPosition, inputSource); 291currentPosition = PointUtil.ClientToRoot(currentPosition, inputSource); 1440currentPosition = PointUtil.ClientToScreen(currentPosition, _source);
System\Windows\Media\Visual.cs (4)
4734point = PointUtil.RootToClient(point, inputSource); 4735point = PointUtil.ClientToScreen(point, inputSource); 4756point = PointUtil.ScreenToClient(point, inputSource); 4757point = PointUtil.ClientToRoot(point, inputSource);
PresentationFramework (40)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (2)
73Point ptClient = PointUtil.RootToClient(ptRoot, source); 74Point ptScreen = PointUtil.ClientToScreen(ptClient, source);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (6)
144boundingRect = PointUtil.ElementToRoot(boundingRect, uiScope, hwndSource); 145boundingRect = PointUtil.RootToClient(boundingRect, hwndSource); 146boundingRect = PointUtil.ClientToScreen(boundingRect, hwndSource); 165boundingRect = PointUtil.ElementToRoot(boundingRect, uiScope, hwndSource); 166boundingRect = PointUtil.RootToClient(boundingRect, hwndSource); 167boundingRect = PointUtil.ClientToScreen(boundingRect, hwndSource);
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (6)
75Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource); 76Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource); 77Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource); 121Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource); 122Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource); 123Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource);
System\Windows\Controls\PopupControlService.cs (9)
859Rect rectRoot = PointUtil.ElementToRoot(rectElement, ownerUIE, presentationSource); 860Rect ownerRect = PointUtil.RootToClient(rectRoot, presentationSource); 864rects.Add(PointUtil.FromRect(ownerRect)); 884Matrix matrixRootTransform = PointUtil.GetVisualTransform(target.RootVisual); 892rects.Add(PointUtil.FromRect(rectClient)); 899Point clientPt = PointUtil.ScreenToClient(screenRect.Location, presentationSource); 904rects.Add(PointUtil.FromRect(tooltipRect)); 1597System.Windows.Point ptScreen = PointUtil.ClientToScreen(pt, mouseSource); 1598pt = PointUtil.ScreenToClient(ptScreen, _source);
System\Windows\Controls\Primitives\Popup.cs (10)
1832PointUtil.GetVisualTransform(rootVisual); //Transform applied directly to root 2445PointUtil.GetVisualTransform(rootVisual) * 2671NativeMethods.RECT nativeBounds = PointUtil.FromRect(boundingBox); 2700return PointUtil.ToRect(rect); 2994return PointUtil.ToPoint(ClientToScreen(targetWindow, clientPoint)); 3013devicePoint = PointUtil.ClientToScreen(clientPt, hwnd); 3020devicePoint = PointUtil.ScreenToClient(devicePoint, parent); 3052Matrix transform = PointUtil.GetVisualTransform(rootVisual) * ct.TransformToDevice; 3097return PointUtil.ToRect(rect); 3110return PointUtil.ToRect(rect);
System\Windows\Controls\TextAdaptor.cs (2)
402return PointUtil.ClientToScreen(point, presentationSource); 434point = PointUtil.ScreenToClient(point, presentationSource);
System\Windows\Interop\HwndHost.cs (5)
362Rect rectClientRTLAdjusted = PointUtil.ToRect(rcClientRTLAdjusted); 390Rect rectRoot = PointUtil.ElementToRoot(rectElement, this, source); 391Rect rectClient = PointUtil.RootToClient(rectRoot, source); 395NativeMethods.RECT rcClient = PointUtil.FromRect(rectClient); 396NativeMethods.RECT rcClientRTLAdjusted = PointUtil.AdjustForRightToLeft(rcClient, new HandleRef(null, hwndParent));