diff options
Diffstat (limited to 'Libraries/LibGUI/ListView.h')
-rw-r--r-- | Libraries/LibGUI/ListView.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Libraries/LibGUI/ListView.h b/Libraries/LibGUI/ListView.h index 5194d2bd51..ebb2b04f9f 100644 --- a/Libraries/LibGUI/ListView.h +++ b/Libraries/LibGUI/ListView.h @@ -40,6 +40,9 @@ public: bool alternating_row_colors() const { return m_alternating_row_colors; } void set_alternating_row_colors(bool b) { m_alternating_row_colors = b; } + bool hover_highlighting() const { return m_hover_highlighting; } + void set_hover_highlighting(bool b) { m_hover_highlighting = b; } + int horizontal_padding() const { return m_horizontal_padding; } void scroll_into_view(const ModelIndex&, Orientation); @@ -56,6 +59,8 @@ public: void move_selection(int steps); + Function<void()> on_escape_pressed; + private: ListView(); @@ -72,6 +77,7 @@ private: int m_horizontal_padding { 2 }; int m_model_column { 0 }; bool m_alternating_row_colors { true }; + bool m_hover_highlighting { false }; }; } |