-- EFL LuaJIT bindings: elm_actionslider.eo (class Elm.Actionslider)
-- 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_actionslider_class_get()
    eo.class_register("Elm_Actionslider", {"Elm_Layout"}, {"Efl_Ui_Selectable"}, __body, __class)
end

cutil.init_module(init, function() end)

ffi.cdef [[
    const Eo_Class *elm_actionslider_class_get(void);
    void elm_obj_actionslider_indicator_pos_set(Elm_Actionslider_Pos pos);
    Elm_Actionslider_Pos elm_obj_actionslider_indicator_pos_get(void);
    void elm_obj_actionslider_magnet_pos_set(Elm_Actionslider_Pos pos);
    Elm_Actionslider_Pos elm_obj_actionslider_magnet_pos_get(void);
    void elm_obj_actionslider_enabled_pos_set(Elm_Actionslider_Pos pos);
    Elm_Actionslider_Pos elm_obj_actionslider_enabled_pos_get(void);
    const char *elm_obj_actionslider_selected_label_get(void);
    extern const Eo_Event_Description _ELM_ACTIONSLIDER_EVENT_POS_CHANGED;
]]

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

    indicator_pos_set = function(self, pos)
        eo.__do_start(self, __class)
        __lib.elm_obj_actionslider_indicator_pos_set(pos)
        eo.__do_end()
    end,

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

    magnet_pos_set = function(self, pos)
        eo.__do_start(self, __class)
        __lib.elm_obj_actionslider_magnet_pos_set(pos)
        eo.__do_end()
    end,

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

    enabled_pos_set = function(self, pos)
        eo.__do_start(self, __class)
        __lib.elm_obj_actionslider_enabled_pos_set(pos)
        eo.__do_end()
    end,

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

    selected_label_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.elm_obj_actionslider_selected_label_get()
        eo.__do_end()
    end,

    __events = {
        ["pos_changed"] = __lib._ELM_ACTIONSLIDER_EVENT_POS_CHANGED
    },

    __properties = {
        ["indicator_pos"] = { 0, 0, 1, 1, true, true },
        ["selected_label"] = { 0, 0, 1, 0, true, false },
        ["magnet_pos"] = { 0, 0, 1, 1, true, true },
        ["enabled_pos"] = { 0, 0, 1, 1, true, true }
    }
}

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

return M
