Maximum Acyclic Subgraph - Multiple Sequence Alignment
MaximumAcyclicSubgraph
Slider.h
1 #ifndef Slider_H_
2 #define Slider_H_
3 
4 #include <SFML/Graphics.hpp>
5 #include <SFML/Window.hpp>
6 #include <iostream>
7 #include <string>
8 
9 class Slider{
10  private:
11  unsigned int x_pos;
12  unsigned int y_pos;
13  unsigned int min;
14  unsigned int max;
15  unsigned int value;
16  unsigned int axis_height;
17  unsigned int axis_width;
18  unsigned int slider_width;
19  bool movable;
20  sf::Text text;
21  sf::Font font;
22  sf::RectangleShape axis;
23  sf::RectangleShape slider_bar;
24  std::string name;
25  public:
26 
36  Slider(unsigned int x_pos, unsigned int y_pos, unsigned int min, unsigned int max, unsigned int& variable,
37  std::string name);
38 
44  void draw(sf::RenderWindow& window, unsigned int& variable);
45 
53  sf::Text drawText(std::string text, int x_pos, int y_pos, unsigned int size);
54 };
55 
56 #endif //Slider_H_
void draw(sf::RenderWindow &window, unsigned int &variable)
Definition: Slider.cc:46
sf::Text drawText(std::string text, int x_pos, int y_pos, unsigned int size)
Definition: Slider.cc:74
Slider(unsigned int x_pos, unsigned int y_pos, unsigned int min, unsigned int max, unsigned int &variable, std::string name)
Definition: Slider.cc:6
Definition: Slider.h:9