| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- class "PolycodeViewBase"
- function PolycodeViewBase:__getvar(name)
- if name == "windowData" then
- local retVal = Polycore.PolycodeViewBase_get_windowData(self.__ptr)
- if retVal == nil then return nil end
- local __c = _G["void"]("__skip_ptr__")
- __c.__ptr = retVal
- return __c
- elseif name == "resizable" then
- return Polycore.PolycodeViewBase_get_resizable(self.__ptr)
- end
- end
- function PolycodeViewBase:__setvar(name,value)
- if name == "resizable" then
- Polycore.PolycodeViewBase_set_resizable(self.__ptr, value)
- return true
- end
- return false
- end
- function PolycodeViewBase:PolycodeViewBase(...)
- local arg = {...}
- for k,v in pairs(arg) do
- if type(v) == "table" then
- if v.__ptr ~= nil then
- arg[k] = v.__ptr
- end
- end
- end
- if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
- self.__ptr = Polycore.PolycodeViewBase(unpack(arg))
- end
- end
- function PolycodeViewBase:__delete()
- if self then Polycore.delete_PolycodeViewBase(self.__ptr) end
- end
|