Maximum Acyclic Subgraph - Multiple Sequence Alignment
MaximumAcyclicSubgraph
Public Member Functions | List of all members
Slider Class Reference

Public Member Functions

 Slider (unsigned int x_pos, unsigned int y_pos, unsigned int min, unsigned int max, unsigned int &variable, std::string name)
 
void draw (sf::RenderWindow &window, unsigned int &variable)
 
sf::Text drawText (std::string text, int x_pos, int y_pos, unsigned int size)
 

Constructor & Destructor Documentation

Slider::Slider ( unsigned int  x_pos,
unsigned int  y_pos,
unsigned int  min,
unsigned int  max,
unsigned int &  variable,
std::string  name 
)
Parameters
x_posis the x coordinate of the slider in the window
y_posis the y coordinate of the slider in the window
minis the minimal value of the slider
maxis the maximal value of the slider
variableis variable that will be changed with the slider
namethis string will draw above the slider in the window

Member Function Documentation

void Slider::draw ( sf::RenderWindow &  window,
unsigned int &  variable 
)
Parameters
windowis the RenderWindow which gets the drawed slider
numberis variable that will be changed with the slider
sf::Text Slider::drawText ( std::string  text,
int  x_pos,
int  y_pos,
unsigned int  size 
)
Parameters
textis the string that will be displayed in the window
x_posis the x coordinate of the text in the window
y_posis the y coordinate of the text in the window
sizeis the size of the text

The documentation for this class was generated from the following files: