-- EFL LuaJIT bindings: elm_flipselector.eo (class Elm.Flipselector)
-- 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_flipselector_class_get()
    eo.class_register("Elm_Flipselector", {"Elm_Layout"}, {"Efl_Ui_Spin", "Elm_Interface_Atspi_Widget_Action", "Efl_Ui_Selectable"}, __body, __class)
end

cutil.init_module(init, function() end)

ffi.cdef [[
    const Eo_Class *elm_flipselector_class_get(void);
    const Eina_List *elm_obj_flipselector_items_get(void);
    Elm_Widget_Item *elm_obj_flipselector_first_item_get(void);
    Elm_Widget_Item *elm_obj_flipselector_last_item_get(void);
    Elm_Widget_Item *elm_obj_flipselector_selected_item_get(void);
    Elm_Widget_Item *elm_obj_flipselector_item_prepend(const char * label, Evas_Smart_Cb func, void * data);
    void elm_obj_flipselector_flip_next(void);
    Elm_Widget_Item *elm_obj_flipselector_item_append(const char * label, Evas_Smart_Cb func, const void * data);
    void elm_obj_flipselector_flip_prev(void);
    extern const Eo_Event_Description _ELM_FLIPSELECTOR_EVENT_UNDERFLOWED;
    extern const Eo_Event_Description _ELM_FLIPSELECTOR_EVENT_OVERFLOWED;
]]

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

    items_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.elm_obj_flipselector_items_get()
        eo.__do_end()
    end,

    first_item_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.elm_obj_flipselector_first_item_get()
        eo.__do_end()
    end,

    last_item_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.elm_obj_flipselector_last_item_get()
        eo.__do_end()
    end,

    selected_item_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.elm_obj_flipselector_selected_item_get()
        eo.__do_end()
    end,

    item_prepend = function(self, label, func, data)
        eo.__do_start(self, __class)
        local v = __lib.elm_obj_flipselector_item_prepend(label, func, data)
        eo.__do_end()
        return v
    end,

    flip_next = function(self)
        eo.__do_start(self, __class)
        __lib.elm_obj_flipselector_flip_next()
        eo.__do_end()
    end,

    item_append = function(self, label, func, data)
        eo.__do_start(self, __class)
        local v = __lib.elm_obj_flipselector_item_append(label, func, data)
        eo.__do_end()
        return v
    end,

    flip_prev = function(self)
        eo.__do_start(self, __class)
        __lib.elm_obj_flipselector_flip_prev()
        eo.__do_end()
    end,

    __events = {
        ["underflowed"] = __lib._ELM_FLIPSELECTOR_EVENT_UNDERFLOWED,
        ["overflowed"] = __lib._ELM_FLIPSELECTOR_EVENT_OVERFLOWED
    },

    __properties = {
        ["items"] = { 0, 0, 1, 0, true, false },
        ["first_item"] = { 0, 0, 1, 0, true, false },
        ["last_item"] = { 0, 0, 1, 0, true, false },
        ["selected_item"] = { 0, 0, 1, 0, true, false }
    }
}

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

return M
