-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
approvedAn enhancement has been approved and PRs are welcomeAn enhancement has been approved and PRs are welcomeenhancementNew feature or requestNew feature or request
Milestone
Description
A "window manager" display driver is a factory that creates "window" display drivers. The manager then allows swapping the view that gets drawn to some base display driver.
This would allow themes to draw to one window, and an e.g. popup showing bluetooth pairing information could be drawn to another window. The manager then swaps between active windows.
Usage looks something like:
var manager = new WindowManagerDisplayDriver();
DisplayDriver themeWindow = manager.CreateWindow();
DisplayDriver popupWindow = manager.CreateWindow();
DrawThemeToWindow(themeWindow);
manager.SetWindow(themeWindow);
OnPopupNeeded += (s,e) =>
{
DrawPopupToPopupWindow(popupWindow);
manager.SetWindow(popupWindow);
}Metadata
Metadata
Assignees
Labels
approvedAn enhancement has been approved and PRs are welcomeAn enhancement has been approved and PRs are welcomeenhancementNew feature or requestNew feature or request