Maximum Acyclic Subgraph - Multiple Sequence Alignment
MaximumAcyclicSubgraph
Button.h
1 #ifndef Button_H_
2 #define Button_H_
3 #include <SFML/Window.hpp>
4 #include <SFML/Graphics.hpp>
5 #include <functional>
6 #include <vector>
7 #include <string>
8 
13 class Button {
14  private:
15  sf::Sprite Button_Sprite;
16  sf::Texture Button_Texture;
17  std::string Button_texturename;
18  std::string my_status;
19  std::string next_status;
20  std::function<void()> Button_function;
21 
22  public:
23 
32  Button(std::string texturename, unsigned int x_pos, unsigned int y_pos, std::string nextStatus, std::string myStatus);
33 
39  void load_Texture(std::string name);
40 
45  sf::Sprite get_Button_Sprite();
46 
54  void eventHandler(const sf::Event& event, std::string& status, const sf::Vector2f& mouse_pos);
55 
60  void setFunction(std::function<void()> func);
61 
68  void setPosition(float x_pos, float y_pos);
69 
70 };
71 
72 #endif //Button_H_
Button(std::string texturename, unsigned int x_pos, unsigned int y_pos, std::string nextStatus, std::string myStatus)
Definition: Button.cc:4
void setFunction(std::function< void()> func)
Definition: Button.cc:42
void setPosition(float x_pos, float y_pos)
Definition: Button.cc:46
void eventHandler(const sf::Event &event, std::string &status, const sf::Vector2f &mouse_pos)
Definition: Button.cc:22
This class generate a button for the GUI.
Definition: Button.h:13
sf::Sprite get_Button_Sprite()
Definition: Button.cc:18
void load_Texture(std::string name)
Definition: Button.cc:12