Commit Graph

6606 Commits (fba756176d659a8de8f711f68a4a04c675add942)
 

Author SHA1 Message Date
omar 23c1ff4907 Removed redirecting functions/enums names that were marked obsolete in 1.52 (October 2017).
- Begin() [old 5 args version]     -> use Begin() [3 args], use SetNextWindowSize() SetNextWindowBgAlpha() if needed
- IsRootWindowOrAnyChildHovered()  -> use IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows)
- AlignFirstTextHeightToWidgets()  -> use AlignTextToFramePadding();
- SetNextWindowPosCenter()         -> use SetNextWindowPos() with a pivot of (0.5f, 0.5f)
- ImFont::Glyph                    -> use ImFontGlyph
If you were still using the old names, read "API Breaking Changes" section of imgui.cpp to find out the new names or equivalent features, or see how they were implemented until 1.73.
omar 048b73dfaa Various comments + Doc: Examples readme. Moved main menu bar code below menu bar code.
omar 7dbae8a198
Doc: Simplified Readme, removed FAQ index
omar 6ffee0e75e Backends: DX12: Added extra ID3D12DescriptorHeap parameter to ImGui_ImplDX12_Init() function. The value is unused in master branch but will be used by the multi-viewport features (docking branch). ()
+ Using SafeRelease() in master.
omar eedc8f993f Examples: DX12: Using IDXGIDebug1::ReportLiveObjects() when DX12_ENABLE_DEBUG_LAYER is enabled.
malte-v 4de32cc87e Backends: GLFW: Restore previously installed user callbacks in ImplGlfw when ImGui shuts down ()
Rokas Kupstys 714fe29d1a Replace manual flooring with IM_FLOOR() macro. ()
Macro is used to ensure that flooring operation is always inlined even in debug builds. __forceinline does not force inlining in /Od builds with MSVC.

(cherry picked from commit bc165df6fd7969605bbc07b8a6d3d28f9109e8f3)
omar 53278be61f FAQ, Readme. Use = {} instead of = { 0 }, wasn't problematic because they were all static variables or one stack array not read. But hey.
omar 9994f5bcbe Fixed more FAQ links, oops.. ()
omar 3bbc27ebd9 Fixed more FAQ links. ()
omar 5fc427a49e Improved and moved FAQ to docs/FAQ.md so it can be readable on the web. ()
Rokas Kupstys 9d6b2b096b Ignore directories created by JetBrains IDEs.
(cherry picked from commit c470de572c2f63e7ba5eeb7d97bc1f4bc114b375)
Rokas Kupstys 6892b81578 Remove trailing spaces from bunch of files.
(cherry picked from commit 50e0f8d4ddf4c426f62f346c8260a927f6b7c779)
omar c21fdabb43 Doc: Readme: moving contents to FAQ.
omar a41f0b2df4 Inputs: Fixed a miscalculation in the keyboard/mouse "typematic" repeat delay/rate calculation, used by keys and e.g. repeating mouse buttons as well as the GetKeyPressedAmount() function.
IMPORTANT: Renamed internal CalcTypematicPressedRepeatAmount to CalcTypematicRepeatAmount and reordered the t1, t0 arguments to t0, t1 !!
If you were using a non-default value for io.KeyRepeatRate (previous default was 0.250), you can add +io.KeyRepeatDelay to it to compensate for the fix.  The function was triggering on: 0.0 and (delay+rate*N) where (N>=1). Fixed formula responds to (N>=0).
Effectively it made io.KeyRepeatRate behave like it was set to (io.KeyRepeatRate + io.KeyRepeatDelay).
Fixed the code and altered default io.KeyRepeatRate,Delay from 0.250,0.050 to 0.300,0.050 to compensate.
If you never altered io.KeyRepeatRate nor used GetKeyPressedAmount() this won't affect you.
omar c7bdec7e18 InputText, Nav: Fixed Left!Right keys broken when activating Keyboard Navigation. () Amend 892dfb1
omar 67e4cd5cc6 Comments, some logging for NavInitRequest debugging Moved OpenPopupOnItemClick() next to BeginPopupContextItem()
omar 8c4dcbfa45
Diligent Engine
omar 23eabd5991
Emscripten
omar 58411033e2
Bindings
omar 1c73a0c17e
Bindings
omar cba84df7b5
Update README.md
omar aeb6481499 InputText: Filter out Ascii 127 (DEL) emitted by low-level OSX layer, as we are using the Key value. ()
omar fc10ba8d24 Amend f0238ece9cba67ecabef438008fea53682bd6bc7 (, )
Egor Yusov 378035c6ff Fixed backspace handling on MacOS (fixed https://github.com/ocornut/imgui/issues/2817).
Allow null view passing as parameter to ImGui_ImplOSX_NewFrame
omar bf746c4215 DragScalar, SliderScalar, InputScalar: Added p_ prefix to parameter that are pointers to the datato clarify how they are used, and more comments redirecting to the demo code. ()
omar 927472f5ff Combo: Added _NoMove flag to prevent window from docking, which has an effect in Docking branch (in Master was not noticeable as the Combo code kept repositioning the window). ()
omar 3b271b1847 Demo: Added simple item reordering demo in Widgets -> Drag and Drop section. (, ) [@rokups]
omar 8aad3482a4 ImVector: Fixed index_from_ptr() not asserting when passed end() element.
Harris Brakmic 323412dd23 Examples: Allegro5: updated build instructions for macOS
omar 73fa6509a5 Internal: InputTextEx: tweaked a bit of code (should be a no-op)
omar f1f321d3f6
Update README.md
omar ee3373d067 TreeNode: Fixed combination of ImGuiTreeNodeFlags_SpanFullWidth and ImGuiTreeNodeFlags_OpenOnArrow incorrectly locating the arrow hit position to the left of the frame. (, , )
domgho ccb2a947a2 Internal: SliderBehaviorT: Condition '!is_decimal' is always true ()
omar 1425bec7a4 Demo: Text baseline demo tweaks.
omar a6c3be4bda Internals: Tweaks to ItemSize() should be harmless. Added DebugDrawItemRect() helper.
omar 892dfb1dea InputText, Nav: Fixed Home/End key broken when activating Keyboard Navigation. ()
Small refactor of ActiveIdUsingXXX inputs flags toward a little more consistent system. ()
omar a2f3dcfc97 Added comment about SDL and SDL_INIT_GAMECONTROLLER. ()
Denys Nahurnyi 893056a209 Fix syntax typos in README ()
omar eb5223276c
Update README.md
omar 0dad3f436b Fix harmless float calculation overflow. ()
omar c262276988 Version 1.74 WIP
Konstantin Podsvirov f0f5301612 Backends: OpenGL3: Commented out extra tokens at end of #else directive ()
omar 688cf868ea Merge branch 'master' of https://github.com/ocornut/imgui
omar d5efe16157 Version 1.73
omar 293f74e996
Update README.md
omar 664f9e76b9 Documentation: Various tweaks and improvements to the README page. [@ker0chan]
goran-w e100523917 CollapsingHeader: Added support for ImGuiTreeNodeFlags_Bullet and ImGuiTreeNodeFlags_Leaf on framed nodes. (, )
The Bullet and Leaf ImGuiTreeNodeFlags are now taken into account for Framed/CollapsingHeader tree nodes as well. TreeNodeEx() can be used to specify these flags. A choice was made to left-adjust the Framed text when no Bullet/Arrow is rendered, since this was deemed to look better in the Framed context (especially when considering that CollapsingHeader is drawn using NoTreePushOnOpen, so child/sibling Text items etc will often be non-indented).
omar ca858c084b Demo tweaks. Comments. Compacting the rarely used AutoFitXXX fields in ImGuiWindowTempData.
omar 52deb415e0 Internal: Refactored internal RenderMouseCursor so colors can be specified. ()