-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWindow.lua
42 lines (33 loc) · 1.22 KB
/
Window.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
local Rave = Rave
local Window = Rave.Window
function Window:Initialize( control )
self.control = control
self.control:SetHandler( 'OnUpdate', function( ... ) Rave:OnUpdate( ... ) end )
self.control:SetHandler( 'OnResizeStart', function( ... ) self:HandleResizeStart( ... ) end )
self.control:SetHandler( 'OnResizeStop', function( ... ) self:HandleResizeStop( ... ) end )
self.control:SetHandler( 'OnMouseEnter', function( ... ) self:HandleMouseEnter( ... ) end )
self.control:SetHandler( 'OnMouseWheel', function( ... ) self:HandleMouseWheel( ... ) end )
self.control:SetHandler( 'OnMoveStart', function( ... ) self:HandleMoveStart( ... ) end )
self.control:SetHandler( 'OnMoveStop', function( ... ) self:HandleMoveStop( ... ) end )
end
function Window:RegisterEvent( ... )
self.control:RegisterForEvent( ... )
end
function Window:HandleResizeStart( ... )
-- body
end
function Window:HandleResizeStop( ... )
-- body
end
function Window:HandleMouseEnter( ... )
-- body
end
function Window:HandleMouseWheel( ... )
-- body
end
function Window:HandleMoveStart( ... )
-- body
end
function Window:HandleMoveStop( ... )
-- body
end