/ src / modules / MeasureTool / MeasureToolCore / PowerToys.MeasureToolCore.idl
PowerToys.MeasureToolCore.idl
 1  namespace PowerToys
 2  {
 3      namespace MeasureToolCore
 4      {
 5          struct Point
 6          {
 7              Int32 X;
 8              Int32 Y;
 9          };
10  
11          delegate void ToolSessionCompleted();
12  
13          [default_interface]
14          runtimeclass Core : Windows.Foundation.IClosable
15          {
16              Core();
17              void SetToolCompletionEvent(event ToolSessionCompleted completionTrigger);
18              void StartMeasureTool(Boolean horizontal, Boolean vertical);
19              void StartBoundsTool();
20              void ResetState();
21  
22              void InitResources();
23              void SetToolbarBoundingBox(Int32 fromX, Int32 fromY, Int32 toX, Int32 toY);
24              Single GetDPIScaleForWindow(Int64 windowHandle);
25          }
26      }
27  }