add popover component
This commit is contained in:
19
include/components/popover.hpp
Normal file
19
include/components/popover.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#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());
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user