This commit is contained in:
2026-08-15 13:07:50 -07:00
275 changed files with 15644 additions and 2751 deletions
+11 -2
View File
@@ -12,15 +12,17 @@
namespace waybar {
class Group : public AModule {
sigc::connection reveal_timeout_;
public:
Group(const std::string&, const std::string&, const Json::Value&, bool);
~Group() override = default;
~Group() override;
auto update() -> void override;
operator Gtk::Widget&() override;
auto refresh(int sig) -> void override;
virtual Gtk::Box& getBox();
void addWidget(Gtk::Widget& widget);
void addWidget(AModule* module);
protected:
Gtk::Box box;
@@ -30,6 +32,9 @@ class Group : public AModule {
bool is_drawer = false;
bool click_to_reveal = false;
std::optional<int> toggle_signal;
std::string always_visible_class;
bool empty_if_drawer_empty = false;
int reveal_delay = 0;
std::string add_class_to_drawer_children;
bool handleMouseEnter(GdkEventCrossing* const& ev) override;
bool handleMouseLeave(GdkEventCrossing* const& ev) override;
@@ -45,6 +50,10 @@ class Group : public AModule {
hide_group();
}
}
void manage_visibility(AModule* module);
void show_widget(Gtk::Widget& widget);
void hide_widget(Gtk::Widget& widget);
void hide_current_widget_if_inactive();
};
} // namespace waybar