diff options
author | erihel <erihel@gmail.com> | 2012-08-17 22:43:07 +0200 |
---|---|---|
committer | erihel <erihel@gmail.com> | 2012-08-17 22:43:07 +0200 |
commit | c2464d4c71bbc0154287f0b0441aef05e27cf084 (patch) | |
tree | d000ff46f5b9e505c94a8e6532668a57c7f78e2a /src/ui/slider.h | |
parent | 10b2c562fb7635f9850f1441f08ba8b1a71e31e1 (diff) | |
download | colobot-c2464d4c71bbc0154287f0b0441aef05e27cf084.tar.gz colobot-c2464d4c71bbc0154287f0b0441aef05e27cf084.tar.bz2 colobot-c2464d4c71bbc0154287f0b0441aef05e27cf084.zip |
* changes to ui classes
Diffstat (limited to 'src/ui/slider.h')
-rw-r--r-- | src/ui/slider.h | 75 |
1 files changed, 36 insertions, 39 deletions
diff --git a/src/ui/slider.h b/src/ui/slider.h index 1ec9ea5..e79b348 100644 --- a/src/ui/slider.h +++ b/src/ui/slider.h @@ -19,63 +19,60 @@ #pragma once -#include "ui/control.h" - - -class CD3DEngine; -class CButton; +#include <ui/control.h> +#include <common/event.h> class CSlider : public CControl { -public: - CSlider(CInstanceManager* iMan); - ~CSlider(); + public: + CSlider(); + ~CSlider(); - bool Create(Math::Point pos, Math::Point dim, int icon, EventMsg eventMsg); + bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg); - void SetPos(Math::Point pos); - void SetDim(Math::Point dim); + void SetPos(Math::Point pos); + void SetDim(Math::Point dim); - bool SetState(int state, bool bState); - bool SetState(int state); - bool ClearState(int state); + bool SetState(int state, bool bState); + bool SetState(int state); + bool ClearState(int state); - bool EventProcess(const Event &event); - void Draw(); + bool EventProcess(const Event &event); + void Draw(); - void SetLimit(float min, float max); + void SetLimit(float min, float max); - void SetVisibleValue(float value); - float RetVisibleValue(); + void SetVisibleValue(float value); + float RetVisibleValue(); - void SetArrowStep(float step); - float RetArrowStep(); + void SetArrowStep(float step); + float RetArrowStep(); -protected: - void MoveAdjust(); - void AdjustGlint(); - void DrawVertex(Math::Point pos, Math::Point dim, int icon); + protected: + void MoveAdjust(); + void AdjustGlint(); + void DrawVertex(Math::Point pos, Math::Point dim, int icon); -protected: - CButton* m_buttonLeft; - CButton* m_buttonRight; + protected: + CButton* m_buttonLeft; + CButton* m_buttonRight; - float m_min; - float m_max; - float m_visibleValue; - float m_step; + float m_min; + float m_max; + float m_visibleValue; + float m_step; - bool m_bHoriz; - float m_marginButton; + bool m_bHoriz; + float m_marginButton; - bool m_bCapture; - Math::Point m_pressPos; - float m_pressValue; + bool m_bCapture; + Math::Point m_pressPos; + float m_pressValue; - EventMsg m_eventUp; - EventMsg m_eventDown; + EventType m_eventUp; + EventType m_eventDown; }; |