summaryrefslogtreecommitdiff
path: root/LibGUI/GTableView.h
diff options
context:
space:
mode:
Diffstat (limited to 'LibGUI/GTableView.h')
-rw-r--r--LibGUI/GTableView.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/LibGUI/GTableView.h b/LibGUI/GTableView.h
index a134d5541c..c5aaab28fa 100644
--- a/LibGUI/GTableView.h
+++ b/LibGUI/GTableView.h
@@ -21,15 +21,20 @@ public:
void did_update_model();
+ int content_width() const;
+ int horizontal_padding() const { return m_horizontal_padding; }
+
private:
virtual void paint_event(GPaintEvent&) override;
virtual void resize_event(GResizeEvent&) override;
virtual void mousedown_event(GMouseEvent&) override;
- void update_scrollbar_range();
+ void update_scrollbar_ranges();
int item_count() const;
Rect row_rect(int item_index) const;
- GScrollBar* m_scrollbar { nullptr };
+ GScrollBar* m_vertical_scrollbar { nullptr };
+ GScrollBar* m_horizontal_scrollbar { nullptr };
OwnPtr<GTableModel> m_model;
+ int m_horizontal_padding { 5 };
};