1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:58:12 +00:00

Add basic GUI API for creating labels and buttons.

This commit is contained in:
Andreas Kling 2019-01-13 05:03:17 +01:00
parent 17c7bf01a5
commit b2d86b7597
7 changed files with 99 additions and 8 deletions

View file

@ -191,6 +191,10 @@ static dword handle(RegisterDump& regs, dword function, dword arg1, dword arg2,
return current->gui$create_window((const GUI_CreateWindowParameters*)arg1);
case Syscall::SC_gui_destroy_window:
return current->gui$destroy_window((int)arg1);
case Syscall::SC_gui_create_widget:
return current->gui$create_widget((int)arg1, (const GUI_CreateWidgetParameters*)arg2);
case Syscall::SC_gui_destroy_widget:
return current->gui$destroy_widget((int)arg1);
default:
kprintf("<%u> int0x80: Unknown function %u requested {%x, %x, %x}\n", current->pid(), function, arg1, arg2, arg3);
break;