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