SCV
4.2.1
Simple Components for Visual
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
Slider.h
Go to the documentation of this file.
1
7
#ifndef __SCV_SLIDER_H__
8
#define __SCV_SLIDER_H__
9
10
#include "
Component.h
"
11
#include "
ComponentTexture.h
"
12
#include "
Counter.h
"
13
14
namespace
scv {
15
16
class
Slider
:
public
Component
,
public
Counter
{
17
public
:
18
Slider
(
const
scv::Point
&p,
unsigned
int
width,
double
minValue,
double
maxValue,
double
startValue,
double
stepValue);
19
Slider
(
const
scv::Point
&p,
double
minValue,
double
maxValue,
double
startValue,
double
stepValue);
20
virtual
~Slider
() {}
21
22
virtual
void
onValueChange
(
void
);
23
24
inline
virtual
void
setEditable
(
bool
edit);
25
inline
virtual
bool
isEditable
();
26
27
28
virtual
void
display
(
void
);
29
30
protected
:
31
void
processMouse
(
const
scv::MouseEvent
&evt);
32
void
processKey
(
const
scv::KeyEvent
&evt);
33
34
bool
_editable
;
35
36
void
createTexture
(
void
);
37
ComponentTexture
*
_cTexture
;
38
};
39
40
void
Slider::setEditable
(
bool
edit)
41
{
42
_editable
= edit;
43
}
44
45
46
bool
Slider::isEditable
()
47
{
48
return
_editable
;
49
}
50
51
52
53
}
// namespace scv
54
55
#endif // __SCV_SLIDER_H__
include
SCV
Slider.h
Generated on Fri Dec 14 2012 09:44:49 for SCV by
1.8.2