Files
bar/include/components/popover.hpp

18 lines
406 B
C++

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