istereo2
annotate libs/goatkit/slider.h @ 14:018f997dc646
button done
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 29 Sep 2015 01:11:54 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@6 | 1 /* |
nuclear@6 | 2 GoatKit - a themable/animated widget toolkit for games |
nuclear@6 | 3 Copyright (C) 2014 John Tsiombikas <nuclear@member.fsf.org> |
nuclear@6 | 4 |
nuclear@6 | 5 This program is free software: you can redistribute it and/or modify |
nuclear@6 | 6 it under the terms of the GNU Lesser General Public License as published by |
nuclear@6 | 7 the Free Software Foundation, either version 3 of the License, or |
nuclear@6 | 8 (at your option) any later version. |
nuclear@6 | 9 |
nuclear@6 | 10 This program is distributed in the hope that it will be useful, |
nuclear@6 | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
nuclear@6 | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
nuclear@6 | 13 GNU Lesser General Public License for more details. |
nuclear@6 | 14 |
nuclear@6 | 15 You should have received a copy of the GNU Lesser General Public License |
nuclear@6 | 16 along with this program. If not, see <http://www.gnu.org/licenses/>. |
nuclear@6 | 17 */ |
nuclear@6 | 18 #ifndef SLIDER_H_ |
nuclear@6 | 19 #define SLIDER_H_ |
nuclear@6 | 20 |
nuclear@6 | 21 #include "widget.h" |
nuclear@6 | 22 |
nuclear@6 | 23 namespace goatkit { |
nuclear@6 | 24 |
nuclear@6 | 25 struct SliderImpl; |
nuclear@6 | 26 |
nuclear@6 | 27 class Slider : public Widget { |
nuclear@6 | 28 private: |
nuclear@6 | 29 SliderImpl *slider; |
nuclear@6 | 30 |
nuclear@6 | 31 public: |
nuclear@6 | 32 Slider(); |
nuclear@6 | 33 virtual ~Slider(); |
nuclear@6 | 34 |
nuclear@6 | 35 virtual const char *get_type_name() const; |
nuclear@6 | 36 |
nuclear@6 | 37 virtual void set_value(float val); |
nuclear@6 | 38 virtual float get_value() const; |
nuclear@6 | 39 |
nuclear@6 | 40 virtual void set_value_norm(float val); |
nuclear@6 | 41 virtual float get_value_norm() const; |
nuclear@6 | 42 |
nuclear@6 | 43 virtual void set_padding(float pad); |
nuclear@6 | 44 virtual float get_padding() const; |
nuclear@6 | 45 |
nuclear@6 | 46 virtual void set_continuous_change(bool cont); |
nuclear@6 | 47 virtual bool get_continuous_change() const; |
nuclear@6 | 48 |
nuclear@6 | 49 virtual void set_range(float min, float max); |
nuclear@6 | 50 virtual float get_range_min() const; |
nuclear@6 | 51 virtual float get_range_max() const; |
nuclear@6 | 52 |
nuclear@6 | 53 virtual void set_step(float step); |
nuclear@6 | 54 virtual float get_step() const; |
nuclear@6 | 55 |
nuclear@6 | 56 virtual void on_mouse_button(const ButtonEvent &ev); |
nuclear@6 | 57 virtual void on_mouse_motion(const MotionEvent &ev); |
nuclear@6 | 58 }; |
nuclear@6 | 59 |
nuclear@6 | 60 } // namespace goatkit |
nuclear@6 | 61 |
nuclear@6 | 62 #endif // SLIDER_H_ |