Commit Graph

2140 Commits

Author SHA1 Message Date
d78d76ad16
libui: Actually fill window backgrounds with the correct color 2023-08-15 12:30:53 +02:00
d0c4264608
libui: Add basic widget and layout system =D 2023-08-15 12:28:47 +02:00
0a39628bb1
ui+wind: Send mouse move events through IPC 2023-08-15 11:31:01 +02:00
02c72e15d5
wind+libui: Add protocol for window close requests 2023-08-15 11:20:17 +02:00
c99c2e4fe3
libos+libui+wind: Use uppercase for static struct IDs to avoid confusion with fields 2023-08-15 10:28:11 +02:00
57761df341
libui+gclient: Add basic OOP wrappers around the IPC protocol 2023-08-15 10:23:37 +02:00
60f9c0e5a3
wind+gclient: Add SetWindowTitle and support shm buffers
Some checks failed
continuous-integration/drone/pr Build is failing
2023-08-14 20:08:05 +02:00
397ed396d8
gclient: Create two example windows
Some checks failed
continuous-integration/drone/pr Build is failing
2023-08-14 18:15:38 +02:00
4bcea9b141
wind: Handle CreateWindow IPC messages 2023-08-14 18:15:29 +02:00
ac5dd05d2e
libui: Add CreateWindow IPC message definitions 2023-08-14 18:15:10 +02:00
a2fd838f5d
libos: Add basic IPC message framework 2023-08-14 18:14:35 +02:00
56269f5187
kernel: Fix poll syscall 2023-08-14 18:14:16 +02:00
2c2c6fbc2d
wind: Monitor data on client connections 2023-08-14 13:24:26 +02:00
753a56d14c
kernel: Add POLLHUP and store it when a polled socket's peer disconnects 2023-08-14 13:22:41 +02:00
b614fa04de
libui: Add copyright/author text 2023-08-14 12:34:27 +02:00
561d737f6c
libos: Add copyright/author comments to LocalServer and LocalClient 2023-08-14 12:31:09 +02:00
c0ca99bc7c
wind: Use init --user and pledge()
Some checks failed
continuous-integration/drone/pr Build is failing
2023-08-14 11:08:52 +02:00
e3c210b437
Update .gitignore 2023-08-14 11:08:51 +02:00
0f46868cce
libos: Remove some shared pointers and change them to owned/live on the stack 2023-08-14 11:08:51 +02:00
b53df986ca
wind: Spawn a new client process after startup
Also, create the socket after dropping privileges.
2023-08-14 11:08:51 +02:00
b2c5598ebd
apps: Add gclient 2023-08-14 11:08:51 +02:00
9722e9def8
libos: Add os::LocalClient 2023-08-14 11:08:51 +02:00
4382c3686b
libui: Change 'into' to 'onto' 2023-08-14 11:08:50 +02:00
ebd44b72ec
libui: Document ui::Font 2023-08-14 11:08:50 +02:00
c49b8e48f4
libui+wind: Move some static variables inside functions 2023-08-14 11:08:50 +02:00
853d0421a0
wind: Generate random windows on keypresses 2023-08-14 11:08:50 +02:00
2ed9e1aa93
wind: Make sure windows have a minimum size to fit the titlebar 2023-08-14 11:08:50 +02:00
16f058f4df
libui: Properly cut off the last drawn character if necessary 2023-08-14 11:08:49 +02:00
3509c93ef4
libui: Add Rect::contains(Rect) 2023-08-14 11:08:49 +02:00
742f5810c2
libui: Render font characters properly with no spacing, matching the width calculations 2023-08-14 11:08:49 +02:00
02ecdd65eb
wind: Render an actual TGA mouse cursor 2023-08-14 11:08:49 +02:00
8d97a83acf
wind: Add a close button to windows using a TGA icon 2023-08-14 11:08:48 +02:00
61636792cd
libui: Add support for TGA image loading 2023-08-14 11:08:48 +02:00
81a2d0a039
libui: Add an interface to fill a Canvas with an array of pixels 2023-08-14 11:08:48 +02:00
2533d39bd4
wind: Add window titlebars using ui::Font 2023-08-14 11:08:48 +02:00
f371db3049
libui: Add PSF font loading and rendering 2023-08-14 11:08:48 +02:00
1492c5be96
libui: Add Color::GRAY 2023-08-14 11:08:48 +02:00
85c045e16b
libui: Rename Rect::absolute to normalized and add a new absolute function 2023-08-14 11:08:47 +02:00
c8232b97d7
libluna: Add assignment operators to Buffer 2023-08-14 11:08:47 +02:00
7ed2bc83fe
wind: Reorder drag sequence 2023-08-14 11:08:47 +02:00
07e27d4d9c
libui: Add Rect::relative 2023-08-14 11:08:47 +02:00
e108d613cd
libui: Remove redundant statement 2023-08-14 11:08:47 +02:00
a8266f72cb
libui: Add getters for separate color values 2023-08-14 11:08:47 +02:00
2ea609df93
libui: Remove unnecessary stuff 2023-08-14 11:08:46 +02:00
25d0a4ad4c
base: Remove startup items not necessary for GUI startup 2023-08-14 11:08:46 +02:00
2f28ecd027
libui+wind: (Draggable) windows 2023-08-14 11:08:46 +02:00
fb5fdfc290
wind: Create a local server object 2023-08-14 11:08:46 +02:00
069525ecff
libos: Add a new LocalServer class for local domain sockets 2023-08-14 11:08:45 +02:00
c49ac8391e
kernel: Support listening sockets in poll() 2023-08-14 11:08:45 +02:00
e30acc855a
base: Start wind on startup instead of the shell 2023-08-14 11:08:45 +02:00