aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CGUIScrollBar.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CGUIScrollBar.h
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CGUIScrollBar.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CGUIScrollBar.h226
1 files changed, 113 insertions, 113 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CGUIScrollBar.h b/libraries/irrlicht-1.8/source/Irrlicht/CGUIScrollBar.h
index 0768f37..7b12f8d 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CGUIScrollBar.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CGUIScrollBar.h
@@ -1,113 +1,113 @@
1// Copyright (C) 2002-2012 Nikolaus Gebhardt 1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine". 2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h 3// For conditions of distribution and use, see copyright notice in irrlicht.h
4 4
5#ifndef __C_GUI_SCROLL_BAR_H_INCLUDED__ 5#ifndef __C_GUI_SCROLL_BAR_H_INCLUDED__
6#define __C_GUI_SCROLL_BAR_H_INCLUDED__ 6#define __C_GUI_SCROLL_BAR_H_INCLUDED__
7 7
8#include "IrrCompileConfig.h" 8#include "IrrCompileConfig.h"
9#ifdef _IRR_COMPILE_WITH_GUI_ 9#ifdef _IRR_COMPILE_WITH_GUI_
10 10
11#include "IGUIScrollBar.h" 11#include "IGUIScrollBar.h"
12#include "IGUIButton.h" 12#include "IGUIButton.h"
13 13
14namespace irr 14namespace irr
15{ 15{
16namespace gui 16namespace gui
17{ 17{
18 18
19 class CGUIScrollBar : public IGUIScrollBar 19 class CGUIScrollBar : public IGUIScrollBar
20 { 20 {
21 public: 21 public:
22 22
23 //! constructor 23 //! constructor
24 CGUIScrollBar(bool horizontal, IGUIEnvironment* environment, 24 CGUIScrollBar(bool horizontal, IGUIEnvironment* environment,
25 IGUIElement* parent, s32 id, core::rect<s32> rectangle, 25 IGUIElement* parent, s32 id, core::rect<s32> rectangle,
26 bool noclip=false); 26 bool noclip=false);
27 27
28 //! destructor 28 //! destructor
29 virtual ~CGUIScrollBar(); 29 virtual ~CGUIScrollBar();
30 30
31 //! called if an event happened. 31 //! called if an event happened.
32 virtual bool OnEvent(const SEvent& event); 32 virtual bool OnEvent(const SEvent& event);
33 33
34 //! draws the element and its children 34 //! draws the element and its children
35 virtual void draw(); 35 virtual void draw();
36 36
37 virtual void OnPostRender(u32 timeMs); 37 virtual void OnPostRender(u32 timeMs);
38 38
39 39
40 //! gets the maximum value of the scrollbar. 40 //! gets the maximum value of the scrollbar.
41 virtual s32 getMax() const; 41 virtual s32 getMax() const;
42 42
43 //! sets the maximum value of the scrollbar. 43 //! sets the maximum value of the scrollbar.
44 virtual void setMax(s32 max); 44 virtual void setMax(s32 max);
45 45
46 //! gets the minimum value of the scrollbar. 46 //! gets the minimum value of the scrollbar.
47 virtual s32 getMin() const; 47 virtual s32 getMin() const;
48 48
49 //! sets the minimum value of the scrollbar. 49 //! sets the minimum value of the scrollbar.
50 virtual void setMin(s32 min); 50 virtual void setMin(s32 min);
51 51
52 //! gets the small step value 52 //! gets the small step value
53 virtual s32 getSmallStep() const; 53 virtual s32 getSmallStep() const;
54 54
55 //! sets the small step value 55 //! sets the small step value
56 virtual void setSmallStep(s32 step); 56 virtual void setSmallStep(s32 step);
57 57
58 //! gets the large step value 58 //! gets the large step value
59 virtual s32 getLargeStep() const; 59 virtual s32 getLargeStep() const;
60 60
61 //! sets the large step value 61 //! sets the large step value
62 virtual void setLargeStep(s32 step); 62 virtual void setLargeStep(s32 step);
63 63
64 //! gets the current position of the scrollbar 64 //! gets the current position of the scrollbar
65 virtual s32 getPos() const; 65 virtual s32 getPos() const;
66 66
67 //! sets the position of the scrollbar 67 //! sets the position of the scrollbar
68 virtual void setPos(s32 pos); 68 virtual void setPos(s32 pos);
69 69
70 //! updates the rectangle 70 //! updates the rectangle
71 virtual void updateAbsolutePosition(); 71 virtual void updateAbsolutePosition();
72 72
73 //! Writes attributes of the element. 73 //! Writes attributes of the element.
74 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; 74 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
75 75
76 //! Reads attributes of the element 76 //! Reads attributes of the element
77 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); 77 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options);
78 78
79 private: 79 private:
80 80
81 void refreshControls(); 81 void refreshControls();
82 s32 getPosFromMousePos(const core::position2di &p) const; 82 s32 getPosFromMousePos(const core::position2di &p) const;
83 83
84 IGUIButton* UpButton; 84 IGUIButton* UpButton;
85 IGUIButton* DownButton; 85 IGUIButton* DownButton;
86 86
87 core::rect<s32> SliderRect; 87 core::rect<s32> SliderRect;
88 88
89 bool Dragging; 89 bool Dragging;
90 bool Horizontal; 90 bool Horizontal;
91 bool DraggedBySlider; 91 bool DraggedBySlider;
92 bool TrayClick; 92 bool TrayClick;
93 s32 Pos; 93 s32 Pos;
94 s32 DrawPos; 94 s32 DrawPos;
95 s32 DrawHeight; 95 s32 DrawHeight;
96 s32 Min; 96 s32 Min;
97 s32 Max; 97 s32 Max;
98 s32 SmallStep; 98 s32 SmallStep;
99 s32 LargeStep; 99 s32 LargeStep;
100 s32 DesiredPos; 100 s32 DesiredPos;
101 u32 LastChange; 101 u32 LastChange;
102 video::SColor CurrentIconColor; 102 video::SColor CurrentIconColor;
103 103
104 f32 range () const { return (f32) ( Max - Min ); } 104 f32 range () const { return (f32) ( Max - Min ); }
105 }; 105 };
106 106
107} // end namespace gui 107} // end namespace gui
108} // end namespace irr 108} // end namespace irr
109 109
110#endif // _IRR_COMPILE_WITH_GUI_ 110#endif // _IRR_COMPILE_WITH_GUI_
111 111
112#endif 112#endif
113 113