diff options
author | Uma Sankar Yedida <dcmeumasankar@gmail.com> | 2020-10-30 22:36:32 +0530 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-30 19:10:15 +0100 |
commit | 9ccae7a90871b97de87d5e1479a51b0e59d84532 (patch) | |
tree | 64b81dcea1657d5ad15a5fb26a986e3b8a84b180 /Demos | |
parent | ddad7575a9d227b2bd19b6d840f545bfdd2b993d (diff) | |
download | serenity-9ccae7a90871b97de87d5e1479a51b0e59d84532.zip |
WindowServer+LibGfx: Added Crosshair cursor
Diffstat (limited to 'Demos')
-rw-r--r-- | Demos/WidgetGallery/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Demos/WidgetGallery/main.cpp b/Demos/WidgetGallery/main.cpp index daf5317b75..5047034d97 100644 --- a/Demos/WidgetGallery/main.cpp +++ b/Demos/WidgetGallery/main.cpp @@ -521,6 +521,10 @@ int main(int argc, char** argv) radio_cursor_arrow.on_checked = [&](bool) { window->set_cursor(Gfx::StandardCursor::Arrow); }; + auto& radio_crosshair_arrow = cursor_group_box.add<GUI::RadioButton>("Crosshair"); + radio_crosshair_arrow.on_checked = [&](bool) { + window->set_cursor(Gfx::StandardCursor::Crosshair); + }; auto& radio_cursor_i_beam = cursor_group_box.add<GUI::RadioButton>("IBeam"); radio_cursor_i_beam.on_checked = [&](bool) { window->set_cursor(Gfx::StandardCursor::IBeam); |