# Main

# ImGui.Begin

ImGui.Begin(name, is_open, flags)

gui.add_dx_layer("ImGui_DX_Layer", function()
    ImGui.SetNextWindowSize(200, 100, ImGuiCond.FirstUseEver)
    ImGui.SetNextWindowPos(30, 30, ImGuiCond.FirstUseEver)

    -- Start drawing our window
    if (ImGui.Begin("ImGui Window")) then

        -- Ending the ImGui window rendering process
        ImGui.End() 
    end
end)
gui.add_dx_layer("ImGui_DX_Layer", function()
    ImGui.SetNextWindowSize(200, 100, ImGuiCond.FirstUseEver)
    ImGui.SetNextWindowPos(30, 30, ImGuiCond.FirstUseEver)

    -- Start drawing our window
    if (ImGui.Begin("ImGui Window", true)) then

        -- Ending the ImGui window rendering process
        ImGui.End() 
    end
end)
local _flags = ImGuiWindowFlags.NoResize + ImGuiWindowFlags.NoMove + ImGuiWindowFlags.NoTitleBar;
gui.add_dx_layer("ImGui_DX_Layer", function()
    ImGui.SetNextWindowSize(200, 100, ImGuiCond.FirstUseEver)
    ImGui.SetNextWindowPos(30, 30, ImGuiCond.FirstUseEver)

    -- Start drawing our window
    if (ImGui.Begin("ImGui Window", true, _flags)) then

        -- Ending the ImGui window rendering process
        ImGui.End() 
    end
end)

# ImGui.BeginChild

ImGui.BeginChild(name, sizeX, sizeY, border, flags)

local _flags = ImGuiWindowFlags.Tooltip;
gui.add_dx_layer("ImGui_DX_Layer", function()
    ImGui.SetNextWindowSize(200, 100, ImGuiCond.FirstUseEver)
    ImGui.SetNextWindowPos(30, 30, ImGuiCond.FirstUseEver)

    if (ImGui.Begin("ImGui Window")) then
        -- Start drawing your child window
        if (ImGui.BeginChild("ImGui Child Window", 100, 200, true, _flags)) then
            -- Your code
            -- Ending the ImGui Child Window rendering process
            ImGui.EndChild() 
        end
        ImGui.End() 
    end
end)