-- EFL LuaJIT bindings: elm_thumb.eo (class Elm.Thumb)
-- 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.elm_thumb_class_get()
    eo.class_register("Elm_Thumb", {"Elm_Layout"}, {"Efl_File", "Efl_Ui_Clickable", "Efl_Ui_Draggable"}, __body, __class)
end

cutil.init_module(init, function() end)

ffi.cdef [[
    const Eo_Class *elm_thumb_class_get(void);
    extern const Eo_Event_Description _ELM_THUMB_EVENT_GENERATE_ERROR;
    extern const Eo_Event_Description _ELM_THUMB_EVENT_GENERATE_START;
    extern const Eo_Event_Description _ELM_THUMB_EVENT_GENERATE_STOP;
    extern const Eo_Event_Description _ELM_THUMB_EVENT_LOAD_ERROR;
    extern const Eo_Event_Description _ELM_THUMB_EVENT_PRESS;
]]

__body = {
    __eo_ctor = function(self, __func)
        if __func then __func() end
    end
    __events = {
        ["generate,error"] = __lib._ELM_THUMB_EVENT_GENERATE_ERROR,
        ["generate,start"] = __lib._ELM_THUMB_EVENT_GENERATE_START,
        ["generate,stop"] = __lib._ELM_THUMB_EVENT_GENERATE_STOP,
        ["load,error"] = __lib._ELM_THUMB_EVENT_LOAD_ERROR,
        ["press"] = __lib._ELM_THUMB_EVENT_PRESS
    }
}

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

return M
