Difference between revisions of "ImGui.Core"

From GiderosMobile
Line 51: Line 51:
 
=== Constants ===
 
=== Constants ===
 
ImGui._VERSION<br/><!--GIDEROSCST:ImGui._VERSION-->
 
ImGui._VERSION<br/><!--GIDEROSCST:ImGui._VERSION-->
 +
 +
ImGui.Col_Border<br/><!--GIDEROSCST:ImGui.Col_Border-->
 +
ImGui.Col_BorderShadow<br/><!--GIDEROSCST:ImGui.Col_BorderShadow-->
 +
ImGui.Col_Button<br/><!--GIDEROSCST:ImGui.Col_Button-->
 +
ImGui.Col_ButtonActive<br/><!--GIDEROSCST:ImGui.Col_ButtonActive-->
 +
ImGui.Col_ButtonHovered<br/><!--GIDEROSCST:ImGui.Col_ButtonHovered-->
 +
ImGui.Col_CheckMark<br/><!--GIDEROSCST:ImGui.Col_CheckMark-->
 +
ImGui.Col_ChildBg<br/><!--GIDEROSCST:ImGui.Col_ChildBg-->
 +
ImGui.Col_DragDropTarget<br/><!--GIDEROSCST:ImGui.Col_DragDropTarget-->
 +
ImGui.Col_FrameBg<br/><!--GIDEROSCST:ImGui.Col_FrameBg-->
 +
ImGui.Col_FrameBgActive<br/><!--GIDEROSCST:ImGui.Col_FrameBgActive-->
 +
ImGui.Col_FrameBgHovered<br/><!--GIDEROSCST:ImGui.Col_FrameBgHovered-->
 +
ImGui.Col_Header<br/><!--GIDEROSCST:ImGui.Col_Header-->
 +
ImGui.Col_HeaderActive<br/><!--GIDEROSCST:ImGui.Col_HeaderActive-->
 +
ImGui.Col_HeaderHovered<br/><!--GIDEROSCST:ImGui.Col_HeaderHovered-->
 +
ImGui.Col_MenuBarBg<br/><!--GIDEROSCST:ImGui.Col_MenuBarBg-->
 +
ImGui.Col_ModalWindowDimBg<br/><!--GIDEROSCST:ImGui.Col_ModalWindowDimBg-->
 +
ImGui.Col_NavHighlight<br/><!--GIDEROSCST:ImGui.Col_NavHighlight-->
 +
ImGui.Col_NavWindowingDimBg<br/><!--GIDEROSCST:ImGui.Col_NavWindowingDimBg-->
 +
ImGui.Col_NavWindowingHighlight<br/><!--GIDEROSCST:ImGui.Col_NavWindowingHighlight-->
 +
ImGui.Col_PlotHistogram<br/><!--GIDEROSCST:ImGui.Col_PlotHistogram-->
 +
ImGui.Col_PlotHistogramHovered<br/><!--GIDEROSCST:ImGui.Col_PlotHistogramHovered-->
 +
ImGui.Col_PlotLines<br/><!--GIDEROSCST:ImGui.Col_PlotLines-->
 +
ImGui.Col_PlotLinesHovered<br/><!--GIDEROSCST:ImGui.Col_PlotLinesHovered-->
 +
ImGui.Col_PopupBg<br/><!--GIDEROSCST:ImGui.Col_PopupBg-->
 +
ImGui.Col_ResizeGrip<br/><!--GIDEROSCST:ImGui.Col_ResizeGrip-->
 +
ImGui.Col_ResizeGripActive<br/><!--GIDEROSCST:ImGui.Col_ResizeGripActive-->
 +
ImGui.Col_ResizeGripHovered<br/><!--GIDEROSCST:ImGui.Col_ResizeGripHovered-->
 +
ImGui.Col_ScrollbarBg<br/><!--GIDEROSCST:ImGui.Col_ScrollbarBg-->
 +
ImGui.Col_ScrollbarGrab<br/><!--GIDEROSCST:ImGui.Col_ScrollbarGrab-->
 +
ImGui.Col_ScrollbarGrabActive<br/><!--GIDEROSCST:ImGui.Col_ScrollbarGrabActive-->
 +
ImGui.Col_ScrollbarGrabHovered<br/><!--GIDEROSCST:ImGui.Col_ScrollbarGrabHovered-->
 +
ImGui.Col_Separator<br/><!--GIDEROSCST:ImGui.Col_Separator-->
 +
ImGui.Col_SeparatorActive<br/><!--GIDEROSCST:ImGui.Col_SeparatorActive-->
 +
ImGui.Col_SeparatorHovered<br/><!--GIDEROSCST:ImGui.Col_SeparatorHovered-->
 +
ImGui.Col_SliderGrab<br/><!--GIDEROSCST:ImGui.Col_SliderGrab-->
 +
ImGui.Col_SliderGrabActive<br/><!--GIDEROSCST:ImGui.Col_SliderGrabActive-->
 +
ImGui.Col_Tab<br/><!--GIDEROSCST:ImGui.Col_Tab-->
 +
ImGui.Col_TabActive<br/><!--GIDEROSCST:ImGui.Col_TabActive-->
 +
ImGui.Col_TabHovered<br/><!--GIDEROSCST:ImGui.Col_TabHovered-->
 +
ImGui.Col_TableBorderLight<br/><!--GIDEROSCST:ImGui.Col_TableBorderLight-->
 +
ImGui.Col_TableBorderStrong<br/><!--GIDEROSCST:ImGui.Col_TableBorderStrong-->
 +
ImGui.Col_TableHeaderBg<br/><!--GIDEROSCST:ImGui.Col_TableHeaderBg-->
 +
ImGui.Col_TableRowBg<br/><!--GIDEROSCST:ImGui.Col_TableRowBg-->
 +
ImGui.Col_TableRowBgAlt<br/><!--GIDEROSCST:ImGui.Col_TableRowBgAlt-->
 +
ImGui.Col_TabUnfocused<br/><!--GIDEROSCST:ImGui.Col_TabUnfocused-->
 +
ImGui.Col_TabUnfocusedActive<br/><!--GIDEROSCST:ImGui.Col_TabUnfocusedActive-->
 +
ImGui.Col_Text<br/><!--GIDEROSCST:ImGui.Col_Text-->
 +
ImGui.Col_TextDisabled<br/><!--GIDEROSCST:ImGui.Col_TextDisabled-->
 +
ImGui.Col_TextSelectedBg<br/><!--GIDEROSCST:ImGui.Col_TextSelectedBg-->
 +
ImGui.Col_TitleBg<br/><!--GIDEROSCST:ImGui.Col_TitleBg-->
 +
ImGui.Col_TitleBgActive<br/><!--GIDEROSCST:ImGui.Col_TitleBgActive-->
 +
ImGui.Col_TitleBgCollapsed<br/><!--GIDEROSCST:ImGui.Col_TitleBgCollapsed-->
 +
ImGui.Col_WindowBg<br/><!--GIDEROSCST:ImGui.Col_WindowBg-->
 
|}
 
|}
  
 
----
 
----
 
'''[[Dear ImGui]]'''
 
'''[[Dear ImGui]]'''

Revision as of 06:42, 24 March 2021

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2020.9

Description

This is the ImGui main class.


PLEASE NOTE THE DOCUMENTATION IS WORK IN PROGRESS


Methods

ImGui.new initializes ImGui

ImGui:beginWindow pushes window to the stack and starts appending to it
ImGui:endFrame ends the ImGui frame
ImGui:endWindow pops window from the stack
ImGui:getIO accesses the IO structure (mouse/keyboard/gamepad inputs...)
ImGui:getStyle accesses the Style structure (colors, sizes)
ImGui:newFrame starts a new ImGui frame
ImGui:render ends the ImGui frame, finalizes the draw data
ImGui:setClassicStyle sets a classic color style
ImGui:setDarkStyle sets a dark color style
ImGui:setLightStyle sets a light color style
ImGui:showAboutWindow creates an ImGui About window
ImGui:showDemoWindow displays an ImGui demo
ImGui:showFontSelector adds a font selector block (not a window)
ImGui:showMetricsWindow displays an ImGui metrics window
ImGui:showStyleEditor adds the style editor block (not a window)
ImGui:showStyleSelector adds a style selector block (not a window)
ImGui:showUserGuide adds basic help/info block (not a window)
ImGui:text displays an ImGui text
ImGui:textColored displays an ImGui colored text

Events

ImGui.KeyChar
ImGui.KeyDown
ImGui.KeyUp
ImGui.MouseDown
ImGui.MouseHover
ImGui.MouseMove
ImGui.MouseUp
ImGui.MouseWheel
ImGui.TouchBegin
ImGui.TouchEnd
ImGui.TouchCancel
ImGui.TouchMove

Constants

ImGui._VERSION

ImGui.Col_Border
ImGui.Col_BorderShadow
ImGui.Col_Button
ImGui.Col_ButtonActive
ImGui.Col_ButtonHovered
ImGui.Col_CheckMark
ImGui.Col_ChildBg
ImGui.Col_DragDropTarget
ImGui.Col_FrameBg
ImGui.Col_FrameBgActive
ImGui.Col_FrameBgHovered
ImGui.Col_Header
ImGui.Col_HeaderActive
ImGui.Col_HeaderHovered
ImGui.Col_MenuBarBg
ImGui.Col_ModalWindowDimBg
ImGui.Col_NavHighlight
ImGui.Col_NavWindowingDimBg
ImGui.Col_NavWindowingHighlight
ImGui.Col_PlotHistogram
ImGui.Col_PlotHistogramHovered
ImGui.Col_PlotLines
ImGui.Col_PlotLinesHovered
ImGui.Col_PopupBg
ImGui.Col_ResizeGrip
ImGui.Col_ResizeGripActive
ImGui.Col_ResizeGripHovered
ImGui.Col_ScrollbarBg
ImGui.Col_ScrollbarGrab
ImGui.Col_ScrollbarGrabActive
ImGui.Col_ScrollbarGrabHovered
ImGui.Col_Separator
ImGui.Col_SeparatorActive
ImGui.Col_SeparatorHovered
ImGui.Col_SliderGrab
ImGui.Col_SliderGrabActive
ImGui.Col_Tab
ImGui.Col_TabActive
ImGui.Col_TabHovered
ImGui.Col_TableBorderLight
ImGui.Col_TableBorderStrong
ImGui.Col_TableHeaderBg
ImGui.Col_TableRowBg
ImGui.Col_TableRowBgAlt
ImGui.Col_TabUnfocused
ImGui.Col_TabUnfocusedActive
ImGui.Col_Text
ImGui.Col_TextDisabled
ImGui.Col_TextSelectedBg
ImGui.Col_TitleBg
ImGui.Col_TitleBgActive
ImGui.Col_TitleBgCollapsed
ImGui.Col_WindowBg


Dear ImGui