1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:17:42 +00:00

LibGUI: Make GScrollableWidget a GFrame and fix up GTextEditor for it.

This commit is contained in:
Andreas Kling 2019-03-28 16:14:26 +01:00
parent cb296ffede
commit 1fc03a7644
4 changed files with 30 additions and 23 deletions

View file

@ -1,10 +1,10 @@
#pragma once
#include <LibGUI/GWidget.h>
#include <LibGUI/GFrame.h>
class GScrollBar;
class GScrollableWidget : public GWidget {
class GScrollableWidget : public GFrame {
public:
virtual ~GScrollableWidget() override;
@ -14,6 +14,8 @@ public:
Rect visible_content_rect() const;
Rect widget_inner_rect() const;
void scroll_into_view(const Rect&, Orientation);
void scroll_into_view(const Rect&, bool scroll_horizontally, bool scroll_vertically);