-- EFL LuaJIT bindings: efl_input_device.eo (class Efl.Input.Device)
-- For use with Elua; automatically generated, do not modify

local cutil = require("cutil")
local util  = require("util")
local ffi   = require("ffi")
local eo    = require("eo")

local M, __lib = ...

local __class
local __body

local init = function()
    __class = __lib.efl_input_device_class_get()
    eo.class_register("Efl_Input_Device", {"Eo_Base"}, nil, __body, __class)
end

cutil.init_module(init, function() end)

ffi.cdef [[
    const Eo_Class *efl_input_device_class_get(void);
    void efl_input_device_type_set(Efl_Input_Device_Class klass);
    Efl_Input_Device_Class efl_input_device_type_get(void);
    void efl_input_device_subtype_set(Efl_Input_Device_Sub_Class klass);
    Efl_Input_Device_Sub_Class efl_input_device_subtype_get(void);
    void efl_input_device_source_set(Efl_Input_Device * src);
    Efl_Input_Device *efl_input_device_source_get(void);
    void efl_input_device_name_set(const char * name);
    const char *efl_input_device_name_get(void);
    void efl_input_device_description_set(const char * desc);
    const char *efl_input_device_description_get(void);
    Efl_Input_Device *efl_input_device_parent_get(void);
]]

local __M = util.get_namespace(M, { "input" })
__body = {
    __eo_ctor = function(self, __func)
        if __func then __func() end
    end,

    device_type_set = function(self, klass)
        eo.__do_start(self, __class)
        __lib.efl_input_device_type_set(klass)
        eo.__do_end()
    end,

    device_type_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.efl_input_device_type_get()
        eo.__do_end()
        return v
    end,

    device_subtype_set = function(self, klass)
        eo.__do_start(self, __class)
        __lib.efl_input_device_subtype_set(klass)
        eo.__do_end()
    end,

    device_subtype_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.efl_input_device_subtype_get()
        eo.__do_end()
        return v
    end,

    source_set = function(self, src)
        eo.__do_start(self, __class)
        __lib.efl_input_device_source_set(src)
        eo.__do_end()
    end,

    source_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.efl_input_device_source_get()
        eo.__do_end()
        return v
    end,

    name_set = function(self, name)
        eo.__do_start(self, __class)
        __lib.efl_input_device_name_set(name)
        eo.__do_end()
    end,

    name_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.efl_input_device_name_get()
        eo.__do_end()
        return v
    end,

    description_set = function(self, desc)
        eo.__do_start(self, __class)
        __lib.efl_input_device_description_set(desc)
        eo.__do_end()
    end,

    description_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.efl_input_device_description_get()
        eo.__do_end()
        return v
    end,

    parent_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.efl_input_device_parent_get()
        eo.__do_end()
        return v
    end,

    __properties = {
        ["source"] = { 0, 0, 1, 1, true, true },
        ["parent"] = { 0, 0, 1, 0, true, false },
        ["device_type"] = { 0, 0, 1, 1, true, true },
        ["device_subtype"] = { 0, 0, 1, 1, true, true },
        ["name"] = { 0, 0, 1, 1, true, true },
        ["description"] = { 0, 0, 1, 1, true, true }
    }
}

__M.Device = function(parent, ...)
    return eo.__ctor_common(__class, parent, eo.class_get("Efl_Input_Device").__eo_ctor,
                            1, ...)
end

return M
