forked from enlightenment/efl
elua: initial code for lualian events and remove default constructor nonsense
This commit is contained in:
parent
b79bd85f8f
commit
fd34396c0e
|
@ -334,6 +334,21 @@ local Property = Method:clone {
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local Event = Node:clone {
|
||||||
|
__ctor = function(self, event)
|
||||||
|
self.event = event
|
||||||
|
end,
|
||||||
|
|
||||||
|
generate = function(self, s, last)
|
||||||
|
end,
|
||||||
|
|
||||||
|
gen_ffi = function(self, s)
|
||||||
|
end,
|
||||||
|
|
||||||
|
gen_ctor = function(self, s)
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
local Constructor = Node:clone {
|
local Constructor = Node:clone {
|
||||||
gen_ffi = function(self, s)
|
gen_ffi = function(self, s)
|
||||||
end
|
end
|
||||||
|
@ -485,14 +500,15 @@ local gen_contents = function(classn)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- and constructors
|
-- and constructors
|
||||||
local dflt_ctor = eolian.class_default_constructor_get(classn)
|
|
||||||
if dflt_ctor then
|
|
||||||
cnt[#cnt + 1] = Constructor(dflt_ctor)
|
|
||||||
end
|
|
||||||
local ctors = eolian.class_functions_list_get(classn, ft.CTOR)
|
local ctors = eolian.class_functions_list_get(classn, ft.CTOR)
|
||||||
for i, v in ipairs(ctors) do
|
for i, v in ipairs(ctors) do
|
||||||
cnt[#cnt + 1] = Constructor(v)
|
cnt[#cnt + 1] = Constructor(v)
|
||||||
end
|
end
|
||||||
|
-- events
|
||||||
|
local events = eolian.class_events_list_get(classn)
|
||||||
|
for i, v in ipairs(events) do
|
||||||
|
cnt[#cnt + 1] = Event(v)
|
||||||
|
end
|
||||||
return cnt
|
return cnt
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue