-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEdit.lua
57 lines (43 loc) · 1.59 KB
/
Edit.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
local Rave = Rave
local Edit = Rave.Edit
function Edit:Initialize( editbox )
self.control = editbox
self.control:SetHandler( 'OnEnter', function( ... ) self:HandleEnter( ... ) end )
self.control:SetHandler( 'OnMouseUp', function( ... ) self:HandleMouseUp( ... ) end )
self.control:SetHandler( 'OnMouseDown', function( ... ) self:HandleMouseDown( ... ) end )
self.control:SetHandler( 'OnFocusLost', function( ... ) self:HandleFocusLost( ... ) end )
self.control:SetHandler( 'OnEscape', function( ... ) self:HandleEscape( ... ) end )
self.control:SetHandler( 'OnUpArrow', function( ... ) self:HandleUpArrow( ... ) end )
self.control:SetHandler( 'OnDownArrow', function( ... ) self:HandleDownArrow( ... ) end )
self.control:SetHandler( 'OnBackspace', function( ... ) self:HandleBackspace( ... ) end )
self.control:SetHandler( 'OnTextChanged', function( ... ) self:HandleTextChanged( ... ) end )
self.control:SetHandler( 'OnTab', function( ... ) self:HandleTab( ... ) end )
end
function Edit:HandleEvent()
end
function Edit:HandleMouseUp( ... )
-- body
end
function Edit:HandleMouseDown( ... )
-- body
end
function Edit:HandleFocusLost( ... )
-- body
end
function Edit:HandleEscape( ... )
-- body
end
function Edit:HandleUpArrow( ... )
-- body
end
function Edit:HandleDownArrow( ... )
-- body
end
function Edit:HandleBackspace( ... )
-- body
end
function Edit:HandleTextChanged( ... )
-- body
end
function Edit:HandleTab( ... )
end