1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:57:42 +00:00

LibGUI: Mass coding style fixes.

This commit is contained in:
Andreas Kling 2019-01-21 00:46:08 +01:00
parent 6c4f1bad09
commit d66b0f7dd8
15 changed files with 178 additions and 178 deletions

View file

@ -7,18 +7,18 @@ public:
explicit GListBox(GWidget* parent);
virtual ~GListBox() override;
void addItem(String&&);
int selectedIndex() const { return m_selectedIndex; }
void add_item(String&&);
int selected_index() const { return m_selected_index; }
private:
virtual void paintEvent(GPaintEvent&) override;
virtual void mouseDownEvent(GMouseEvent&) override;
virtual void paint_event(GPaintEvent&) override;
virtual void mousedown_event(GMouseEvent&) override;
virtual const char* class_name() const override { return "GListBox"; }
Rect item_rect(int index) const;
int m_scrollOffset { 0 };
int m_selectedIndex { -1 };
int m_scroll_offset { 0 };
int m_selected_index { -1 };
Vector<String> m_items;
};