mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
LibVT: Enable caller to control the visibility of the scrollbar widget
In preparation for another feature, expose an API so that any users of this widget can control the scrollbar visibility.
This commit is contained in:
parent
2e1bbcb0fa
commit
0e26ba59f7
Notes:
sideshowbarker
2024-07-17 20:52:16 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/0e26ba59f7f Pull-request: https://github.com/SerenityOS/serenity/pull/11904 Reviewed-by: https://github.com/Quaker762 ✅ Reviewed-by: https://github.com/elyse0 ✅
@ -548,6 +548,11 @@ void TerminalWidget::set_opacity(u8 new_opacity)
|
||||
update();
|
||||
}
|
||||
|
||||
void TerminalWidget::set_show_scrollbar(bool show_scrollbar)
|
||||
{
|
||||
m_scrollbar->set_visible(show_scrollbar);
|
||||
}
|
||||
|
||||
bool TerminalWidget::has_selection() const
|
||||
{
|
||||
return m_selection.is_valid();
|
||||
|
@ -43,6 +43,8 @@ public:
|
||||
void set_opacity(u8);
|
||||
float opacity() { return m_opacity; };
|
||||
|
||||
void set_show_scrollbar(bool);
|
||||
|
||||
enum class BellMode {
|
||||
Visible,
|
||||
AudibleBeep,
|
||||
|
Loading…
Reference in New Issue
Block a user