mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
LibGUI: Mass coding style fixes.
This commit is contained in:
parent
6c4f1bad09
commit
d66b0f7dd8
15 changed files with 178 additions and 178 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue