mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
implement separated tab label class
This commit is contained in:
parent
6e115ca3c1
commit
88e5ba3736
6 changed files with 87 additions and 46 deletions
31
src/app/browser/main/tab/label.hpp
Normal file
31
src/app/browser/main/tab/label.hpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef APP_BROWSER_MAIN_TAB_LABEL_HPP
|
||||
#define APP_BROWSER_MAIN_TAB_LABEL_HPP
|
||||
|
||||
#include <glibmm/i18n.h>
|
||||
#include <glibmm/refptr.h>
|
||||
#include <gtkmm/gestureclick.h>
|
||||
#include <gtkmm/label.h>
|
||||
|
||||
namespace app::browser::main::tab
|
||||
{
|
||||
class Label : public Gtk::Label
|
||||
{
|
||||
private:
|
||||
|
||||
Glib::RefPtr<Gtk::GestureClick> controller;
|
||||
|
||||
void on_click(
|
||||
int n,
|
||||
double x,
|
||||
double y
|
||||
);
|
||||
|
||||
public:
|
||||
|
||||
Label();
|
||||
|
||||
~Label();
|
||||
};
|
||||
}
|
||||
|
||||
#endif // APP_BROWSER_MAIN_TAB_LABEL_HPP
|
||||
Loading…
Add table
Add a link
Reference in a new issue