Difference between revisions of "ImGui.Core"

From GiderosMobile
Line 13: Line 13:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[ImGui.new]] ''initializes ImGui''<br/><!--GIDEROSMTD:ImGui.new() initializes ImGui-->
+
[[ImGui.Core.new|ImGui.new]] ''initializes ImGui''<br/><!--GIDEROSMTD:ImGui.new() initializes ImGui-->
  
 
[[ImGui.Core:arrowButton|ImGui:arrowButton]] ''displays an ImGui arrow button''<br/><!--GIDEROSMTD:ImGui:arrowButton(stringID, direction) displays an ImGui arrow button-->
 
[[ImGui.Core:arrowButton|ImGui:arrowButton]] ''displays an ImGui arrow button''<br/><!--GIDEROSMTD:ImGui:arrowButton(stringID, direction) displays an ImGui arrow button-->
[[ImGui:beginWindow]] ''pushes window to the stack and starts appending to it''<br/><!--GIDEROSMTD:ImGui:beginWindow(name, p_open, flags) pushes window to the stack and starts appending to it-->
+
[[ImGui.Core:beginWindow|ImGui:beginWindow]] ''pushes window to the stack and starts appending to it''<br/><!--GIDEROSMTD:ImGui:beginWindow(name, p_open, flags) pushes window to the stack and starts appending to it-->
 
[[ImGui.Core:bulletText|ImGui:bulletText]] ''displays an ImGui bulleted text''<br/><!--GIDEROSMTD:ImGui:bulletText(string) displays an ImGui bulleted text-->
 
[[ImGui.Core:bulletText|ImGui:bulletText]] ''displays an ImGui bulleted text''<br/><!--GIDEROSMTD:ImGui:bulletText(string) displays an ImGui bulleted text-->
 
[[ImGui.Core:button|ImGui:button]] ''displays an ImGui button''<br/><!--GIDEROSMTD:ImGui:button(string, w, h) displays an ImGui button-->
 
[[ImGui.Core:button|ImGui:button]] ''displays an ImGui button''<br/><!--GIDEROSMTD:ImGui:button(string, w, h) displays an ImGui button-->
[[ImGui:endFrame]] ''ends the ImGui frame''<br/><!--GIDEROSMTD:ImGui:endFrame() ends the ImGui frame-->
+
[[ImGui.Core:endFrame|ImGui:endFrame]] ''ends the ImGui frame''<br/><!--GIDEROSMTD:ImGui:endFrame() ends the ImGui frame-->
[[ImGui:endWindow]] ''pops window from the stack''<br/><!--GIDEROSMTD:ImGui:endWindow() pops window from the stack-->
+
[[ImGui.Core:endWindow|ImGui:endWindow]] ''pops window from the stack''<br/><!--GIDEROSMTD:ImGui:endWindow() pops window from the stack-->
[[ImGui:getIO]] ''accesses the IO structure (mouse/keyboard/gamepad inputs...)''<br/><!--GIDEROSMTD:ImGui:getIO() accesses the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags)-->
+
[[ImGui.Core:getIO|ImGui:getIO]] ''accesses the IO structure (mouse/keyboard/gamepad inputs...)''<br/><!--GIDEROSMTD:ImGui:getIO() accesses the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags)-->
[[ImGui:getStyle]] ''accesses the Style structure (colors, sizes)''<br/><!--GIDEROSMTD:ImGui:getStyle() accesses the Style structure (colors, sizes)-->
+
[[ImGui.Core:getStyle|ImGui:getStyle]] ''accesses the Style structure (colors, sizes)''<br/><!--GIDEROSMTD:ImGui:getStyle() accesses the Style structure (colors, sizes)-->
 
[[ImGui.Core:image|ImGui:image]] ''an ImGui image''<br/><!--GIDEROSMTD:ImGui:image(texture, w, h, color, alpha, bordercolor, borderalpha) an ImGui image-->
 
[[ImGui.Core:image|ImGui:image]] ''an ImGui image''<br/><!--GIDEROSMTD:ImGui:image(texture, w, h, color, alpha, bordercolor, borderalpha) an ImGui image-->
 
[[ImGui.Core:imageButton|ImGui:imageButton]] ''displays an ImGui image button''<br/><!--GIDEROSMTD:ImGui:imageButton(texture, w, h, padding, tintColor, alpha, borderColor, borderalpha) displays an ImGui image button-->
 
[[ImGui.Core:imageButton|ImGui:imageButton]] ''displays an ImGui image button''<br/><!--GIDEROSMTD:ImGui:imageButton(texture, w, h, padding, tintColor, alpha, borderColor, borderalpha) displays an ImGui image button-->
Line 29: Line 29:
 
[[ImGui.Core:invisibleButton|ImGui:invisibleButton]] ''an ImGui invisible button''<br/><!--GIDEROSMTD:ImGui:invisibleButton(string, w, h) an ImGui invisible button-->
 
[[ImGui.Core:invisibleButton|ImGui:invisibleButton]] ''an ImGui invisible button''<br/><!--GIDEROSMTD:ImGui:invisibleButton(string, w, h) an ImGui invisible button-->
 
[[ImGui.Core:labelText|ImGui:labelText]] ''displays an ImGui labelled text''<br/><!--GIDEROSMTD:ImGui:labelText(string, string) displays an ImGui labelled text-->
 
[[ImGui.Core:labelText|ImGui:labelText]] ''displays an ImGui labelled text''<br/><!--GIDEROSMTD:ImGui:labelText(string, string) displays an ImGui labelled text-->
[[ImGui:newFrame]] ''starts a new ImGui frame''<br/><!--GIDEROSMTD:ImGui:newFrame(dt) starts a new ImGui frame-->
+
[[ImGui.Core:newFrame|ImGui:newFrame]] ''starts a new ImGui frame''<br/><!--GIDEROSMTD:ImGui:newFrame(dt) starts a new ImGui frame-->
[[ImGui:render]] ''ends the ImGui frame, finalizes the draw data''<br/><!--GIDEROSMTD:ImGui:render() ends the ImGui frame, finalizes the draw data-->
+
[[ImGui.Core:render|ImGui:render]] ''ends the ImGui frame, finalizes the draw data''<br/><!--GIDEROSMTD:ImGui:render() ends the ImGui frame, finalizes the draw data-->
 
[[ImGui.Core:scaledImage|ImGui:scaledImage]] ''an ImGui scaled image''<br/><!--GIDEROSMTD:ImGui:scaledImage(texture, w, h, tintColor, alpha, borderColor, borderAlpha, anchorX, anchorY) an ImGui scaled image-->
 
[[ImGui.Core:scaledImage|ImGui:scaledImage]] ''an ImGui scaled image''<br/><!--GIDEROSMTD:ImGui:scaledImage(texture, w, h, tintColor, alpha, borderColor, borderAlpha, anchorX, anchorY) an ImGui scaled image-->
 
[[ImGui.Core:scaledImageFilled|ImGui:scaledImageFilled]] ''an ImGui scaled image and filled''<br/><!--GIDEROSMTD:ImGui:scaledImageFilled(texture, w, h, tintColor, alpha, bgColor, bgAlpha, borderColor, borderAlpha, anchorX, anchorY) an ImGui scaled image and filled-->
 
[[ImGui.Core:scaledImageFilled|ImGui:scaledImageFilled]] ''an ImGui scaled image and filled''<br/><!--GIDEROSMTD:ImGui:scaledImageFilled(texture, w, h, tintColor, alpha, bgColor, bgAlpha, borderColor, borderAlpha, anchorX, anchorY) an ImGui scaled image and filled-->
 
[[ImGui.Core:scaledImageButton|ImGui:scaledImageButton]] ''an ImGui scaled image button''<br/><!--GIDEROSMTD:ImGui:scaledImageButton(texture, w, h, padding, color, alpha, bgcColor, bgAlpha, anchorX, anchorY) an ImGui scaled image button-->
 
[[ImGui.Core:scaledImageButton|ImGui:scaledImageButton]] ''an ImGui scaled image button''<br/><!--GIDEROSMTD:ImGui:scaledImageButton(texture, w, h, padding, color, alpha, bgcColor, bgAlpha, anchorX, anchorY) an ImGui scaled image button-->
 
[[ImGui.Core:scaledImageButtonWithText|ImGui:scaledImageButtonWithText]] ''an ImGui scaled image button and some text''<br/><!--GIDEROSMTD:ImGui:scaledImageButtonWithText(texture, text, w, h, padding, bgColor, bgAlpha, Color, alpha, anchorX, anchorY) an ImGui scaled image button and some text-->
 
[[ImGui.Core:scaledImageButtonWithText|ImGui:scaledImageButtonWithText]] ''an ImGui scaled image button and some text''<br/><!--GIDEROSMTD:ImGui:scaledImageButtonWithText(texture, text, w, h, padding, bgColor, bgAlpha, Color, alpha, anchorX, anchorY) an ImGui scaled image button and some text-->
[[ImGui:setClassicStyle]] ''sets a classic color style''<br/><!--GIDEROSMTD:ImGui:setClassicStyle() sets a classic color style-->
+
[[ImGui.Core:setClassicStyle|ImGui:setClassicStyle]] ''sets a classic color style''<br/><!--GIDEROSMTD:ImGui:setClassicStyle() sets a classic color style-->
[[ImGui:setDarkStyle]] ''sets a dark color style''<br/><!--GIDEROSMTD:ImGui:setDarkStyle() sets a dark color style-->
+
[[ImGui.Core:setDarkStyle|ImGui:setDarkStyle]] ''sets a dark color style''<br/><!--GIDEROSMTD:ImGui:setDarkStyle() sets a dark color style-->
[[ImGui:setLightStyle]] ''sets a light color style''<br/><!--GIDEROSMTD:ImGui:setLightStyle() sets a light color style-->
+
[[ImGui.Core:setLightStyle|ImGui:setLightStyle]] ''sets a light color style''<br/><!--GIDEROSMTD:ImGui:setLightStyle() sets a light color style-->
[[ImGui:showAboutWindow]] ''adds an ImGui About window''<br/><!--GIDEROSMTD:ImGui:showAboutWindow() adds an ImGui About window, displaying ImGui version, credits and build/system information-->
+
[[ImGui.Core:showAboutWindow|ImGui:showAboutWindow]] ''adds an ImGui About window''<br/><!--GIDEROSMTD:ImGui:showAboutWindow() adds an ImGui About window, displaying ImGui version, credits and build/system information-->
[[ImGui:showDemoWindow]] ''adds an ImGui demo window''<br/><!--GIDEROSMTD:ImGui:showDemoWindow() adds an ImGui demo window-->
+
[[ImGui.Core:showDemoWindow|ImGui:showDemoWindow]] ''adds an ImGui demo window''<br/><!--GIDEROSMTD:ImGui:showDemoWindow() adds an ImGui demo window-->
[[ImGui:showFontSelector]] ''adds a font selector block (not a window)''<br/><!--GIDEROSMTD:ImGui:showFontSelector(font) adds a font selector block (not a window)-->
+
[[ImGui.Core:showFontSelector|ImGui:showFontSelector]] ''adds a font selector block (not a window)''<br/><!--GIDEROSMTD:ImGui:showFontSelector(font) adds a font selector block (not a window)-->
[[ImGui:showMetricsWindow]] ''adds an ImGui metrics window''<br/><!--GIDEROSMTD:ImGui:showMetricsWindow() adds an ImGui metrics window-->
+
[[ImGui.Core:showMetricsWindow|ImGui:showMetricsWindow]] ''adds an ImGui metrics window''<br/><!--GIDEROSMTD:ImGui:showMetricsWindow() adds an ImGui metrics window-->
[[ImGui:showStyleEditor]] ''adds the style editor block (not a window)''<br/><!--GIDEROSMTD:ImGui:showStyleEditor() adds the style editor block (not a window)-->
+
[[ImGui.Core:showStyleEditor|ImGui:showStyleEditor]] ''adds the style editor block (not a window)''<br/><!--GIDEROSMTD:ImGui:showStyleEditor() adds the style editor block (not a window)-->
[[ImGui:showStyleSelector]] ''adds a style selector block (not a window)''<br/><!--GIDEROSMTD:ImGui:showStyleSelector(style) adds a style selector block (not a window)-->
+
[[ImGui.Core:showStyleSelector|ImGui:showStyleSelector]] ''adds a style selector block (not a window)''<br/><!--GIDEROSMTD:ImGui:showStyleSelector(style) adds a style selector block (not a window)-->
[[ImGui:showUserGuide]] ''adds basic help/info block (not a window)''<br/><!--GIDEROSMTD:ImGui:showUserGuide() adds basic help/info block (not a window)-->
+
[[ImGui.Core:showUserGuide|ImGui:showUserGuide]] ''adds basic help/info block (not a window)''<br/><!--GIDEROSMTD:ImGui:showUserGuide() adds basic help/info block (not a window)-->
 
[[ImGui.Core:smallButton|ImGui:smallButton]] ''displays an ImGui small button''<br/><!--GIDEROSMTD:ImGui:smallButton(string) displays an ImGui small button-->
 
[[ImGui.Core:smallButton|ImGui:smallButton]] ''displays an ImGui small button''<br/><!--GIDEROSMTD:ImGui:smallButton(string) displays an ImGui small button-->
[[ImGui:text]] ''displays an ImGui text''<br/><!--GIDEROSMTD:ImGui:text(string) displays an ImGui text-->
+
[[ImGui.Core:text|ImGui:text]] ''displays an ImGui text''<br/><!--GIDEROSMTD:ImGui:text(string) displays an ImGui text-->
[[ImGui:textColored]] ''displays an ImGui colored text''<br/><!--GIDEROSMTD:ImGui:textColored(string, hex, alpha) displays an ImGui colored text-->
+
[[ImGui.Core:textColored|ImGui:textColored]] ''displays an ImGui colored text''<br/><!--GIDEROSMTD:ImGui:textColored(string, hex, alpha) displays an ImGui colored text-->
[[ImGui:textDisabled]] ''displays an ImGui disabled text''<br/><!--GIDEROSMTD:ImGui:textDisabled(string) displays an ImGui disabled text-->
+
[[ImGui.Core:textDisabled|ImGui:textDisabled]] ''displays an ImGui disabled text''<br/><!--GIDEROSMTD:ImGui:textDisabled(string) displays an ImGui disabled text-->
[[ImGui:textWrapped]] ''displays an ImGui wrapped text''<br/><!--GIDEROSMTD:ImGui:textWrapped(string) displays an ImGui wrapped text-->
+
[[ImGui.Core:textWrapped|ImGui:textWrapped]] ''displays an ImGui wrapped text''<br/><!--GIDEROSMTD:ImGui:textWrapped(string) displays an ImGui wrapped text-->
  
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|

Revision as of 01:41, 27 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:arrowButton displays an ImGui arrow button
ImGui:beginWindow pushes window to the stack and starts appending to it
ImGui:bulletText displays an ImGui bulleted text
ImGui:button displays an ImGui button
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:image an ImGui image
ImGui:imageButton displays an ImGui image button
ImGui:imageButtonWithText displays an ImGui image button with some text
ImGui:imageFilled an ImGui filled image
ImGui:invisibleButton an ImGui invisible button
ImGui:labelText displays an ImGui labelled text
ImGui:newFrame starts a new ImGui frame
ImGui:render ends the ImGui frame, finalizes the draw data
ImGui:scaledImage an ImGui scaled image
ImGui:scaledImageFilled an ImGui scaled image and filled
ImGui:scaledImageButton an ImGui scaled image button
ImGui:scaledImageButtonWithText an ImGui scaled image button and some text
ImGui:setClassicStyle sets a classic color style
ImGui:setDarkStyle sets a dark color style
ImGui:setLightStyle sets a light color style
ImGui:showAboutWindow adds an ImGui About window
ImGui:showDemoWindow adds an ImGui demo window
ImGui:showFontSelector adds a font selector block (not a window)
ImGui:showMetricsWindow adds 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:smallButton displays an ImGui small button
ImGui:text displays an ImGui text
ImGui:textColored displays an ImGui colored text
ImGui:textDisabled displays an ImGui disabled text
ImGui:textWrapped displays an ImGui wrapped 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

Window Flags
ImGui.WindowFlags_AlwaysAutoResize
ImGui.WindowFlags_AlwaysHorizontalScrollbar
ImGui.WindowFlags_AlwaysUseWindowPadding
ImGui.WindowFlags_AlwaysVerticalScrollbar
ImGui.WindowFlags_HorizontalScrollbar
ImGui.WindowFlags_MenuBar
ImGui.WindowFlags_NoBackground
ImGui.WindowFlags_NoBringToFrontOnFocus
ImGui.WindowFlags_NoCollapse
ImGui.WindowFlags_NoDecoration
ImGui.WindowFlags_NoFocusOnAppearing
ImGui.WindowFlags_NoInputs
ImGui.WindowFlags_NoMouseInputs
ImGui.WindowFlags_NoMove
ImGui.WindowFlags_NoNav
ImGui.WindowFlags_NoNavFocus
ImGui.WindowFlags_NoNavInputs
ImGui.WindowFlags_None
ImGui.WindowFlags_NoResize
ImGui.WindowFlags_NoSavedSettings
ImGui.WindowFlags_NoScrollbar
ImGui.WindowFlags_NoScrollWithMouse
ImGui.WindowFlags_NoTitleBar
ImGui.WindowFlags_UnsavedDocument

Col Flags
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