Commit Graph

2163 Commits

Author SHA1 Message Date
0e61c7b62d
wind+libui: Add protocol for window close requests 2023-08-22 13:36:46 +02:00
69bf171787
libos+libui+wind: Use uppercase for static struct IDs to avoid confusion with fields 2023-08-22 13:36:46 +02:00
46524ecc1d
libui+gclient: Add basic OOP wrappers around the IPC protocol 2023-08-22 13:36:46 +02:00
87f3922486
wind+gclient: Add SetWindowTitle and support shm buffers 2023-08-22 13:36:46 +02:00
ade6493fe6
gclient: Create two example windows 2023-08-22 13:36:45 +02:00
4a4e193559
wind: Handle CreateWindow IPC messages 2023-08-22 13:36:45 +02:00
7e4f4b91f8
libui: Add CreateWindow IPC message definitions 2023-08-22 13:36:45 +02:00
2bf0881fc1
libos: Add basic IPC message framework 2023-08-22 13:36:45 +02:00
180e9bd5b4
kernel: Fix poll syscall 2023-08-22 13:36:45 +02:00
886c393024
wind: Monitor data on client connections 2023-08-22 13:36:45 +02:00
4de29a09d2
kernel: Add POLLHUP and store it when a polled socket's peer disconnects 2023-08-22 13:36:45 +02:00
e1d7de2f21
libui: Add copyright/author text 2023-08-22 13:36:45 +02:00
7449f1a519
libos: Add copyright/author comments to LocalServer and LocalClient 2023-08-22 13:36:45 +02:00
688bd652dc
wind: Use init --user and pledge() 2023-08-22 13:36:45 +02:00
e679731a18
Update .gitignore 2023-08-22 13:36:44 +02:00
6727dc034a
libos: Remove some shared pointers and change them to owned/live on the stack 2023-08-22 13:36:44 +02:00
f31a90df16
wind: Spawn a new client process after startup
Also, create the socket after dropping privileges.
2023-08-22 13:36:44 +02:00
3686a25a76
apps: Add gclient 2023-08-22 13:36:44 +02:00
0871895cc5
libos: Add os::LocalClient 2023-08-22 13:36:44 +02:00
5085604aab
libui: Change 'into' to 'onto' 2023-08-22 13:36:44 +02:00
aa82c088a0
libui: Document ui::Font 2023-08-22 13:36:44 +02:00
ecd8c4c29c
libui+wind: Move some static variables inside functions 2023-08-22 13:36:44 +02:00
88141727a2
wind: Generate random windows on keypresses 2023-08-22 13:36:44 +02:00
bcf6bc3c97
wind: Make sure windows have a minimum size to fit the titlebar 2023-08-22 13:36:44 +02:00
3e6c9dbaa2
libui: Properly cut off the last drawn character if necessary 2023-08-22 13:36:43 +02:00
b1299aef9e
libui: Add Rect::contains(Rect) 2023-08-22 13:36:43 +02:00
594f42fdd6
libui: Render font characters properly with no spacing, matching the width calculations 2023-08-22 13:36:43 +02:00
45ff38f5e3
wind: Render an actual TGA mouse cursor 2023-08-22 13:36:43 +02:00
8b02bfebdb
wind: Add a close button to windows using a TGA icon 2023-08-22 13:36:43 +02:00
9382ec9eca
libui: Add support for TGA image loading 2023-08-22 13:36:43 +02:00
58f839927c
libui: Add an interface to fill a Canvas with an array of pixels 2023-08-22 13:36:43 +02:00
72704e445a
wind: Add window titlebars using ui::Font 2023-08-22 13:36:43 +02:00
7bc0f36661
libui: Add PSF font loading and rendering 2023-08-22 13:36:43 +02:00
c58f91c48d
libui: Add Color::GRAY 2023-08-22 13:36:43 +02:00
94f297a47f
libui: Rename Rect::absolute to normalized and add a new absolute function 2023-08-22 13:36:43 +02:00
00db974b97
libluna: Add assignment operators to Buffer 2023-08-22 13:36:42 +02:00
dc69f144ad
wind: Reorder drag sequence 2023-08-22 13:36:42 +02:00
714f6a90cc
libui: Add Rect::relative 2023-08-22 13:36:42 +02:00
9d412b7a32
libui: Remove redundant statement 2023-08-22 13:36:42 +02:00
62d56d31a3
libui: Add getters for separate color values 2023-08-22 13:36:42 +02:00
38912dce51
libui: Remove unnecessary stuff 2023-08-22 13:36:42 +02:00
eba2960df3
base: Remove startup items not necessary for GUI startup 2023-08-22 13:36:42 +02:00
54bfcfc8cb
libui+wind: (Draggable) windows 2023-08-22 13:36:42 +02:00
f02bf4bc95
wind: Create a local server object 2023-08-22 13:36:42 +02:00
7d35964c5c
libos: Add a new LocalServer class for local domain sockets 2023-08-22 13:36:42 +02:00
971e69ee8c
kernel: Support listening sockets in poll() 2023-08-22 13:36:41 +02:00
4b04ce1917
base: Start wind on startup instead of the shell 2023-08-22 13:36:41 +02:00
fa6534004a
wind: Add a simple display server skeleton using libui
No client functionality yet, but it's a start.
2023-08-22 13:36:41 +02:00
995aa97a58
libui: Add a GUI and graphics library 2023-08-22 13:36:41 +02:00
b4d9363302
kernel: Fix negative movement in the PS/2 mouse driver 2023-08-22 13:36:41 +02:00