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.
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, allowing another window method to be chained.
Example
Luau
local window = imgui.create("Example controls")
window:Button("First", function() print("First") end)
window:SameLine()
window:Button("Second", function() print("Second") end)