mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
LibGUI: Make ListView item_count() public
This commit is contained in:
parent
04a9562601
commit
a0de3860cc
Notes:
sideshowbarker
2024-07-17 06:43:08 +09:00
Author: https://github.com/thankyouverycool
Commit: a0de3860cc
Pull-request: https://github.com/SerenityOS/serenity/pull/15321
Issue: https://github.com/SerenityOS/serenity/issues/13365
1 changed files with 1 additions and 1 deletions
|
@ -16,6 +16,7 @@ public:
|
||||||
virtual ~ListView() override;
|
virtual ~ListView() override;
|
||||||
|
|
||||||
int item_height() const { return font().preferred_line_height() + vertical_padding(); }
|
int item_height() const { return font().preferred_line_height() + vertical_padding(); }
|
||||||
|
int item_count() const;
|
||||||
|
|
||||||
bool alternating_row_colors() const { return m_alternating_row_colors; }
|
bool alternating_row_colors() const { return m_alternating_row_colors; }
|
||||||
void set_alternating_row_colors(bool b) { m_alternating_row_colors = b; }
|
void set_alternating_row_colors(bool b) { m_alternating_row_colors = b; }
|
||||||
|
@ -55,7 +56,6 @@ private:
|
||||||
virtual void mousemove_event(MouseEvent&) override;
|
virtual void mousemove_event(MouseEvent&) override;
|
||||||
|
|
||||||
Gfx::IntRect content_rect(int row) const;
|
Gfx::IntRect content_rect(int row) const;
|
||||||
int item_count() const;
|
|
||||||
void update_content_size();
|
void update_content_size();
|
||||||
|
|
||||||
int m_horizontal_padding { 2 };
|
int m_horizontal_padding { 2 };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue