-- EFL LuaJIT bindings: evas_3d_object.eo (class Evas_3D_Object)
-- 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.evas_3d_object_class_get()
    eo.class_register("Evas_3D_Object", "Eo_Base", __body, __class)
    eo.class_mixin("Evas_3D_Object", "Evas_Common_Interface")
end

cutil.init_module(init, function() end)

ffi.cdef [[
    const Eo_Class *evas_3d_object_class_get(void);
    void evas_3d_object_change(Evas_3D_State state, Evas_3D_Object * ref);
    Evas_3D_Object_Type evas_3d_object_type_get(void);
    void evas_3d_object_type_set(Evas_3D_Object_Type type);
    Eina_Bool evas_3d_object_dirty_get(Evas_3D_State state);
    void evas_3d_object_update(void);
    void evas_3d_object_update_notify(void);
    void evas_3d_object_change_notify(Evas_3D_State state, Evas_3D_Object * ref);
]]

__body = {
    __eo_ctor = function(self, __func)
        if __func then __func() end
    end,

    change = function(self, state, ref)
        eo.__do_start(self, __class)
        __lib.evas_3d_object_change(state, ref)
        eo.__do_end()
    end,

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

    type_set = function(self, type)
        eo.__do_start(self, __class)
        __lib.evas_3d_object_type_set(type)
        eo.__do_end()
    end,

    dirty_get = function(self, state)
        eo.__do_start(self, __class)
        local v = __lib.evas_3d_object_dirty_get(state)
        eo.__do_end()
        return ((v) ~= 0)
    end,

    update = function(self)
        eo.__do_start(self, __class)
        __lib.evas_3d_object_update()
        eo.__do_end()
    end,

    update_notify = function(self)
        eo.__do_start(self, __class)
        __lib.evas_3d_object_update_notify()
        eo.__do_end()
    end,

    change_notify = function(self, state, ref)
        eo.__do_start(self, __class)
        __lib.evas_3d_object_change_notify(state, ref)
        eo.__do_end()
    end
}

M.Evas_3D_Object = function(parent, ...)
    return eo.__ctor_common(__class, parent, eo.class_get("Evas_3D_Object").__eo_ctor,
                            1, ...)
end

return M
