Merge branch 'master' of https://github.com/Alexays/Waybar
This commit is contained in:
+11
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user