ImGui
Overview
ImGui provides immediate mode GUI functions for creating custom interfaces, overlays, and interactive elements within Growlauncher scripts.
In Growlauncher 7.0.38 the binding table registers 249 functions, the same set listed in ImGui_Function_List.lua. Declarations in annotations/imgui.lua that are absent from that list are editor hints only and are not callable in this build.
Categories
- Demo & Debug Utilities - Debug and demo functions
- Window Management - Window creation and control
- Child Windows - Child window management
- Window Utilities - Window helper functions
- Content Region - Content region management
- Scrolling - Scroll control
- Style Stacks - Style stack operations
- Cursor & Layout - Layout and cursor control
- Text Widgets - Text display widgets
- Main Widgets - Primary interactive widgets
- Color Editor/Picker - Color selection widgets
- Trees - Tree view widgets
- Selectables - Selection widgets
- Data Plotting - Data visualization widgets
- Menus - Menu creation
- Popups & Modals - Popup and modal windows
- Columns - Column layout
- Tab Bars & Tabs - Tab interface
- Drag & Drop - Drag and drop
- Focus & Activation - Focus management
- Item Utilities - Item helper functions
- Miscellaneous Utilities - Miscellaneous functions
- Input Handling - Input event handling
- Input Text Widgets - Text input widgets
- Image Functions - Image display
- Tables - Table creation
- Draw Lists - Background and foreground draw lists
- Constants - Constant tables on the ImGui global
Quick Start
lua
-- Basic ImGui window
function onDrawImGui(deltaTime)
if ImGui.Begin("My Window", true) then
ImGui.Text("Hello, ImGui!")
if ImGui.Button("Click Me") then
print("Button clicked!")
end
ImGui.End()
end
end
addHook(onDrawImGui, "ondrawimgui")
applyHook()Notes
- All ImGui functions should be called within the
onDrawImGuicallback - Windows must be properly closed with
ImGui.End() - Use
ImGui.Begin()to start new windows - Refer to individual category pages for detailed function documentation