Commit Graph

  • 6024051a2f Viewport: Fixed 32380a0 (#2876) omar 2019-10-29 21:18:01 +01:00
  • b3e94f5de8 Merge branch 'master' into docking omar 2019-10-29 17:21:19 +01:00
  • 6bf5aed325 Declaration and assignment can be joined, Member function may be 'const'. (#2875) stfx 2019-10-28 13:02:59 +01:00
  • c863c1f6a1 Clean up number rounding. Now it is more obvious what code is doing. (#2862) Add IM_ROUND() macro Replace IM_FLOOR(n + 0.5f) and ImFloor(n + 0.5f) with IM_ROUND(n) Rokas Kupstys 2019-10-29 17:04:13 +01:00
  • 32380a0112 Viewport: Store current dpi scale in context. omar 2019-10-29 16:43:11 +01:00
  • 0b2d35f63f Fix snprintf and vsnprintf definition inconsistencies. Sam Hocevar 2019-10-28 12:46:45 +01:00
  • 4e56de757c Doc: Promote Discord over Discourse. Obsoleting Discourse server. omar 2019-10-25 15:33:10 +02:00
  • f002a11898 Backends: OpenGL3: Fix building with pre-3.2 GL bindings which do not expose glDrawElementsBaseVertex(), using runtime GL version to decide if we set ImGuiBackendFlags_RendererHasVtxOffset. (#2866, #2852) [@dpilawa] omar 2019-10-25 11:56:36 +02:00
  • 4d0c88e9e6 Backends: GL3: Fix compile for < 3.2 bindings where glDrawElementsBaseVertex is not available. (#2866, #2852) dawid 2019-10-25 11:40:50 +02:00
  • 664fb38e39 Docking: child windows don't use style.ChildRounding. omar 2019-10-25 11:13:51 +02:00
  • 9b323a7ebf SplitterBehavior: not using FrameRounding in render (was in first commit of the function, not sure why). (#319) omar 2019-10-25 11:05:14 +02:00
  • 0cbb96895a Merge branch 'master' into docking omar 2019-10-24 15:11:37 +02:00
  • 3c238ecae3 Move issue_template and pull_request_template to .github folder. omar 2019-10-24 11:26:45 +02:00
  • d5b5a81946 GitHub Actions CI script for Windows/Linux/MacOS/iOS/Emscripten builds. Rokas Kupstys 2019-10-23 18:10:47 +03:00
  • 24e9a6e92c Remove .travis.yml due to switching to github actions. Rokas Kupstys 2019-10-23 15:39:14 +03:00
  • ec0e953cca Fixed a couple of subtle bounding box vertical positioning issues relating to text baseline alignment. The issue would generally manifest when laying out multiple items on a same line, with varying heights and text baseline offsets. (#2833) Some specific examples, e.g. a button with regular frame padding followed by another item with a multi-line label and no frame padding, such as: multi-line text, small button, tree node item, etc. The second item was correctly offset to match text baseline, and would interact/display correctly,but it wouldn't push the contents area boundary low enough. Note: previously the second parameter to ItemSize() was 0.0f was default, now -1.0f to signify "no text baseline offset request". If you have code using ItemSize() with an hardcoded zero you may need to change it. (+1 squashed commits) omar 2019-10-06 23:17:36 +02:00
  • 75d540d336 Example: Emscripten: Fix for compilation (filesystem module is required) (#2734) Funto 2019-10-23 16:55:26 +02:00
  • be9f1e8f00 ColorPicker: Fixed SV triangle gradient to block (broken in 1.73). (#2864, #2711). [@lewa-j] Alexey 2019-10-23 00:45:59 +03:00
  • 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 2019-10-22 14:43:04 +02:00
  • 048b73dfaa Various comments + Doc: Examples readme. Moved main menu bar code below menu bar code. omar 2019-10-21 16:12:46 +02:00
  • 7b77cb3bb8 Backend: DX12: Fixed incorrect assert (#2851) omar 2019-10-21 13:38:33 +02:00
  • 7dbae8a198 Doc: Simplified Readme, removed FAQ index omar 2019-10-21 13:26:47 +02:00
  • 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). (#2851) + Using SafeRelease() in master. omar 2019-10-18 18:32:48 +02:00
  • 6faad0c34f Backend: DX12: Amend 899e485. Fix memory leaks. Remove unused variable. (#2851) omar 2019-10-18 18:03:56 +02:00
  • 05c1f2795a Add multi-viewports for DX12. (#2851) Ilya.Sevrikov 2019-10-17 16:53:43 +03:00
  • eedc8f993f Examples: DX12: Using IDXGIDebug1::ReportLiveObjects() when DX12_ENABLE_DEBUG_LAYER is enabled. omar 2019-10-18 18:20:53 +02:00
  • 7feccf9ab2 Merge branch 'master' into docking omar 2019-10-18 16:50:30 +02:00
  • 4de32cc87e Backends: GLFW: Restore previously installed user callbacks in ImplGlfw when ImGui shuts down (#2836) malte-v 2019-10-18 16:25:18 +02:00
  • 714fe29d1a Replace manual flooring with IM_FLOOR() macro. (#2850) Rokas Kupstys 2019-10-17 12:36:26 +03:00
  • 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 2019-10-18 12:54:30 +02:00
  • 9994f5bcbe Fixed more FAQ links, oops.. (#2848) omar 2019-10-16 11:28:45 +02:00
  • 3bbc27ebd9 Fixed more FAQ links. (#2848) omar 2019-10-16 11:23:15 +02:00
  • 5fc427a49e Improved and moved FAQ to docs/FAQ.md so it can be readable on the web. (#2848) omar 2019-10-16 11:03:41 +02:00
  • 9d6b2b096b Ignore directories created by JetBrains IDEs. Rokas Kupstys 2019-10-15 15:48:46 +03:00
  • 6892b81578 Remove trailing spaces from bunch of files. Rokas Kupstys 2019-10-15 16:20:27 +03:00
  • c21fdabb43 Doc: Readme: moving contents to FAQ. omar 2019-10-15 13:00:04 +02:00
  • 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 2019-10-14 23:07:06 +02:00
  • c7bdec7e18 InputText, Nav: Fixed Left!Right keys broken when activating Keyboard Navigation. (#787) Amend 892dfb1 omar 2019-10-14 22:43:04 +02:00
  • 67e4cd5cc6 Comments, some logging for NavInitRequest debugging Moved OpenPopupOnItemClick() next to BeginPopupContextItem() omar 2019-10-14 14:08:56 +02:00
  • 8c4dcbfa45 Diligent Engine omar 2019-10-12 17:56:32 +02:00
  • 23eabd5991 Emscripten omar 2019-10-12 17:41:56 +02:00
  • 58411033e2 Bindings omar 2019-10-12 17:21:11 +02:00
  • 1c73a0c17e Bindings omar 2019-10-12 17:18:44 +02:00
  • cba84df7b5 Update README.md omar 2019-10-12 17:05:08 +02:00
  • aeb6481499 InputText: Filter out Ascii 127 (DEL) emitted by low-level OSX layer, as we are using the Key value. (#2578) omar 2019-10-12 14:25:18 +02:00
  • fc10ba8d24 Amend f0238ece9c (#2817, #2818) omar 2019-10-11 14:20:04 +02:00
  • 378035c6ff Fixed backspace handling on MacOS (fixed https://github.com/ocornut/imgui/issues/2817). Allow null view passing as parameter to ImGui_ImplOSX_NewFrame Egor Yusov 2019-09-30 21:16:30 -07:00
  • 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. (#2844) omar 2019-10-11 12:03:43 +02:00
  • bf4880f6a2 Merge branch 'master' into docking omar 2019-10-07 19:14:37 +02:00
  • 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). (#2835) omar 2019-10-07 19:14:08 +02:00
  • 3b271b1847 Demo: Added simple item reordering demo in Widgets -> Drag and Drop section. (#2823, #143) [@rokups] omar 2019-10-07 17:52:31 +02:00
  • 8aad3482a4 ImVector: Fixed index_from_ptr() not asserting when passed end() element. omar 2019-10-07 17:22:55 +02:00
  • 323412dd23 Examples: Allegro5: updated build instructions for macOS Harris Brakmic 2019-10-06 13:02:01 +02:00
  • 73fa6509a5 Internal: InputTextEx: tweaked a bit of code (should be a no-op) omar 2019-10-05 16:53:28 +02:00
  • f1f321d3f6 Update README.md omar 2019-10-05 16:07:00 +02:00
  • e0c0e53edf Merge branch 'master' into docking omar 2019-10-04 19:22:42 +02:00
  • ee3373d067 TreeNode: Fixed combination of ImGuiTreeNodeFlags_SpanFullWidth and ImGuiTreeNodeFlags_OpenOnArrow incorrectly locating the arrow hit position to the left of the frame. (#2451, #2438, #1897) omar 2019-10-04 19:21:29 +02:00
  • ccb2a947a2 Internal: SliderBehaviorT: Condition '!is_decimal' is always true (#2828) domgho 2019-10-04 11:57:20 +02:00
  • 1425bec7a4 Demo: Text baseline demo tweaks. omar 2019-10-03 16:57:14 +02:00
  • a6c3be4bda Internals: Tweaks to ItemSize() should be harmless. Added DebugDrawItemRect() helper. omar 2019-10-03 15:59:36 +02:00
  • 892dfb1dea InputText, Nav: Fixed Home/End key broken when activating Keyboard Navigation. (#787) Small refactor of ActiveIdUsingXXX inputs flags toward a little more consistent system. (#2637) omar 2019-10-02 11:38:30 +02:00
  • a2f3dcfc97 Added comment about SDL and SDL_INIT_GAMECONTROLLER. (#2809) omar 2019-10-02 11:38:30 +02:00
  • 893056a209 Fix syntax typos in README (#2819) Denys Nahurnyi 2019-10-01 22:49:44 +03:00
  • eb5223276c Update README.md omar 2019-09-30 20:54:37 +02:00
  • 0dad3f436b Fix harmless float calculation overflow. (#2813) omar 2019-09-30 15:16:30 +02:00
  • c262276988 Version 1.74 WIP omar 2019-09-30 14:27:56 +02:00
  • f0f5301612 Backends: OpenGL3: Commented out extra tokens at end of #else directive (#2804) Konstantin Podsvirov 2019-09-25 01:06:14 +03:00
  • 688cf868ea Merge branch 'master' of https://github.com/ocornut/imgui v1.73 omar 2019-09-24 17:15:48 +02:00
  • 6994bf10bc Merge branch 'master' into docking + fix for RenderMouseCursor() omar 2019-09-24 17:14:51 +02:00
  • d5efe16157 Version 1.73 omar 2019-09-24 16:33:47 +02:00
  • 293f74e996 Update README.md omar 2019-09-24 16:00:53 +02:00
  • 664f9e76b9 Documentation: Various tweaks and improvements to the README page. [@ker0chan] omar 2019-09-24 15:46:08 +02:00
  • e100523917 CollapsingHeader: Added support for ImGuiTreeNodeFlags_Bullet and ImGuiTreeNodeFlags_Leaf on framed nodes. (#2159, #2160) goran-w 2018-10-30 15:52:27 +01:00
  • ca858c084b Demo tweaks. Comments. Compacting the rarely used AutoFitXXX fields in ImGuiWindowTempData. omar 2019-09-23 15:31:05 +02:00
  • 52deb415e0 Internal: Refactored internal RenderMouseCursor so colors can be specified. (#2614) omar 2019-09-23 14:53:49 +02:00
  • 25849234f6 Internal: Tree: tweaks (initially tried to implement auto-scrolling, stashed) omar 2019-09-23 12:45:52 +02:00
  • 97691643b7 Backends: OpenGL3: Attempt to automatically detect default GL loader by using __has_include. Followup to 44cd8e3 (#2798) omar 2019-09-22 23:19:04 +02:00
  • 44cd8e39da Automatically include the available gl loader header osheriff 2019-09-22 12:52:36 +02:00
  • 3233d85d2f Merge branch 'master' into docking omar 2019-09-22 22:16:11 +02:00
  • 80b3ab7d3e TabBar: Fixed single tab shrinking reducing the tab to 0.0f size. Broken by a856c670c1. omar 2019-09-22 22:16:05 +02:00
  • f47a0a85cc ImVector: added find, find_erase, find_erase_unsorted helpers. omar 2019-09-21 17:04:10 +02:00
  • eab03f4467 Selectable: Added ImGuiSelectableFlags_AllowItemOverlap flag in public api (was previously internal only). omar 2019-09-21 17:18:24 +02:00
  • 13f00331da Docking: Added ImGuiDockNodeFlags_NoDocking flag. (#2109) omar 2019-09-21 14:50:02 +02:00
  • a45e3b5bb3 Readme, Wiki: Image loading examples. omar 2019-09-20 19:04:19 +02:00
  • f7468d05fe Fixed mouse event forwarding in macos example (#2710, #1961) omar 2019-09-20 15:46:18 +02:00
  • 38d22bc47d ColorPicker / ColorEdit: restore Hue when zeroing Saturation. (#2722, #2770) - changelog, fixed uninitialized variables, tweaks, renaming. omar 2019-09-20 15:31:39 +02:00
  • accb0261b8 ColorPicker / ColorEdit: restore Hue when zeroing Saturation. (#2722, #2770) Issue is fixed by storing last active color picker color and last hue value when active color picker takes rgb as input. Then if current color picker color matches last active color - hue value will be restored. IDs are not used because ColorEdit4() and ColorWidget4() may call each other in hard-to-predict ways and they both push their own IDs on to the stack. We need hue restoration to happen in entire stack of these widgets if topmost widget used hue restoration. Since these widgets operate on exact same color value - color was chosen as a factor deciding which widgets should restore hue. Rokas Kupstys 2019-08-31 18:44:20 +03:00
  • af93c21cf9 Merge branch 'master' into docking omar 2019-09-18 17:27:14 +02:00
  • 656c515bad Warning fix. omar 2019-09-18 17:21:04 +02:00
  • 9d02ed51e3 TreeNode: Added ImGuiTreeNodeFlags_SpanAvailWidth and ImGuiTreeNodeFlags_SpanFullWidth flags (#2451, #2438, #1897) Added demo bits. omar 2019-09-18 17:13:41 +02:00
  • 74e01e62ce Fixed unused static function warning for some compilers. (#2793) omar 2019-09-18 13:21:12 +02:00
  • 098591fe4c ImDrawListSplitter: fixed an issue merging channels if the last submitted draw command used a different texture. (#2506) omar 2019-09-17 20:27:15 +02:00
  • cf98290873 Backends: DirectX9: Workaround for windows not refreshing when main viewport has no draw call. (#2560) omar 2019-09-17 18:32:26 +02:00
  • 1ca6ff974c Viewport: fix to allow multiple shutdown / calls to DestroyPlatformWindows(). (#2769) omar 2019-09-17 18:02:58 +02:00
  • 575df6f192 Merge branch 'master' into docking omar 2019-09-17 16:35:50 +02:00
  • b48dc067ae Style: Allow style.WindowMenuButtonPosition to be set to ImGuiDir_None to hide the collapse button. (#2634, #2639) + Fix #2775 omar 2019-09-17 16:16:38 +02:00
  • 3b014d0c31 Merge branch 'features/ellipsis_rendering' omar 2019-09-17 12:07:30 +02:00
  • 3f986e72d9 Internal: Offset STB_TEXTURE_K_ defines to remove that change from #2541 + sponsors update. omar 2019-09-17 12:06:31 +02:00
  • 7d5a17e5e4 Remove trailing spaces (grep for ' \r?$' in visual studio) omar 2019-09-17 11:33:18 +02:00
  • 1c951dca97 Font: Narrow ellipsis: once we know an ellipsis is going to be drawn, we can claim the space between pos_max.x and ellipsis_max.x which gives us enough extra space to not requires the further (and otherwise valid) optimizations. Gets us vastly simplified code, yay. (#2775) omar 2019-09-17 11:11:14 +02:00