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.

Syntax
Luau
ImGuiWindow:SameLine() -> ImGuiWindow

Parameters

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

ImGuiWindow

The same ImGuiWindow handle, so more controls can be added with another method call.

Example

Example
Luau
local window = imgui.create("Example controls")
window:Button("Accept", function() print("Accepted") end)
window:SameLine()
window:Button("Cancel", function() window:destroy() end)
Kawaii documentation