mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
WindowServer: Add API to set/get screen layouts
This sets the stage so that DisplaySettings can configure the screen layout and set various screen resolutions in one go. It also allows for an easy "atomic" revert of the previous settings.
This commit is contained in:
parent
34394044b3
commit
aa15bf81e4
23 changed files with 558 additions and 228 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <LibGUI/ColorInput.h>
|
||||
#include <LibGUI/ComboBox.h>
|
||||
#include <LibGUI/RadioButton.h>
|
||||
#include <WindowServer/ScreenLayout.h>
|
||||
|
||||
namespace DisplaySettings {
|
||||
|
||||
|
@ -27,6 +28,7 @@ private:
|
|||
void create_resolution_list();
|
||||
void load_current_settings();
|
||||
|
||||
WindowServer::ScreenLayout m_screen_layout;
|
||||
Vector<Gfx::IntSize> m_resolutions;
|
||||
|
||||
RefPtr<DisplaySettings::MonitorWidget> m_monitor_widget;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue