|
@@ -4,7 +4,7 @@ namespace Terminal.Gui;
|
|
/// Renders an overlay on another view at a given point that allows selecting from a range of 'autocomplete'
|
|
/// Renders an overlay on another view at a given point that allows selecting from a range of 'autocomplete'
|
|
/// options.
|
|
/// options.
|
|
/// </summary>
|
|
/// </summary>
|
|
-public abstract class PopupAutocomplete : AutocompleteBase
|
|
|
|
|
|
+public abstract partial class PopupAutocomplete : AutocompleteBase
|
|
{
|
|
{
|
|
private bool closed;
|
|
private bool closed;
|
|
private ColorScheme colorScheme;
|
|
private ColorScheme colorScheme;
|
|
@@ -554,30 +554,4 @@ public abstract class PopupAutocomplete : AutocompleteBase
|
|
Visible = false;
|
|
Visible = false;
|
|
ManipulatePopup ();
|
|
ManipulatePopup ();
|
|
}
|
|
}
|
|
-
|
|
|
|
- private sealed class Popup : View
|
|
|
|
- {
|
|
|
|
- private readonly PopupAutocomplete _autoComplete;
|
|
|
|
-
|
|
|
|
- public Popup (PopupAutocomplete autoComplete)
|
|
|
|
- {
|
|
|
|
- this._autoComplete = autoComplete;
|
|
|
|
- CanFocus = true;
|
|
|
|
- WantMousePositionReports = true;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public override bool MouseEvent (MouseEvent mouseEvent) { return _autoComplete.MouseEvent (mouseEvent); }
|
|
|
|
-
|
|
|
|
- #nullable enable
|
|
|
|
- public override void OnDrawContent (Rectangle contentArea)
|
|
|
|
- {
|
|
|
|
- if (!_autoComplete.LastPopupPos.HasValue)
|
|
|
|
- {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- _autoComplete.RenderOverlay (_autoComplete.LastPopupPos.Value);
|
|
|
|
- }
|
|
|
|
- #nullable restore
|
|
|
|
- }
|
|
|
|
}
|
|
}
|