ImGui.Core:endWindow

From GiderosMobile
Revision as of 17:49, 16 March 2021 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2020.9<br/> '''Class:''' Dear ImGui<br/> === Description === Pops the window from the stack. <source lang="lua"> ImGui:endWindow(...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2020.9
Class: Dear ImGui

Description

Pops the window from the stack.

ImGui:endWindow()

Example

-- LOOP
function MyClass:onEnterFrame(e)
	self.imgui:newFrame(e)
	if (self.window01) then -- if window exists
		local windowdrawn = false
		self.window01, windowdrawn = self.imgui:beginWindow(
			"Hello ImGui v"..ImGui._VERSION, -- window title
			self.window01 -- is window expanded
		)
		if (windowdrawn) then
			self.imgui:text("Hello Dear ImGui!")
		end
		self.imgui:endWindow()
	end
	self.imgui:endFrame()
	self.imgui:render()
end