19 lines
445 B
C++
19 lines
445 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();
|
|
Gtk::Popover *popover = nullptr;
|
|
void set_popover_child(Gtk::Widget &child) {
|
|
gtk_popover_set_child(popover->gobj(), child.gobj());
|
|
}
|
|
}; |