1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:37:46 +00:00

LibGUI: Allow specifying GUI::Statusbar segment count in GML

This commit is contained in:
Timothy Flynn 2021-05-05 14:04:31 -04:00 committed by Andreas Kling
parent b2576b7e45
commit ee1a4a06e0
2 changed files with 24 additions and 16 deletions

View file

@ -28,6 +28,8 @@ protected:
virtual void resize_event(ResizeEvent&) override;
private:
size_t label_count() const { return m_segments.size(); }
void set_label_count(size_t label_count);
NonnullRefPtr<Label> create_label();
struct Segment {
NonnullRefPtr<GUI::Label> label;