mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:27:45 +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
|
@ -21,6 +21,7 @@
|
|||
#include <WindowServer/Event.h>
|
||||
#include <WindowServer/MenuManager.h>
|
||||
#include <WindowServer/Menubar.h>
|
||||
#include <WindowServer/ScreenLayout.h>
|
||||
#include <WindowServer/WMClientConnection.h>
|
||||
#include <WindowServer/WindowSwitcher.h>
|
||||
#include <WindowServer/WindowType.h>
|
||||
|
@ -129,7 +130,9 @@ public:
|
|||
Gfx::Font const& font() const;
|
||||
Gfx::Font const& window_title_font() const;
|
||||
|
||||
bool set_resolution(Screen&, int width, int height, int scale);
|
||||
bool set_screen_layout(ScreenLayout&&, bool, String&);
|
||||
ScreenLayout get_screen_layout() const;
|
||||
bool save_screen_layout(String&);
|
||||
|
||||
void set_acceleration_factor(double);
|
||||
void set_scroll_step_size(unsigned);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue