ImGuiWindow: SameLine Synchronous
Place the next control in the previous control’s row. Call it immediately before adding the item that should sit alongside its neighbor.
Luau
ImGuiWindow:SameLine() -> ImGuiWindowParameters
Call this method with a ImGuiWindow receiver. The colon supplies self implicitly; a dot call must pass the receiver explicitly.
This function takes no arguments.
Returns
ImGuiWindowThe same ImGuiWindow handle, so more controls can be added with another method call.
Example
Luau
local window = imgui.create("Example controls")
window:Button("Accept", function() print("Accepted") end)
window:SameLine()
window:Button("Cancel", function() window:destroy() end)