some refactore
This commit is contained in:
12
include/components/button/iconButton.hpp
Normal file
12
include/components/button/iconButton.hpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "components/button/textButton.hpp"
|
||||
#include "components/types/icon.hpp"
|
||||
|
||||
class IconButton : public TextButton {
|
||||
public:
|
||||
IconButton(Icon::Type icon, std::string fontFamilyCss = "materia-icons");
|
||||
void setIcon(Icon::Type icon);
|
||||
};
|
||||
9
include/components/button/tabButton.hpp
Normal file
9
include/components/button/tabButton.hpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "components/button/iconButton.hpp"
|
||||
|
||||
class TabButton : public IconButton {
|
||||
public:
|
||||
TabButton(Icon::Type icon);
|
||||
void setActive(bool active);
|
||||
};
|
||||
13
include/components/button/textButton.hpp
Normal file
13
include/components/button/textButton.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "gtkmm/button.h"
|
||||
|
||||
class TextButton : public Gtk::Button {
|
||||
public:
|
||||
TextButton(const std::string &label);
|
||||
void setText(const std::string &text);
|
||||
};
|
||||
Reference in New Issue
Block a user