-- EFL LuaJIT bindings: efl_pack_layout.eo (class Efl.Pack.Layout)
-- 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.efl_pack_layout_interface_get()
    eo.class_register("Efl_Pack_Layout", nil, nil, __body, __class)
end

cutil.init_module(init, function() end)

ffi.cdef [[
    const Eo_Class *efl_pack_layout_interface_get(void);
    void efl_pack_layout_engine_set(const Eo_Base * engine, const void * data);
    void efl_pack_layout_engine_get(const Eo_Base * *engine, const void * *data);
    void efl_pack_layout_request(void);
]]

local __M = util.get_namespace(M, { "pack" })
__body = {
    layout_engine_set = function(self, engine, data)
        eo.__do_start(self, __class)
        __lib.efl_pack_layout_engine_set(engine, data)
        eo.__do_end()
    end,

    layout_engine_get = function(self)
        eo.__do_start(self, __class)
        local engine = ffi.new("const Eo_Base *[1]")
        local data = ffi.new("const void *[1]")
        __lib.efl_pack_layout_engine_get(engine, data)
        eo.__do_end()
        return engine[0], data[0]
    end,

    layout_request = function(self)
        eo.__do_start(self, __class)
        __lib.efl_pack_layout_request()
        eo.__do_end()
    end,

    __properties = {
        ["layout_engine"] = { 0, 0, 2, 2, true, true }
    }
}
__body["__iface_Efl_Pack_Layout"] = true

return M
