Files
bar/include/components/popover.hpp
2026-02-03 18:47:54 +01:00

19 lines
451 B
C++

#pragma once
#include <gtkmm/button.h>
#include <gtkmm/popover.h>
#include <string>
#include "components/base/button.hpp"
class Popover : public Button {
public:
Popover(const std::string icon, std::string name);
~Popover() override;
protected:
void on_toggle_window();
std::unique_ptr<Gtk::Popover> popover;
void set_popover_child(Gtk::Widget &child) {
gtk_popover_set_child(popover->gobj(), child.gobj());
}
};