-- EFL LuaJIT bindings: elm_diskselector.eo (class Elm.Diskselector)
-- 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_diskselector_class_get()
    eo.class_register("Elm_Diskselector", {"Elm_Widget"}, {"Elm_Interface_Scrollable", "Elm_Interface_Atspi_Widget_Action", "Efl_Ui_Clickable", "Efl_Ui_Scrollable", "Efl_Ui_Selectable"}, __body, __class)
end

cutil.init_module(init, function() end)

ffi.cdef [[
    const Eo_Class *elm_diskselector_class_get(void);
    void elm_obj_diskselector_side_text_max_length_set(int len);
    int elm_obj_diskselector_side_text_max_length_get(void);
    void elm_obj_diskselector_round_enabled_set(Eina_Bool enabled);
    Eina_Bool elm_obj_diskselector_round_enabled_get(void);
    void elm_obj_diskselector_display_item_num_set(int num);
    int elm_obj_diskselector_display_item_num_get(void);
    Elm_Widget_Item *elm_obj_diskselector_first_item_get(void);
    const Eina_List *elm_obj_diskselector_items_get(void);
    Elm_Widget_Item *elm_obj_diskselector_last_item_get(void);
    Elm_Widget_Item *elm_obj_diskselector_selected_item_get(void);
    Elm_Widget_Item *elm_obj_diskselector_item_append(const char * label, Efl_Canvas_Object * icon, Evas_Smart_Cb func, const void * data);
    void elm_obj_diskselector_clear(void);
]]

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

    side_text_max_length_set = function(self, len)
        eo.__do_start(self, __class)
        __lib.elm_obj_diskselector_side_text_max_length_set(len)
        eo.__do_end()
    end,

    side_text_max_length_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.elm_obj_diskselector_side_text_max_length_get()
        eo.__do_end()
        return tonumber(v)
    end,

    round_enabled_set = function(self, enabled)
        eo.__do_start(self, __class)
        __lib.elm_obj_diskselector_round_enabled_set(enabled)
        eo.__do_end()
    end,

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

    display_item_num_set = function(self, num)
        eo.__do_start(self, __class)
        __lib.elm_obj_diskselector_display_item_num_set(num)
        eo.__do_end()
    end,

    display_item_num_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.elm_obj_diskselector_display_item_num_get()
        eo.__do_end()
        return tonumber(v)
    end,

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

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

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

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

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

    clear = function(self)
        eo.__do_start(self, __class)
        __lib.elm_obj_diskselector_clear()
        eo.__do_end()
    end,

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

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

return M
