1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-13 00:11:00 +00:00
serenity/Services
Andreas Kling 7dc5a3ead8 LibGUI: Rewrite layout system in terms of min and max sizes
This patch removes size policies and preferred sizes, and replaces them
with min-size and max-size for each widget.

Box layout now works in 3 passes:

    1) Set all items (widgets/spacers) to their min-size
    2) Distribute remaining space evenly, respecting max-size
    3) Place widgets one after the other, adding spacing in between

I've also added convenience helpers for setting a fixed size (which is
the same as setting min-size and max-size to the same value.)

This significantly reduces the verbosity of widget layout and makes GML
a bit more pleasant to write, too. :^)
2020-12-30 01:36:41 +01:00
..
AudioServer AudioServer: Fix issue when adding a BufferQueue to Mixer 2020-12-05 10:10:27 +01:00
ChessEngine LibCore: Rename identifiers that can clash with libc macros (#4127) 2020-12-22 23:37:11 +01:00
Clipboard Services: Fix typos 2020-12-28 00:55:45 +01:00
DHCPClient Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
EchoServer EchoServer: Add a simple echo server 2020-12-16 17:29:12 +01:00
ImageDecoder AK: Add trivial structure validation to SharedBuffer 2020-10-02 15:38:07 +02:00
LaunchServer Everywhere: Move AppFile from LibGUI to LibDesktop 2020-12-28 01:28:07 +01:00
LookupServer AK: Use direct-list-initialization for Vector::empend() (#4564) 2020-12-27 23:06:37 +01:00
NotificationServer LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
ProtocolServer Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
SystemMenu LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
SystemServer Kernel: Introduce the DevFS 2020-12-27 23:07:44 +01:00
Taskbar LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
TelnetServer Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
WebContent LibWeb: Merge Document::layout() and Document::update_layout() 2020-12-14 10:39:57 +01:00
WebServer LibHTTP: Make HTTPRequest::from_raw_request() take a ReadonlyBytes 2020-12-19 18:29:13 +01:00
WindowServer WindowServer: Add a GetGlobalCursorPosition IPC request 2020-12-28 21:28:40 +01:00
CMakeLists.txt EchoServer: Add a simple echo server 2020-12-16 17:29:12 +01:00