Skip to content

v1.42

Compare
Choose a tag to compare
@ocornut ocornut released this 08 Jul 19:08
· 7312 commits to master since this release
  • Renamed SetScrollPosHere() to SetScrollHere(). Kept inline redirection function (will obsolete). Renamed GetScrollPosY() to GetScrollY(). Necessary to reduce confusion and make scrolling API consistent, because positions (e.g. cursor position) are not equivalent to scrolling amount.
  • Added SDL2 example application (courtesy of @CedricGuillemet)
  • Added iOS example application (courtesy of @joeld42)
  • Added Allegro 5 example application (courtesy of @bggd)
  • Added TitleBgActive color in style so focused window is made visible. (#253)
  • Added CaptureKeyboardFromApp() / CaptureMouseFromApp() to manually enforce inputs capturing.
  • Added DragFloatRange2() DragIntRange2() helpers. (#76)
  • Added a Y centering ratio to SetScrollFromCursorPos() which can be used to aim the top or bottom of the window. (#150)
  • Added SetScrollY(), SetScrollFromPos(), GetCursorStartPos() for manual scrolling manipulations. (#150).
  • Added GetKeyIndex() helper for converting from ImGuiKey_* enum to user's keycodes. Basically pulls from io.KeysMap[].
  • Added missing ImGuiKey_PageUp, ImGuiKey_PageDown so more UI code can be written without referring to implementation-side keycodes.
  • MenuItem() can be activated on release. (#245)
  • Allowing NewFrame() with DeltaTime==0.0f to not assert.
  • Fixed IsMouseDragging(). (#260)
  • Fixed PlotLines(), PlotHistogram() using incorrect hovering test so they would show their tooltip even when there is a popup between mouse and the graph.
  • Fixed window padding being reported incorrectly for child windows with borders when parent have no borders.
  • Fixed a bug with TextUnformatted() clipping of long text blob when clipping y1 line sits on the first line of text. (#257)
  • Fixed text baseline alignment of small button (no padding) after regular buttons.
  • Fixed ListBoxHeader() not honoring negative sizes the same way as BeginChild() or BeginChildFrame(). (#263)
  • Fixed warnings for more pedantic compiler settings (#258).
  • ImVector<> cannot be re-defined anymore, cannot be replaced with std::vector<>. Allowed us to clean up and optimise lots of code. Yeah! (#262)
  • ImDrawList: store pointer to their owner name for easier auditing/debugging.
  • Examples: added scroll tracking example with SetScrollFromCursorPos().
  • Examples: metrics windows render clip rectangle when hovering over a draw call.
  • Lots of small optimisation (particularly to run faster on unoptimised builds) and tidying up.
  • Added font links in extra_fonts/ + instructions for using compressed fonts in C array.
  • Removed obsolete GetDefaultFontData() function that would assert anyway. If you are updating from <1.30 you'll get a compile error instead of an assertion. (obsoleted 2015/01/11)

drag range b

scroll b