4 instantiations of Rect
aspire-tray (4)
TrayApplication.Icons.cs (1)
270var bounds = new NativeMethods.Rect { Right = _size, Bottom = _size };
TrayApplication.Settings.cs (1)
134var rect = new NativeMethods.Rect { Left = x, Top = y, Right = x + width, Bottom = y + height };
TrayApplication.SettingsAppearance.cs (2)
117return new() { Left = Scale(x), Top = Scale(y), Right = Scale(x + width), Bottom = Scale(y + height) }; 205var rect = new NativeMethods.Rect { Right = units.Right };
33 references to Rect
aspire-tray (33)
NativeMethods.cs (8)
174public Rect Rect; 185public Rect Monitor; 186public Rect Work; 335internal static partial int GetMenuItemRect(nint window, nint menu, uint item, out Rect rect); 442internal static partial int MapDialogRect(nint dialog, ref Rect rect); 514internal static partial int DrawText(nint dc, string text, int count, ref Rect rect, uint format); 517internal static partial int GetWindowRect(nint window, out Rect rect); 520internal static partial int GetClientRect(nint window, out Rect rect);
TrayApplication.Icons.cs (1)
270var bounds = new NativeMethods.Rect { Right = _size, Bottom = _size };
TrayApplication.NativeSmoke.cs (8)
177NativeCallException.Require(NativeMethods.GetWindowRect(_menuTooltipWindow, out var bounds) != 0, 494NativeCallException.Require(NativeMethods.GetWindowRect(_settingsStatus, out var statusBounds) != 0, "GetWindowRect(Settings status smoke)"); 495NativeCallException.Require(NativeMethods.GetWindowRect(_settingsRefresh, out var refreshBounds) != 0, "GetWindowRect(Settings refresh smoke)"); 496NativeCallException.Require(NativeMethods.GetWindowRect(_settingsClose, out var closeBounds) != 0, "GetWindowRect(Settings close smoke)"); 497NativeCallException.Require(NativeMethods.GetWindowRect(_settingsWindow, out var windowBounds) != 0, "GetWindowRect(Settings window smoke)"); 531NativeCallException.Require(NativeMethods.GetWindowRect(_settingsWindow, out var window) != 0, "GetWindowRect(Settings scroll smoke)"); 554NativeCallException.Require(NativeMethods.GetClientRect(_settingsWindow, out var client) != 0, "GetClientRect(Settings focus smoke)"); 555NativeCallException.Require(NativeMethods.GetWindowRect(control, out var bounds) != 0, "GetWindowRect(Settings focus smoke)");
TrayApplication.Settings.cs (1)
134var rect = new NativeMethods.Rect { Left = x, Top = y, Right = x + width, Bottom = y + height };
TrayApplication.SettingsAppearance.cs (12)
8private readonly Dictionary<nint, NativeMethods.Rect> _settingsControlBounds = []; 10private NativeMethods.Rect _settingsGeneralBounds; 11private NativeMethods.Rect _settingsAboutBounds; 85var desired = SettingsRect(0, 0, 456, closeTop + 24 + 14); 86NativeCallException.Require(NativeMethods.GetWindowRect(_settingsWindow, out var window) != 0, "GetWindowRect(Settings)"); 87NativeCallException.Require(NativeMethods.GetClientRect(_settingsWindow, out var client) != 0, "GetClientRect(Settings)"); 113private NativeMethods.Rect SettingsRect(int x, int y, int width, int height) 133if (!_settingsControlBounds.TryGetValue(control, out var bounds)) 137NativeCallException.Require(NativeMethods.GetClientRect(_settingsWindow, out var client) != 0, "GetClientRect(Settings focus)"); 163NativeCallException.Require(NativeMethods.GetClientRect(_settingsWindow, out var client) != 0, "GetClientRect(Settings scroll)"); 198var units = SettingsRect(0, 0, width, 96); 205var rect = new NativeMethods.Rect { Right = units.Right };
TrayApplication.Tooltips.cs (3)
105NativeCallException.Require(NativeMethods.GetWindowRect(_menuTooltipWindow, out var bounds) != 0, 118NativeCallException.Require(NativeMethods.GetMenuItemRect(0, row.Submenu, 0, out var first) != 0, 120NativeCallException.Require(NativeMethods.GetMenuItemRect(0, row.Submenu, row.DetailsPosition, out var last) != 0,