-- EFL LuaJIT bindings: elm_naviframe_item.eo (class Elm.Naviframe.Item)
-- 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_naviframe_item_class_get()
    eo.class_register("Elm_Naviframe_Item", {"Elm_Widget_Item"}, nil, __body, __class)
end

cutil.init_module(init, function() end)

ffi.cdef [[
    const Eo_Class *elm_naviframe_item_class_get(void);
    void elm_obj_naviframe_item_style_set(const char * style);
    const char *elm_obj_naviframe_item_style_get(void);
    void elm_obj_naviframe_item_pop_to(void);
    Eina_Bool elm_obj_naviframe_item_title_enabled_get(void);
    void elm_obj_naviframe_item_title_enabled_set(Eina_Bool enable, Eina_Bool transition);
    void elm_obj_naviframe_item_promote(void);
    void elm_obj_naviframe_item_pop_cb_set(Elm_Naviframe_Item_Pop_Cb func, void * data);
]]

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

    style_set = function(self, style)
        eo.__do_start(self, __class)
        __lib.elm_obj_naviframe_item_style_set(style)
        eo.__do_end()
    end,

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

    pop_to = function(self)
        eo.__do_start(self, __class)
        __lib.elm_obj_naviframe_item_pop_to()
        eo.__do_end()
    end,

    title_enabled_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.elm_obj_naviframe_item_title_enabled_get()
        eo.__do_end()
        return ((v) ~= 0)
    end,

    title_enabled_set = function(self, enable, transition)
        eo.__do_start(self, __class)
        __lib.elm_obj_naviframe_item_title_enabled_set(enable, transition)
        eo.__do_end()
    end,

    promote = function(self)
        eo.__do_start(self, __class)
        __lib.elm_obj_naviframe_item_promote()
        eo.__do_end()
    end,

    pop_cb_set = function(self, func, data)
        eo.__do_start(self, __class)
        __lib.elm_obj_naviframe_item_pop_cb_set(func, data)
        eo.__do_end()
    end,

    __properties = {
        ["style"] = { 0, 0, 1, 1, true, true }
    }
}

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

return M
