3 instantiations of Rect
aspire-tray (3)
TrayApplication.Panel.cs (3)
294return new() { Left = point.X, Top = point.Y, Right = point.X, Bottom = point.Y }; 741var rect = new NativeMethods.Rect(); 826return new()
25 references to Rect
aspire-tray (25)
NativeMethods.cs (5)
109public Rect Monitor; 110public Rect Work; 312internal static partial int DrawText(nint dc, string text, int count, ref Rect rect, uint format); 315internal static partial int GetWindowRect(nint window, out Rect rect); 318internal static partial int GetClientRect(nint window, out Rect rect);
NativeMethods.Panel.cs (3)
33public Rect Paint; 112internal static partial int ShellNotifyIconGetRect(in NotifyIconIdentifier identifier, out Rect rect); 237public Rect Rect;
TrayApplication.NativeSmoke.cs (1)
124NativeCallException.Require(NativeMethods.GetWindowRect(_panelWindow, out var rect) != 0, "GetWindowRect(capture)");
TrayApplication.Panel.cs (14)
38private List<(NativeMethods.Rect Bounds, string Text)> _panelTooltips = []; 110return NativeMethods.ShellNotifyIconGetRect(in identifier, out var icon) >= 0 165var anchor = GetNotifyIconRect(); 181var work = info.Work; 282private NativeMethods.Rect GetNotifyIconRect() 288if (NativeMethods.ShellNotifyIconGetRect(in identifier, out var rect) >= 0) 314NativeMethods.GetWindowRect(_panelWindow, out var rect); 436NativeMethods.GetClientRect(_panelWindow, out var client); 500var rect = ToDevice(appIcon.Bounds); 552var clip = ToDevice(clips.Peek().Bounds); 665var rect = ToDevice(text.Bounds); 741var rect = new NativeMethods.Rect(); 749var rect = ToDevice(bounds); 823private NativeMethods.Rect ToDevice(PanelRect rect)
TrayApplication.PanelAutomation.cs (2)
173NativeMethods.GetWindowRect(_panelWindow, out var window); 189NativeMethods.GetWindowRect(_panelWindow, out var window);