ImGuiWindow:SameLine Synchronous

Place the next item on the same line as the preceding item. Use it to arrange a compact row of related items, such as two action buttons. Call it before adding the item that should share the row.

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, allowing another window method to be chained.

Example

Example
Luau
local window = imgui.create("Example controls")
window:Button("First", function() print("First") end)
window:SameLine()
window:Button("Second", function() print("Second") end)
Kawaii documentation