Immediate Mode Concept
Unlike traditional retained-mode GUI systems, ImGui uses an immediate mode approach where you describe your UI every frame:Basic Window Management
Creating a Window
Window with Close Button
Window Flags
NoTitleBar- Remove title barNoResize- Disable resizingNoMove- Prevent movingNoScrollbar- Hide scrollbarsNoCollapse- Disable collapsingAlwaysAutoResize- Auto-resize to contentNoBackground- Transparent backgroundNoInputs- Disable all inputs
Text and Labels
Basic Text
Formatted Text
Colored Text
Bullet Lists
Buttons
Basic Button
Sized Button
Small Button
Invisible Button
Icon Buttons
Input Fields
Text Input
Text Input with Hint
Multiline Text
Numeric Input
Input with Step Buttons
Sliders and Drag
Sliders
Angle Slider
Drag Input
Vector Inputs
Checkboxes and Radio Buttons
Checkbox
Radio Buttons
Combo Boxes (Dropdowns)
Basic Combo
Simple Combo (Legacy)
Color Pickers
Color Edit
Color Picker
Color Button
Lists and Selectables
Selectable Items
List Box
Layout
Same Line
Place multiple items on the same line:Spacing
Separator
Indent
Groups
Group items together:Columns
Tables
Basic Table
Table Flags
Tree Nodes
Basic Tree
Tree with Flags
Collapsing Headers
Tooltips
Simple Tooltip
Complex Tooltip
Help Marker
Popups and Modals
Context Menu
Modal Popup
Child Windows
Create scrollable regions:Progress Bars
Styling
Push/Pop Style Colors
Push/Pop Style Variables
Using Raii Helper
Item Queries
Check state of the last drawn item:Best Practices
See Also
- UiBuilder - Core UI interface
- Drawing Windows - Window management system
- Fonts - Custom font usage
- Textures - Displaying images