#include <slidebar.h>
Public Member Functions | |
SlideBar () | |
~SlideBar () | |
float | get () const |
void | set (float val) |
void | display () const |
void | place (int x, int y, int width, int height, int win_width, int win_height) |
bool | mouse (int x, int y) |
bool | motion (int x, int y) |
void | reshape (int w, int h) |
Tools::SlideBar::SlideBar | ( | ) |
Tools::SlideBar::~SlideBar | ( | ) |
float Tools::SlideBar::get | ( | ) | const |
get the slide bar position (between 0..1)
void Tools::SlideBar::set | ( | float | val | ) |
set the slide bar position (between 0..1)
void Tools::SlideBar::display | ( | ) | const |
display the bar
void Tools::SlideBar::place | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height, | |||
int | win_width, | |||
int | win_height | |||
) |
set the slide bar size and position on the screen
bool Tools::SlideBar::mouse | ( | int | x, | |
int | y | |||
) |
handle mouse press
bool Tools::SlideBar::motion | ( | int | x, | |
int | y | |||
) |
handle mouse motion
void Tools::SlideBar::reshape | ( | int | w, | |
int | h | |||
) |
reshape the slide bar