2 writes to Top
aspire-tray (2)
TrayApplication.Settings.cs (1)
134
var rect = new NativeMethods.Rect { Left = x,
Top
= y, Right = x + width, Bottom = y + height };
TrayApplication.SettingsAppearance.cs (1)
117
return new() { Left = Scale(x),
Top
= Scale(y), Right = Scale(x + width), Bottom = Scale(y + height) };
31 references to Top
aspire-tray (31)
TrayApplication.NativeSmoke.cs (13)
182
NativeSmokeHarness.Require(bounds.Right > bounds.Left && bounds.Bottom > bounds.
Top
184
&& bounds.
Top
>= monitor.Work.
Top
&& bounds.Bottom <= monitor.Work.Bottom,
185
$"The tooltip must remain within the monitor work area. Tooltip: ({bounds.Left}, {bounds.
Top
})-({bounds.Right}, {bounds.Bottom}); work area: ({monitor.Work.Left}, {monitor.Work.
Top
})-({monitor.Work.Right}, {monitor.Work.Bottom}).");
498
NativeSmokeHarness.Require((!showDetails || statusBounds.Bottom < refreshBounds.
Top
)
503
&& _settingsGeneralBounds.Bottom < _settingsAboutBounds.
Top
,
508
&& _settingsControlBounds[_settingsLogo].
Top
> _settingsAboutBounds.
Top
528
var lines = (monitor.Work.Bottom - monitor.Work.
Top
) / SettingsRect(0, 0, 0, 8).Bottom + 1;
532
NativeSmokeHarness.Require(window.
Top
>= monitor.Work.
Top
&& window.Bottom <= monitor.Work.Bottom,
559
&& bounds.
Top
>= origin.Y && bounds.Bottom <= origin.Y + client.Bottom,
TrayApplication.Settings.cs (2)
137
rect.Left, rect.
Top
, rect.Right - rect.Left, rect.Bottom - rect.
Top
, dialog, id, _module, 0);
TrayApplication.SettingsAppearance.cs (9)
91
var frameHeight = window.Bottom - window.
Top
- client.Bottom;
92
var pageHeight = Math.Min(desired.Bottom, monitor.Work.Bottom - monitor.Work.
Top
- frameHeight);
106
var y = Math.Clamp(window.
Top
, monitor.Work.
Top
, Math.Max(monitor.Work.
Top
, monitor.Work.Bottom - height));
124
NativeCallException.Require(NativeMethods.SetWindowPos(control, 0, bounds.Left, bounds.
Top
- _settingsScrollPosition,
125
bounds.Right - bounds.Left, bounds.Bottom - bounds.
Top
, 0x4 | 0x10) != 0, "SetWindowPos(Settings control)");
138
if (bounds.
Top
< _settingsScrollPosition)
140
SetSettingsScrollPosition(bounds.
Top
- SettingsRect(0, 0, 0, 8).Bottom);
TrayApplication.Tooltips.cs (7)
111
var y = Math.Clamp(bounds.
Top
, monitor.Work.
Top
, Math.Max(monitor.Work.
Top
, monitor.Work.Bottom - (bounds.Bottom - bounds.
Top
)));
143
y = first.
Top
- height - gap;
145
y = Math.Clamp(y, monitor.Work.
Top
, Math.Max(monitor.Work.
Top
, monitor.Work.Bottom - height));