diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-27 17:47:19 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-27 17:47:19 +0200 |
commit | 0b9d765f6bc080eda22594120ed95815ad839d10 (patch) | |
tree | 3958f2775c24685e94c6fbec64947ee24cdd684d /Userland/gron.cpp | |
parent | 1b3169f405ac9250b65ee3608e2962f51d2d8e3c (diff) | |
download | serenity-0b9d765f6bc080eda22594120ed95815ad839d10.zip |
LibGUI: Add AbstractView::move_cursor() and share some movement logic
A view can now be told to move its cursor in one of multiple directions
as specified by the CursorMovement enum.
View subclasses can override move_cursor(CursorMovement) to implement
their own cursor behavior. By default, AbstractView::move_cursor() is
a no-op.
This patch improves code sharing between TableView and TreeView. :^)
Diffstat (limited to 'Userland/gron.cpp')
0 files changed, 0 insertions, 0 deletions