14 #ifndef SLIDER_HPP_INCLUDED
15 #define SLIDER_HPP_INCLUDED
43 virtual void enable(
bool new_val=
true);
83 void set_items(
const std::vector<T> &items);
void mouse_down(const SDL_MouseButtonEvent &event)
void set_value(int value)
slider(CVideo &video, const std::string &image="buttons/sliders/slider", bool black=false)
void set_increment(int increment)
GLint GLint GLint GLint GLint GLint y
const std::vector< std::string > items
bool requires_event_focus(const SDL_Event *event=nullptr) const
void set_location(int x, int y)
virtual bool allow_key_events()
void mouse_wheel(const SDL_MouseWheelEvent &event)
GLsizei const GLfloat * value
list_slider(CVideo &video)
void set_items(const std::vector< T > &items)
virtual void enable(bool new_val=true)
bool select_item(const T &item)
virtual void handle_event(const SDL_Event &event)
zoom_slider(CVideo &video, const std::string &image="buttons/sliders/slider", bool black=false)
const T & item_selected() const
void mouse_motion(const SDL_MouseMotionEvent &event)
virtual void draw_contents()
GLint GLint GLint GLint GLint x
this module manages the cache of images.
void set_slider_position(int x)
GLsizei const GLcharARB ** string
virtual bool allow_key_events()
SDL_Rect slider_area() const