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
TextField.h
Go to the documentation of this file.
1
7
#ifndef __SCV_TEXTFIELD_H__
8
#define __SCV_TEXTFIELD_H__
9
10
#include "
TextBox.h
"
11
12
namespace
scv {
13
14
class
TextField
:
public
TextBox
{
15
public
:
16
TextField
(
const
scv::Point
&p,
unsigned
int
width,
const
std::string &str);
17
18
virtual
void
onStringChange
(
void
) {}
19
20
virtual
void
setString
(
const
std::string& str);
21
22
virtual
void
setHeight
(
int
height);
23
24
void
processMouse
(
const
scv::MouseEvent
&evt);
25
void
processKey
(
const
scv::KeyEvent
&evt);
26
27
virtual
void
display
(
void
);
28
29
private
:
30
static
const
int
s_lineSpacing = 18;
31
static
const
int
s_borderWidth = 8;
32
static
const
int
s_borderHeight = 3;
33
34
void
refreshText(
void
);
35
void
selectLine(
int
line);
36
37
int
_deslocString, _deslocCursor;
38
int
_lastCharVisible;
39
};
40
41
}
// namespace scv
42
43
#endif // __SCV_TEXTFIELD_H__
include
SCV
TextField.h
Generated on Fri Dec 14 2012 09:44:49 for SCV by
1.8.2