Skip to content

v1.46

Compare
Choose a tag to compare
@ocornut ocornut released this 18 Oct 16:54
· 6772 commits to master since this release
  • Begin*(): added ImGuiWindowFlags_NoFocusOnAppearing flag. (#314)
  • Begin*(): added ImGuiWindowFlags_NoBringToFrontOnFocus flag.
  • Added GetDrawData() alternative to setting a Render function pointer in ImGuiIO structure.
  • Added SetClipboardText(), GetClipboardText() helper shortcuts that user code can call directly without reading from the ImGuiIO structure (to match MemAlloc/MemFree)
  • Fixed handling of malformed UTF-8 at the end of a non-zero terminated string range.
  • Fixed mouse click detection when passing DeltaTime 0.0. (#338)
  • Fixed IsKeyReleased() and IsMouseReleased() returning true on the first frame.
  • Fixed using SetNextWindow* functions on Modal windows with a ImGuiSetCond_Appearing condition. (#377)
  • IsMouseHoveringRect(): Added 'bool clip' parameter to disable clipping provided rectangle. (#316)
  • InputText(): added ImGuiInputTextFlags_ReadOnly flag. (#211)
  • InputText(): lose cursor/undo-stack when reactivating focus is buffer has changed size.
  • InputText(): fixed ignoring text inputs when ALT or ALTGR are pressed. (#334)
  • InputText(): fixed mouse-dragging not tracking the cursor when text doesn't fit. (#339)
  • InputText(): fixed cursor pixel-perfect alignment when horizontally scrolling.
  • InputText(): fixed crash when passing a buf_size==0 (which can be of use for read-only selectable text boxes). (#360)
  • InputFloat() fixed explicit precision modifier, both display and input were broken.
  • PlotHistogram(): improved rendering of histogram with a lot of values.
  • Dummy(): creates an item so functions such as IsItemHovered() can be used.
  • BeginChildFrame() helper: added the extra_flags parameter.
  • Scrollbar: fixed rounding of background + child window consistenly have ChildWindowBg color under ScrollbarBg fill. (#355).
  • Scrollbar: background color less translucent in default style so it works better when changing background color.
  • Scrollbar: fixed minor rendering offset when borders are enabled. (#365)
  • ImDrawList: fixed 1 leak per ImDrawList using the ChannelsSplit() API (via Columns). (#318)
  • ImDrawList: fixed rectangle rendering glitches with width/height <= 1/2 and rounding enabled.
  • ImDrawList: AddImage() uv parameters default to (0,0) and (1,1).
  • ImFontAtlas: Added TexDesiredWidth and tweaked default cheapo best-width choice. (#327)
  • ImFontAtlas: Added GetGlyphRangesKorean() helper to retrieve unicode ranges for Korean. (#348)
  • ImGuiTextFilter::Draw() helper return bool and build when filter is modified.
  • ImGuiTextBuffer: added c_str() helper.
  • ColorEdit4(): fixed hovering the color button always showing 1.0 alpha. (#373)
  • ColorConvertFloat4ToU32() round the floats instead of truncating them.
  • Window: Fixed window lower-right clipping limit so it plays more friendly with both OpenGL and DirectX coordinates.
  • Internal: Extracted a EndFrame() function out of Render() but kept it internal/private + clarified some asserts. (#335)
  • Internal: Added missing IMGUI_API definitions in imgui_internal.h (#326)
  • Internal: ImLoadFileToMemory() return void* instead of taking void** + allow optional int* file_size.
  • Demo: Horizontal scrollbar demo allows to enable simultanaeous scrollbars on both axises.
  • Tools: binary_to_compressed_c.cpp: added -nocompress option.
  • Examples: Added example for the Marmalade platform.
  • Examples: Added batch files to build Windows examples with VS.
  • Examples: OpenGL3: Saving/restoring more GL state correctly. (#347)
  • Examples: OpenGL2/3: Added msys2/mingw64 target to Makefiles.

Gallery

Projects using ImGui

Goxel https://github.com/guillaumechereau/goxel

screenshot-0

screenshot-1b

LumixEngine https://github.com/nem0/lumixengine

50ffccde-6189-11e5-87a5-261684c3d479

Using invisible buttons to create splitters

ezgif-802187769