mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 16:37:47 +00:00
Make it possible for userspace to alter window title/geometry.
I'm not in love with this syscall API but it allows me to make progress.
This commit is contained in:
parent
8eae89a405
commit
dbe83f3a83
11 changed files with 78 additions and 17 deletions
|
@ -14,7 +14,7 @@ static void paint(GraphicsBitmap& bitmap, int width, int height);
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
GUI_CreateWindowParameters wparams;
|
||||
GUI_WindowParameters wparams;
|
||||
wparams.rect = { { 100, 100 }, { 120, 120 } };
|
||||
wparams.background_color = 0xffc0c0;
|
||||
strcpy(wparams.title, "GUI test app");
|
||||
|
|
|
@ -28,7 +28,7 @@ GWindow* make_font_test_window()
|
|||
{
|
||||
auto* window = new GWindow;
|
||||
window->set_title("Font test");
|
||||
window->set_rect({ 140, 100, 300, 80 });
|
||||
window->set_rect({ 440, 100, 300, 80 });
|
||||
|
||||
auto* widget = new GWidget;
|
||||
window->set_main_widget(widget);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue