mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00: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
2 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue